What is OpenDaylight?
The OpenDaylight Project is a cooperative open-source project facilitated by the Linux Foundation. The venture fills in as a stage for programming characterized organizing (SDN) for open, concentrated, PC network gadget observing.
OpenDaylight (ODL) is a scalable open policy for modifying and mechanizing organizations network of any size and scale. The OpenDaylight Project emerged out of the SDN development, with an unmistakable spotlight on network programmability.
Step 1: First we need 2 Virtual Machines for 1st for open daylight controller and 2nd will be for Mininet
or else 1 system for open daylight controller and 1 Virtual Machine for Mininet.
Step 2: Install/setup Ubuntu 18.04/20.04 in a virtual machine or in a physical Machine.
Step 3: Login into system with login credential
Step 4: Update and Upgrade the system
sudo apt update && upgrade -y
Step 5: Install Java
sudo apt install openjdk-8-jre-headless
Step 6: Open the bashrc file and add the following line, at the end of file.
sudo nano ~/.bashrc
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
Step 7: Then Run the file
source ~/.bashrc
Step 8: Check the Java Version
java -V
Step 9: Download the opendaylight from the website, by using wget method.
wget https://nexus.opendaylight.org/content/groups/public/org/opendaylight/integration/distribution-karaf/0.4.0-Beryllium/distribution-karaf-0.4.0-Beryllium.tar.gz
Step 10: unzip the tar file
tar -xvf distribution-karaf-0.4.0-Beryllium.tar.gz
Step 11: Change into the downloaded file
cd distribution-karaf-0.4.0-Beryllium
Step 12: Run the following command inside the downloaded folder
./bin/karaf
Step 13: Install the following featues(minimum)
feature: install odl-restconf odl-l2switch-switch odl-mdsal-apidocs odl-dlux-all
Step 14: Open Browser and enter the Ip as follows:
ip:8181/index.html
Now, Opendaylight Installation and Configuration is done.
Next Step is to Download Mininet OVF file from website/github.
Step 15: Download Mininet OVF File
wget https://github.com/mininet/mininet/releases/download/2.3.0/mininet-2.3.0-210211-ubuntu-18.04.5-server-amd64-ovf.zip
Step 16: Unzip the file
unzip mininet-2.3.0-210211-ubuntu-18.04.5-server-amd64-ovf.zip
or
tar -xvf mininet-2.3.0-210211-ubuntu-18.04.5-server-amd64-ovf.zip
This will create a folder name mininet-2.3.0-210211-ubuntu-18.04.5-server-amd64-ovf
Step 17: Import the File into Virtual-Box or Vmware WorkStaion
Step 18: Connect to Mininet through ssh
i.e ssh mininet@192.x.x.x
username: mininet
password: mininet
Step 19: Type the following command in mininet console/terminal.
sudo mn --topo linear,3 --mac --controller=remote,ip=192.x.x.x,port=6633 --switch ovs, protocols=OpenFlow13
Step 20: Now we can see the topology in Opendaylight, ping the host before checking in web ui in mininet, by the following command, every node should be reach-able from other nodes.
pingall
Step 21: Last step, Open Opendaylight web ui, by the following ip
192.x.x.x:8181/index.html
Therefore Opendaylight with Mininet setup is Completed
0 Comments