Hello all,
I am trying to implement the following scenario:
// Default Network Topology
// +--------+ emu1 emu2 emu3 emu4
// | Server | +--------------+ +------------+ +------------+ +---------------+
// +--------+ | tap-bridge | | tap-bridge | | tap-bridge| | tap-bridge |
// | +--------------+ +------------+ +------------+ +----------------+
// | | CSMA 1 | | CSMA 2 | | CSMA 3 | | CSMA 4 |
// | +--------------+ +------------+ +------------+ +----------------+
// | +-------------+ 2 10.1.3.0 1 | | | |
// | | CSMA1 | ----------------------+ | | |
// emu0 +-------------+ 2 10.1.5.0 1 | | |
// +----------+ | CSMA2 | -------------------------------------------+ | |
// | tap | +-------------+ 2 10.1.6.0 1 | |
// | bridge | | CSMA3 | -------------------------------------------------------------+ |
// +----------+ +-------------+ 2 10.1.7.0 1 |
// |CSMA0 | | CSMA4 |-------------------------------------------------------------------------------+
// +----------+ +-------------+
// +----------------------+
emu2, emu3, and emu4 are linked to virtual machines on virtualbox.
In NS3 I used tap-bridges with the following settings:
TapBridgeHelper tapBridge;
tapBridge.SetAttribute ("Mode", StringValue ("ConfigureLocal"));
tapBridge.SetAttribute ("DeviceName", StringValue ("emu0"));
tapBridge.SetAttribute ("Gateway", Ipv4AddressValue ("10.1.2.1"));
tapBridge.Install (outputNodes.Get (1),outputDevices.Get (1));
tapBridge.SetAttribute ("DeviceName", StringValue ("emu1"));
tapBridge.SetAttribute ("Gateway", Ipv4AddressValue ("10.1.3.2"));
tapBridge.Install (firstPeer.Get (0), firstPeerDevices.Get (0));
tapBridge.SetAttribute ("DeviceName", StringValue ("emu2"));
tapBridge.SetAttribute ("Gateway", Ipv4AddressValue ("10.1.5.2"));
tapBridge.Install (secondPeer.Get (0), secondPeerDevices.Get (0));
In virtual box I used the bridged-adapter to link three VMS to emu2, emu3 and emu4 in order.
For the first first VM for example I set the following:
ip: 10.1.5.1 netmask:24 Getway: 10.1.5.2 DNS:8.8.8.8
But I got no internet connection error ...
I tried to ping 10.1.5.2 from the VM(10.1.5.1) .. I got unreachable ...
Can you please help me knowing what is the problem ?!! how to solve that ?!!!
Thanks in advance ....