Tcpreplaying using VMware

Posted by Methos on Server Fault See other posts from Server Fault or by Methos
Published on 2010-01-23T05:40:44Z Indexed on 2010/04/05 13:03 UTC
Read the original article Hit count: 347

Filed under:

This is more like a testbed setup question.

I want to use VMware to debug some networking code in the linux kernel in the VM. My VM has two network interfaces. What I want to do is replay the capture file in the host and receive the packets in the VM. My problem is I do not see replayed packets in the VM.

  1. I am running VMware and tcpreplay on the host as sudo. Hence I think there should not be any problem access devices files.
  2. I am running VMware workstation 7.0

a. I first began with Custom networking as that provides option of creating your own virtual network name. I wrote /dev/vmnet3 and /dev/vmnet4 for the two interfaces respectively. However, after booting the guest, I did not see any of these interfaces or devices files (in /dev) created on the host.

b. Then I tried 'Host Only', but that does not show what bridge/device file is associated with the interface.

c. Finally I tried bridged networking mode.

I see vmnet1, vmnet8 and vboxnet0 on the host. I have tcpreplayed the capture file on each of these interfaces, for all the above three cases. I tried to capture packets in the VM using "tcpdump -i any". However, I do not see any packets.

Any ideas/pointers?

© Server Fault or respective owner

Related posts about vmware