This is more like a testbed setup question rather than programming one.
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.
- I am running VMware and tcpreplay on the host as sudo. Hence I think there should not be any problem access devices files.
- 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?