Example: tcpdump-ieth0-s0-xtcpport9999hosttcpdump-s0-xtcpport3306
Example:
Tcpdump-I eth0-s0-x tcp port 9999 host
Tcpdump-s0-x tcp port 3306, 8001
Tcpdump-s0-x-vv-n
Tcpdump tcp port 8001-vvv-xxx-tttt-s0-n
Tcpdump tcp port 9999-vvv-xxx-tttt-s400-n
Tcpdump udp port 9999-vvv-xxx-tttt-s400-n
Tcpdump-vvv-s 0-n-Ai eth0 port 80 and tcp and host192.168.1.99
Parameter description
-A converts a network address and broadcast address into a name;
-D. give the code that matches the information package in an assembly format that people can understand;
-Dd provides the code that matches the information package in the format of the C program segment;
-Ddd provides the matching information package code in decimal format;
-E prints the header information of the data link layer in the output line;
-F print the Internet address in numbers;
-L changes the standard output to the buffer row format;
-N does not convert the network address into a name;
-T no timestamp is printed on each output line;
-V outputs a slightly detailed information. for example, the IP package can contain ttl and service type information;
-Vv: output detailed message information;
-C. after receiving the specified number of packages, tcpdump stops;
-F read the expression from the specified file and ignore other expressions;
-I indicates the network interface of the listener;
-R reads packets from a specified file (these packets are generally generated using the-w option );
-W directly writes the package into the file and does not analyze or print it out;
-T directly interpret the packet to be listened to as a specified type of message. Common types include rpc (remote process call) and snmp.