I use RYU Controller
I tried to switch on the default controller, "controller=Controller,", the result is the same
So I have to push flow entry to reach Internet by passing through "
nat0-eth0@ap1-eth2 "in my flow table right?
By the way I have another question, I try to use an adhoc proto in my topology but only olsrd seems work.
I mean the routing table is working as excepted.
mininet-wifi> car1 route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.0.9 0.0.0.0 UG 0 0 0 car1-wlan0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 car1-wlan0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 car1-wlan1
192.168.1.2 192.168.1.2 255.255.255.255 UGH 2 0 0 car1-wlan1
192.168.1.3 192.168.1.3 255.255.255.255 UGH 2 0 0 car1-wlan1
192.168.1.4 192.168.1.2 255.255.255.255 UGH 2 0 0 car1-wlan1
192.168.1.5 192.168.1.5 255.255.255.255 UGH 2 0 0 car1-wlan1
192.168.1.6 192.168.1.6 255.255.255.255 UGH 2 0 0 car1-wlan1
192.168.1.7 192.168.1.7 255.255.255.255 UGH 2 0 0 car1-wlan1
192.168.1.8 192.168.1.8 255.255.255.255 UGH 2 0 0 car1-wlan1
But with other such as Babel or Batman_adv nothing happens
I already have made tests with Babel, Batman_adv and Olsrd on the topology below and it works perfectly but not in my new (only olsrd works).
#!/usr/bin/python
import sys
from mininet.log import setLogLevel, info
from mn_wifi.link import wmediumd, adhoc
from mn_wifi.cli import CLI
from
mn_wifi.net import Mininet_wifi
from mn_wifi.wmediumdConnector import interference
def topology(plot):
"Create a network."
net = Mininet_wifi(link=wmediumd, wmediumd_mode=interference)
info("*** Creating nodes\n")
# Add 3 Stations TODO TASK 1
sta1 = net.addStation('sta1', position='100,100,0', range=50)
sta2 = net.addStation('sta2', position='150,100,0', range=50)
sta3 = net.addStation('sta3', position='200,100,0', range=50)
sta4 = net.addStation('sta4', position='250,100,0', range=50)
sta5 = net.addStation('sta5', position='300,100,0', range=50)
sta6 = net.addStation('sta6', position='350,100,0', range=50)
net.setPropagationModel(model="logDistance", exp=4)
info("*** Configuring wifi nodes\n")
net.configureWifiNodes()
info("*** Creating links\n")
# Add Links TODO
net.addLink(sta1, cls=adhoc, intf='sta1-wlan0',ssid='adhocNet', mode='g', proto='babel', channel=5, ht_cap='HT40+')
net.addLink(sta2, cls=adhoc, intf='sta2-wlan0',ssid='adhocNet', mode='g', proto='babel', channel=5, ht_cap='HT40+')
net.addLink(sta3, cls=adhoc, intf='sta3-wlan0',ssid='adhocNet', mode='g', proto='babel', channel=5, ht_cap='HT40+')
net.addLink(sta4, cls=adhoc, intf='sta4-wlan0',ssid='adhocNet', mode='g', proto='babel', channel=5, ht_cap='HT40+')
net.addLink(sta5, cls=adhoc, intf='sta5-wlan0',ssid='adhocNet', mode='g', proto='babel', channel=5, ht_cap='HT40+')
net.addLink(sta6, cls=adhoc, intf='sta6-wlan0',ssid='adhocNet', mode='g', proto='babel', channel=5, ht_cap='HT40+')
net.plotGraph(max_x=500, max_y=400)
info("*** Starting network\n")
net.build()
info("*** Running CLI\n")
CLI(net)
info("*** Stopping network\n")
net.stop()
if __name__ == '__main__':
setLogLevel('info')
plot = True if '-a' in sys.argv else False
topology(plot)