Note: These instructions are adapted from the ONOS P4 tutorial, here.
First, install the prerequisites listed in APPENDIX-Z, and clone this repository.
cd ~
git clone https://github.com/msbaz2013/onos.git
cd onos
Also, append the following line in your ~/.bashrc
file.
export PATH=$PATH:~/onos/scripts:~/onos/scripts/utils
And, reboot your VM.
Select one of the projects listed under projects
folder. For example, ...
cd ~/onos
export PROJECT_DIR=$PWD/projects/bridge
cd $PROJECT_DIR
make p4-build
make app-build
In a separate shell, run ...
cd $PROJECT_DIR
make onos
cd $PROJECT_DIR
make app-reload
In a separate shell, run ...
cd $PROJECT_DIR
make topo
cd $PROJECT_DIR
make netcfg
Log into ONOS CLI, using ...
make onos-cli
and type ...
onos> flows -s any devices:s1
In mininet, run ...
mininet> h1 ping h2
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce
sudo usermod -aG docker $(whoami)
sudo systemctl restart docker