Skip to content

OpenDaylight Tutorial – Basic Setup

In this tutorial we will go through basic setup of the OpenDaylight Controller (ODL).

I am supposing that you have already installed the latest version of ODL. If not I suggest you to simply deploy a VM with everything you need.

First, start the controller.

sudo-s
cd controller-sp/opendaylight/
bash run.sh -start

Then, be patient.

Initialization was very slow (10 to 15 min) and buggy for me, you can check if everything is fine by doing this:

bash run.sh -status

You should get an output like this:

Controller with PID: 2363 -- Running!

If you get anything different like:

Doesn't seem any Controller daemon is currently running, at least no PID file has been found

Then you should try to wait few minutes then check it again. If the problem persists you should stop the controller then try to start it again. If it persists again, try rebooting the system.

bash run.sh -stop
Controller with PID: 2363 -- Stopped!

After the controller is running simply create a Mininet topology for it with:

sudo mn --controller=remote,ip=127.0.0.1 --topo tree,2

After that try to access the OpenDayLight Web Interface by accessing http:// [ODL_IP_ADDRESS]:8080.

Then go back to mininet and ping two hosts then refresh ODL again.

Pretty interesting huh?

Published inSDNTutorials

2 Comments

  1. Hi Sem,

    I can’t see the WEB GUI it just get spinning and don’t show anything when I tried to access the http:// [ODL_IP_ADDRESS]:8080 i.e. 192.168.56.101:8080 in my case! What might be the reason?

  2. Hey,

    So, where have you deployed the VM? Sometimes it is just slow, so you should restart the ODL and wait a little more.

    If you want to avoid that, just install the controller in a fast environment.

Leave a Reply

Your email address will not be published. Required fields are marked *