ONOS and mininet


1、onos下載編譯

https://github.com/opennetworkinglab/onos

1)下載源代碼

git clone https://gerrit.onosproject.org/onos

2)下載編譯工具

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)編譯

export ONOS_ROOT=$(pwd)
tools/build/onos-buck build onos --show-output

 

2、mininet下載編譯

http://mininet.org/download/

1)下載源代碼

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)編譯

mininet/util/install.sh -nfv -s mydir

3)驗證編譯

sudo mn --test pingall

 

3、onos+mininet測試

1)啟動onos

export ONOS_ROOT=$(pwd)

tools/build/onos-buck run onos-local -- clean debug

Options following the double-dash (–) are 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 will be available for attaching a remote debugger.

2)查看onos管理界面

CLI:tools/test/bin/onos-gui localhost
GUI: http://<host ip>:8181/onos/ui/index.html#/topo

3) 啟動onos的openflow和fwd模塊,否則mininet無法連接

在gui界面操作

命令行界面:

onos> feature:install onos-app-fwd

4)啟動mininet

 sudo mn --topo tree,depth=2,fanout=3 --controller remote,ip=127.0.0.1

tree,depth=2,fanout=4
torus,3,3
tree,2,2

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM