List interfaces that tcpdump can listen on

tcpdump -D

Turn on "verbose" key in TCPDUMP to see IP and TCP header information

tcpdump -vi eth0

Turn off hostname and port lookup in TCPDUMP

tcpdump -vnni eth0

Tcpdump filter only icmp traffic

tcpdump -nni eth0 icmp

Tcpdump command to filter on ICMP type - capture only ICMP echo request

# tcpdump -nni vlan111 -e icmp[icmptype] == 8

Frank 發表在 痞客邦 PIXNET 留言(0) 人氣()