


If you are looking to capture full TCP handshake, make sure you use "host" vs "src host" or "dst host" to see both request and response flow. The presence of this option will override any user-specified MAC addresses. This command will now capture the packets with IP addresses. Note 2: When you specify a source (src) or destination (dst) flags, tcpdump will only filter in that direction. This option is useful for catching duplicate IPs or poorly behaved layer 3 devices. This command will now read the captured packets from the capturedpackets.pcap file.

Separate your entries with a comma, space, or semicolon. This utility is not encompassing of all options tcpdump offers a complete list of options can be found via its manual: Note: Host, Source Host, and Destination Host can take multiple entries. This utility is to help generate a tcpdump command using some of the more common switches / filters offered by the tcpdump. tcpdump is very versatile with many switches to granularly capture what you need to dubug network traffic with options to output results via console, file, or wireshark pcap. In short, it's the wireshark of linux to gathering packet captures. Tcpdump is a utility commonly installed / available to many Linux distributions to quickly gather a network trace / packet capture.
