1, Onos download compile
Https://github.com/opennetworkinglab/onos
1) Download source code
git clone Https://gerrit.onosproject.org/onos
2) Download the compilation tool
sudo apt-get install software-properties-common-y && \
sudo add-apt-repository ppa:webupd8team/java-y && \
sudo apt-get update && \
echo "Oracle-java8-installer Shared/accepted-oracle-license-v1-1 Select True" | sudo debconf-set-selections && \
sudo apt-get install Oracle-java8-installer oracle-java8-set-default-y
3) Compiling
Export onos_root=$ (PWD)
Tools/build/onos-buck Build Onos--show-output
2, mininet download compile
http://mininet.org/download/
1) Download source code
git clone git://github.com/mininet/mininet
CD mininet
git tag # list available versions
git checkout-b 2.2.1 2.2.1 # or whatever version you wish to install
Cd..
2) compiling
Mininet/util/install.sh-nfv-s Mydir
3) Verifying the compilation
sudo mn--test Pingall
3. Onos+mininet Test
1) Start Onos
Tools/build/onos-buck Run onos-local--Clean debug
Options following the Double-dash (–) is passed through to the ONOS Apache Karaf and can be omitted. Here, the clean option forces a clean installation of ONOS and the debug option means that the default debug port 5005 wil L is available for attaching a remote debugger.
2) View Onos management interface
Cli:tools/test/bin/onos-gui localhost
Gui:http://
3) Start mininet
ONOS and Mininet