Skip to content

Latest commit

 

History

History
76 lines (60 loc) · 1.76 KB

ControlPlane.md

File metadata and controls

76 lines (60 loc) · 1.76 KB

Setting up the ONOS SDN Controller Cluster:

sudo apt-get -y update && sudo apt-get -y upgrade
sudo apt install git wget vim
sudo apt -y install openjdk-8-jdk

Append environment variable JAVA_HOME to ~/.bashrc

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib
export PATH=$JAVA_HOME/bin:$PATH

Run this: source ~/.bashrc

Installing ONOS Ver2.0.0 (Loon)

Download the onos binary file: sudo wget -c https://repo1.maven.org/maven2/org/onosproject/onos-releases/2.0.0/onos-2.0.0.tar.gz

tar zxvf onos-2.0.0.tar.gz
sudo mkdir /opt/onos 
sudo cp -r onos-2.0.0/* /opt/onos

Run onos services

cd /opt/onos/bin
sudo /opt/onos/bin/onos-service start

Open another terminal and add configuration to ~/.ssh/config

mkdir ~/.ssh
touch ~/.ssh/config
vim ~/.ssh/config

Paste this in the ~/.ssh/config file

HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa

Connect to onos cli and activate application

cd /opt/onos/bin
/opt/onos/bin/onos -l onos
password: rocks

On the ONOS SDN Controller CLI activate the following applications:

onos@root$ app activate org.onosproject.pipelines.basic
onos@root$ app activate org.onosproject.fwd
onos@root$ app activate org.onosproject.openflow

Login GUI Open browser and type http:<localhost>:8181/onos/ui

username/password: onos/rocks

Reinstalling ONOS on the same VM?

You will often get a warning that the "remote host identification has changed! It is possible that you are offending RSA key in the ssh directory. To solve this challenge run the command below:

ssh-keygen -f "/home/amwangi254/.ssh/known_hosts" -R "[localhost]:8101"

All the best :-)