码迷,mamicode.com
首页 > Web开发 > 详细

ONOS and mininet

时间:2018-05-05 11:18:06      阅读:725      评论:0      收藏:0      [点我收藏+]

标签:conf   oracl   port   index   tps   too   dex   lis   test   

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

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)启动mininet

 

ONOS and mininet

标签:conf   oracl   port   index   tps   too   dex   lis   test   

原文地址:https://www.cnblogs.com/soul-stone/p/8993882.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!