This is our old Q&A Site. Please post any new questions and answers at


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 ?

Regards, Navaz

asked 09 Sep '14, 13:41

navaz's gravatar image

accept rate: 0%

edited 09 Sep '14, 17:31

Guy%20Harris's gravatar image

Guy Harris ♦♦

After few searches i found this.

Outgoing from tcpdump -i eth0 ip -X src host

Incoming to tcpdump -i eth0 ip -X dst host

Thanks Navaz

permanent link

answered 09 Sep '14, 16:28

navaz's gravatar image

accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 09 Sep '14, 13:41

question was seen: 24,165 times

last updated: 09 Sep '14, 17:31

p​o​w​e​r​e​d by O​S​Q​A