安装和启动
1、获取源代码,使用bazel编译(注意bazel版本问题)
git clone https://gerrit.onosproject.org/onos
cd onos
bazel build onos
2、清洁安装
bazel run onos-local -- clean debug
3、进入CLI
tools/test/bin/onos localhost
4、Web端控制
http://localhost:8181/onos/ui
5、创建ONOS控制的Mininet
sudo mn --controller remote,ip=<ONOS IP address> --topo torus,3,3
6、配置别名
export ONOS_ROOT=~/onos
source $ONOS_ROOT/tools/dev/bash_profile
7、单元测试
bazel query 'tests(//...)' | xargs bazel test # or use 'ot' alias
学习ONOS的前置
一、OpenFlow Tutorial(详细步骤见ONF Mininet OpenFlow教程)
1、下载tutorial镜像
2、下载Xming和putty工具
3、导入虚拟机