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?

Advertisements

I'm a Network Engineer with software development experiences. MSCS from Georgia Tech. CCNA certified. ONF-SDN certified.

Posted in SDN, Tutorials
2 comments on “OpenDaylight Tutorial – Basic Setup
  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?

    Like

  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.

    Like

Please leave any feedback

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Network Heresy

Tales of the network reformation

How to Do Great Research

Grad school survival advice from Nick Feamster and Alex Gray

n40lab

A blog about cloud, virtualization, sdn and centos

%d bloggers like this: