Reputation: 1523
I would like to capture the "incoming" interface and "outgoing" interface for packets transiting through a software switch (assume it has 10 ports and I want to know which of those 10 interfaces a particular packet came from). I can't seem to find any way to get "tcpdump -i any" to output the arriving or outgoing interfaces. It only gives fields of the packet. Is there any other derivative of tcpdump (like tshark perhaps?) which will enable extracting the port information? The intention is tracing a packet flow path through a network. Regards.
Upvotes: 4
Views: 4452
Reputation: 32378
tcpdump
4.10 should include this feature (hasn't been released as of today).
Meanwhile you can use Sebastian Haas's script.
Upvotes: 1