equal
deleted
inserted
replaced
79 // |
79 // |
80 // ./waf --run "tap-wifi-dumbbell --ns3::OnOffApplication::DataRate=100kb/s"& |
80 // ./waf --run "tap-wifi-dumbbell --ns3::OnOffApplication::DataRate=100kb/s"& |
81 // sudo route add -net 10.1.3.0 netmask 255.255.255.0 dev thetap gw 10.1.1.2 |
81 // sudo route add -net 10.1.3.0 netmask 255.255.255.0 dev thetap gw 10.1.1.2 |
82 // ping 10.1.3.4 |
82 // ping 10.1.3.4 |
83 // |
83 // |
84 // 4) Try to run this in UseLocal mode. This allows you to provide an existing |
84 // 4) Try to run this in UseBridge mode. This allows you to bridge an ns-3 |
85 // pre-configured tap device to the simulation. The IP address and MAC |
|
86 // address in this mode do not have to match those of the ns-3 device. |
|
87 // |
|
88 // sudo tunctl -t mytap |
|
89 // sudo ifconfig mytap hw ether 08:00:2e:00:00:01 |
|
90 // sudo ifconfig mytap 10.1.1.1 netmask 255.255.255.0 up |
|
91 // ./waf --run "tap-wifi-dumbbell --mode=UseLocal --tapName=mytap"& |
|
92 // ping 10.1.1.3 |
|
93 // |
|
94 // 5) Try to run this in UseBridge mode. This allows you to bridge an ns-3 |
|
95 // simulation to an existing pre-configured bridge. This uses tap devices |
85 // simulation to an existing pre-configured bridge. This uses tap devices |
96 // just for illustration, you can create your own bridge if you want. |
86 // just for illustration, you can create your own bridge if you want. |
97 // |
87 // |
98 // sudo tunctl -t mytap1 |
88 // sudo tunctl -t mytap1 |
99 // sudo ifconfig mytap1 0.0.0.0 promisc up |
89 // sudo ifconfig mytap1 0.0.0.0 promisc up |