知识屋:更实用的电脑技术知识网站
所在位置:首页 > 操作系统 > linux

Ubuntu 12.04 Nox安装

发布时间:2014-09-05 13:44:59作者:知识屋

Ubuntu 12.04 Nox安装
 
1. 安装
[plain] 
Setup Nox repo for ‘nox-dependencies’ package  
$ cd /etc/apt/sources.list.d/  
$ wget http://openflowswitch.org/downloads/debian/nox.list  
$ apt-get update  
$ apt-get install nox-dependencies  
  
Install dependencies:  
$ apt-get install nox-dependencies  
$ apt-get install libtbb-dev  
$ apt-get install libboost-serialization-dev libboost-all-dev  
$ cd /home/spch2008  
$ git clone git://github.com/noxrepo/nox  
  
$ cd nox  
$ ./boot.sh  
$ mkdir build  
$ cd build  
  
Configure, make && make install  
$ ../configure  
$ make  
$ make install  
  
Verify install:  
$ cd src  
$ pwd  
/home/spch2008/nox/build/src (Path)  
$ make check  
  
Start Nox  
$ cd /home/spch2008/nox/build/src  
$ ./nox_core -i ptcp:6633  
  
OVS connect Nox  
$ ovs-vsctl set-controller of-switch tcp:172.16.4.10:6633  
2. 连接效果
[python] 
/home/spch2008/nox/build/src# ./nox_core -i ptcp:6633  
NOX 0.9.2~core~beta (nox_core), compiled Sep 16 2013 15:42:31  
00001|connection_manager|WARN:connected: 172.16.4.10:6633<->172.16.4.4:33585  
00002|connection_manager|WARN:connected: 172.16.4.10:6633<->172.16.4.4:33586  
00003|connection_manager|WARN:connected: 172.16.4.10:6633<->172.16.4.4:33587  
由上可见,交换机连接到Nox,除了显示连接状态,没有别的信息啦,可以加载组件,显示额外信息。
 
3.加载switch组件 
[plain] 
./nox_core -v  -i ptcp:6633 switch  
显示内容
[plain] 
00062|connection_manager|WARN:connected: 172.16.4.10:6633<->172.16.4.4:33632  
00063|openflow-datapath|DBG:recv 8  
00064|openflow-datapath|DBG:received ofp_hello  
00065|openflow-datapath|WARN:Negotiated OpenFlow version 0x01  
00066|openflow-datapath|DBG:sending ofp_hello  
00067|openflow-datapath|DBG:sending ofp_features_request  
00068|openflow-datapath|DBG:sending ofp_set_config  
00069|openflow-datapath|DBG:sent 8 remaining 0 20  
00070|openflow-datapath|DBG:sent 20 remaining 0 0  
一些hello包,维持交换机与Nox的连接性。
 
可以加载的组件都在/home/spch2008/nox/build/src的coreapps与netapps下。
 
 
Nox-classic安装
[plain] 
Setup Nox repo for ‘nox-dependencies’ package  
$ cd /etc/apt/sources.list.d/  
$ wget http://openflowswitch.org/downloads/debian/nox.list  
$ apt-get update  
$ apt-get install nox-dependencies  
  
Install dependencies:  
$ apt-get install nox-dependencies  
$ apt-get install libtbb-dev  
$ apt-get install libboost-serialization-dev libboost-all-dev  
$ cd /home/spch2008  
$ git clone git://github.com/noxrepo/nox-classic  
  
$ cd nox  
$ ./boot.sh  
$ mkdir build  
$ cd build  
  
Configure, make && make install  
$ ../configure  
$ make -j 5  
  
  
  
Start Nox  
$ cd /home/spch2008/nox/build/src  
$ ./nox_core -i ptcp:6633 monitoring  
  
OVS connect Nox  
$ ovs-vsctl set-controller of-switch tcp:172.16.4.10:6633  
nox-classic含有很多组件,而Nox只有switch,openflow等。
 
/boot.sh中可能出现错误,解决办法:
/home/spch2008/nox-classic/src#   的Make.vars   的56行,改为
pkgdata_SCRIPTS = $(NOX_RUNTIMEFILES) $(NOX_PYBUILDFILES)
 
(免责声明:文章内容如涉及作品内容、版权和其它问题,请及时与我们联系,我们将在第一时间删除内容,文章内容仅供参考)
收藏
  • 人气文章
  • 最新文章
  • 下载排行榜
  • 热门排行榜