Closed nop0x0f closed 7 years ago
Could you solve your problem? I facing the same problem!
I also have the same problem. Please share if you find a solution!
I've updated the page to note that you can't (currently) use --mac
with --switch user
because of https://github.com/mininet/mininet/issues/156
Note that --controller remote
implies that you're running the controller separately, as specified earlier on that page.
I jsut got the same problem, how to solve it? help
Hi, I also got a similar problem like this. My case is a loop is introduced in my topology. However, the default setting of Mininet open vswitch (ovs) disables Spanning Tree Protocol (STP). So the solution for my case is to enable the STP when setting ovs. The error for the original issue is "no route to 10.0.0.3". Please check the connectivity first. Just for reference :)
Hi, I also got a similar problem like this. My case is a loop is introduced in my topology. However, the default setting of Mininet open vswitch (ovs) disables Spanning Tree Protocol (STP). So the solution for my case is to enable the STP when setting ovs. The error for the original issue is "no route to 10.0.0.3". Please check the connectivity first. Just for reference :)
Like this? It is still not working for me :(
self.net = Mininet(topo=None, listenPort=6634, ipBase='10.0.0.0/8', controller=self.controller)
self.h1 = self.net.addHost('host1', mac='00:00:00:00:00:01', ip='10.0.0.1')
self.h2 = self.net.addHost('host2', mac='00:00:00:00:00:02', ip='10.0.0.2')
self.s1 = self.net.addSwitch('s1', cls=OVSKernelSwitch, protocols='OpenFlow13', stp=True)
self.s2 = self.net.addSwitch('s2', cls=OVSKernelSwitch, protocols='OpenFlow13', stp=True)
self.net.addLink(self.h1, self.s1, cls=Link)
self.net.addLink(self.h2, self.s2, cls=Link)
self.net.addLink(self.s1, self.s2, cls=TCLink, bw=self.link_bw)
self.net.addController(name=self.controller)
self.net.start()
self.net.iperf([self.h1, self.h2])
Hi, I also got a similar problem like this. My case is a loop is introduced in my topology. However, the default setting of Mininet open vswitch (ovs) disables Spanning Tree Protocol (STP). So the solution for my case is to enable the STP when setting ovs. The error for the original issue is "no route to 10.0.0.3". Please check the connectivity first. Just for reference :)
Like this? It is still not working for me :(
self.net = Mininet(topo=None, listenPort=6634, ipBase='10.0.0.0/8', controller=self.controller) self.h1 = self.net.addHost('host1', mac='00:00:00:00:00:01', ip='10.0.0.1') self.h2 = self.net.addHost('host2', mac='00:00:00:00:00:02', ip='10.0.0.2') self.s1 = self.net.addSwitch('s1', cls=OVSKernelSwitch, protocols='OpenFlow13', stp=True) self.s2 = self.net.addSwitch('s2', cls=OVSKernelSwitch, protocols='OpenFlow13', stp=True) self.net.addLink(self.h1, self.s1, cls=Link) self.net.addLink(self.h2, self.s2, cls=Link) self.net.addLink(self.s1, self.s2, cls=TCLink, bw=self.link_bw) self.net.addController(name=self.controller) self.net.start() self.net.iperf([self.h1, self.h2])
Hi, what is the exception thrown in your case? Is every node in the connection? For the stp enabling, according to the reference(http://mininet.org/api/classmininet_1_1node_1_1OVSSwitch.html#ab5db2ef0d48302217833ce1538270310), it would be False until the failMode=standalone (the default is secure). So I run the following common in CLI: sudo mn XXXX(your topo setting etc.) --switch=ovsk,failMode='standalone',stp=True
Probably you consider the failMode when do 'addSwitch' I guess...
Good luck~
Hello, everyone
as a workaround to this issue, I started the controller as a background process before running the commands sudo mn --topo single,3 --mac --controller remote --switch ovsk
followed by iperf
In order to start the controller in background, run
sudo controller ptcp:6633
Following the wiki and forgive me if this is the wrong location, using the mininet vm on a host-only network in mininet/openflow-tutorial/wiki/Learn-Development-Tools#benchmark-controller-wiperf at the location " Start the same Mininet with the user-space switch:
$ sudo mn --topo single,3 --mac --controller remote --switch user
Run one more iperf test with the reference controller:
mininet> iperf
" when running iperf in a mn session with --controller remote --switch user having already set upcontroller ptcp:
mininet crashes with the following output