Software >> OS >> Unix >> Linux >> tcpdump >> Examples of tcpdump command usage

 

Purpose Command
Capture from specific source IP tcpdump src 1.1.1.1
Capture to specific destination IP tcpdump dst 1.0.0.1
Capture packets to or from a specific subnet tcpdump net 1.2.3.0/24
Generate HEX output tcpdump -X