Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

cd ~/onos/tools/dev/mininet
sudo mn --custom onos.py --controller onos,3 --topo torus,4,4

...

You should see a bunch of output showing the startup of the control network and the data network.

After ONOS starts up and the switches connect, you should see the mininet CLI prompt:

mininet>

At this point, you can enter mininet commands like pingall (all-to-all ping test) and help (find out about Mininet CLI commands.)

To exit Mininet, use the exit command or press control-D.

Info
If things don't start up correctly, look carefully at any error messages or exceptions which may have been generated - usually they give you important information which will enable you to figure out what is going wrong and to fix the issue.

What do those mn command line options do?

--custom onos.py: uses onos.py to extend Mininet with new controller and switch types

...