Hi everybody,
I'm still stuck in this emulation scheme. So my scenario I'm gonna give the details of my scenario, and I hope that someone can help:
https://www.nsnam.org/docs/release/3.23/doxygen/tap-wifi-virtual-machine_8cc_source.htmlhttps://www.nsnam.org/docs/release/3.23/doxygen/tap-csma-virtual-machine_8cc.htmlI want to reproduce one of this simulation, but with 3 VM. One VM for each virtual Host (left and right) and the third VM for ns3 channel.
Configuration:
VM1 (left-host) <eth0> <--------------> <eth1> <br-left> <tap-left>
VM2 (ns3) <tap-right> <br-right> <eth2> <-------------> <eth0>
VM3 (right-host)
VMnet1(Host-Only) Vmnet2 (Host-Only)
10.1.1.0/24 10.1.2.0/24
ns3-VM:
sudo brctl addbr br-left
sudo brctl addbr br-right
sudo tunctl -t tap-left
sudo tunctl -t tap-right
sudo ifconfig tap-left 0.0.0.0 promisc up
sudo ifconfig tap-right 0.0.0.0 promisc up
"sudo ifconfig eth1 0.0.0.0 promisc up" // I tried this also
"sudo ifconfig eth2 0.0.0.0 promisc up" // I tried this also
sudo brctl addif br-left tap-left
sudo brctl addif br-right tap-right
sudo brctl addif br-left eth1
sudo brctl addif br-right eth2
ifconfig br-left 10.1.1.1 netmask 255.255.255.0 up
ifconfig br-right 10.1.2.1 netmask 255.255.255.0 up
left-host VM:
eth0: 10.1.1.130
route add -net 10.1.2.0 netmask 255.255.255.0 gw 10.1.1.1 dev eth0
right-host VM:
eth0: 10.1.2.129
route add -net 10.1.1.0 netmask 255.255.255.0 gw 10.1.2.1 dev eth0
I tried to ping from one VM to The other, but no way! I see the pings arriving to the br-left interface with wireshark, but they don't get through the tap-left and ns3 ?
I tried with https://www.nsnam.org/docs/release/3.23/doxygen/tap-wifi-dumbbell_8cc.html and I can ping the simulated nodes, and I get that in pcaps?
What's wrong with the sceanrio ?? I know that wifi does not support Usebridge, but even with csma I can't get into ns3!!
Thanks in advance for any help.
Cheers
.