O'Reilly logo

Software-Defined Networking with OpenFlow - Second Edition by Siamak Azodolmolky, Oswald Coker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Running a POX application

After getting the POX controller, you can try running a basic hub example in POX as follows:

    $ cd pox    $./pox.py log.level --DEBUG misc.of_tutorial

This command line tells POX to enable verbose logging and to start the of_tutorial component, which you will be using. This of_tutorial component acts as an Ethernet hub. Now you can start the Mininet OpenFlow laboratory using the following command line:

    $ sudo mn --topo single,3 --mac --switch ovsk --controller remote  

The switches may take a little bit of time to connect. When an OpenFlow switch loses its connection to a controller, it will generally increase the period between which it attempts to contact the controller, up to a maximum of 15 seconds. This timer is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required