Grammar:

The tcpdump protocol flows to the host

-w Save protocols: ether, FDDI, IP, ARP, RARP, DECnet, LAT, SCA, MOPRC, MOPDL, TCP and UDP direction: Net network port host host portrange Port segment example: Tcpdump -i eth0 -s 0 IP SRC 192.168.0.100 and icmp -w /home/1.cap Captures the packet whose source address is 192.168.0.100 and protocol is ICMP on eth0 and saves the packet to the home. Name 1. CapCopy the code