I have a set up with one switch and 4 hosts. I am capturing the traffic at Host interface. I am using below command to capture the traffic.
tcpdump -w filename.pcap -i eth1
It shows all the incoming and outgoing packets. I am interested in seeing only the incoming packets. It uses multiple port numbers. How can i achieve this ?
asked 09 Sep '14, 13:41
edited 09 Sep '14, 17:31
Guy Harris ♦♦
After few searches i found this.
Outgoing from 192.168.0.1: tcpdump -i eth0 ip -X src host 192.168.0.1
Incoming to 192.168.0.1: tcpdump -i eth0 ip -X dst host 192.168.0.1
answered 09 Sep '14, 16:28