Git Product home page Git Product logo

Comments (8)

mni025 avatar mni025 commented on June 19, 2024

Could you solve your problem? I facing the same problem!

from openflow-tutorial.

annabom avatar annabom commented on June 19, 2024

I also have the same problem. Please share if you find a solution!

from openflow-tutorial.

lantz avatar lantz commented on June 19, 2024

I've updated the page to note that you can't (currently) use --mac with --switch user because of mininet/mininet#156

Note that --controller remote implies that you're running the controller separately, as specified earlier on that page.

from openflow-tutorial.

Huangmachi avatar Huangmachi commented on June 19, 2024

I jsut got the same problem, how to solve it? help

from openflow-tutorial.

WANGYantong avatar WANGYantong commented on June 19, 2024

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 :)

from openflow-tutorial.

JackDiSalvatore avatar JackDiSalvatore commented on June 19, 2024

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])

from openflow-tutorial.

WANGYantong avatar WANGYantong commented on June 19, 2024

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~

from openflow-tutorial.

dsnunes07 avatar dsnunes07 commented on June 19, 2024

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

from openflow-tutorial.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.