dockerboot2dockertcpreplay

running tcpreplay with docker and boot2docker


I'm working on a netflow logger and I want to setup some automated performance testing. I want to take my testing pcap and replay it to my program from within a docker image running under boot2docker. The networking side of this is stumping me.

I can access my desktop (the machine hosting the boot2docker vm) from within the docker image running under boot2docker (scp/ssh/netcat all seem to work as expected). However, when I run tcpreplay on my pcap from within the docker image I never see the traffic on my desktop.

What I've tried:

Any ideas on what I need to do to get tcpreplay to send my pcap to my desktop?


Solution

  • Try change the destination MAC addr to that of docker0, which is the default VM running. This works for me.