Thursday, September 24, 2015

Configuring Mininet with Floodlight Controller

Configuring Mininet with Floodlight controller is pretty straight-forward.

First, download and build Floodlight.

$ git clone git://github.com/floodlight/floodlight.git
$ cd floodlight
$ git checkout stable
$ ant
$ sudo mkdir /var/lib/floodlight
$ sudo chmod 777 /var/lib/floodlight

Once built, you can execute Floodlight by,
$ java -jar target/floodlight.jar

Execute Mininet and connect to the controller.
sudo mn --arp --topo tree,3,2 --mac --switch ovsk --controller remote,ip=127.0.0.1

Now if you connect to the Floodlight UI in browser, you may view the nodes emulated by Mininet.
http://127.0.0.1:8080/ui/index.html

Floodlight Dashboard

Network Topology




$ java -jar target/floodlight.jar
$ git clone git://github.com/floodlight/floodlight.git $ cd floodlight $ git checkout stable $ ant; $ sudo mkdir /var/lib/floodlight $ sudo chmod 777 /var/lib/floodlight - See more at: http://www.projectfloodlight.org/getting-started/#sthash.SaGU01pP.dpuf
$ git clone git://github.com/floodlight/floodlight.git $ cd floodlight $ git checkout stable $ ant; $ sudo mkdir /var/lib/floodlight $ sudo chmod 777 /var/lib/floodlight - See more at: http://www.projectfloodlight.org/getting-started/#sthash.SaGU01pP.dpuf
$ git clone git://github.com/floodlight/floodlight.git $ cd floodlight $ git checkout stable $ ant; $ sudo mkdir /var/lib/floodlight $ sudo chmod 777 /var/lib/floodlight - See more at: http://www.projectfloodlight.org/getting-started/#sthash.SaGU01pP.dpufss
$ git clone git://github.com/floodlight/floodlight.git $ cd floodlight $ git checkout stable $ ant; $ sudo mkdir /var/lib/floodlight $ sudo chmod 777 /var/lib/floodlight - See more at: http://www.projectfloodlight.org/getting-started/#sthash.SaGU01pP.dpuf

1 comment:

  1. Hi sir...
    I am facing some issues with floodlight as mentioned below.
    I installed mininet and configured it with floodlight . I had run Floodlight.jar file in mininet.
    First I was said "sending packets of data to all the enabled ports".
    after that when i try run the same .jar file it was saying "2 common frames emitted".
    also there is an error in connecting to the UI in browser

    ReplyDelete

You are welcome to provide your opinions in the comments. Spam comments and comments with random links will be deleted.