I am trying to capture a tcpdump of a set of processes running in the mininet network emulation framework.

Mininet works by putting each process/set of processes into its own network namespace and then connecting each network namespace via veth devices.

What I am trying to do is to take a tcpdump to get a bandwidth usage over time graph. This is however not the hard bit.

What I would expect is that I could just do sudo tcpdump host ( being one of the emulated nodes) to capture all the traffic flowing between the namespaces. However, I am getting 0 packets captured.

I have previously gotten this working, however I cannot remember how. Mininet is running inside the mininet docker container with net=host.


The issue was that tcpdump was picking up the docker0 interface rather than looking on everything.

Correct command was tcpdump -i any host

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.