Ubuntu 12.04 Nox 安装

来源:互联网 发布:windows 95 原版iso 编辑:程序博客网 时间:2024/05/01 07:00

本文地址:http://blog.csdn.net/spch2008/article/details/11890163

1. 安装

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-dependenciesInstall 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 buildConfigure, make && make install$ ../configure$ make$ make installVerify install:$ cd src$ pwd/home/spch2008/nox/build/src (Path)$ make checkStart Nox$ cd /home/spch2008/nox/build/src$ ./nox_core -i ptcp:6633OVS connect Nox$ ovs-vsctl set-controller of-switch tcp:172.16.4.10:6633

2. 连接效果

/home/spch2008/nox/build/src# ./nox_core -i ptcp:6633NOX 0.9.2~core~beta (nox_core), compiled Sep 16 2013 15:42:3100001|connection_manager|WARN:connected: 172.16.4.10:6633<->172.16.4.4:3358500002|connection_manager|WARN:connected: 172.16.4.10:6633<->172.16.4.4:3358600003|connection_manager|WARN:connected: 172.16.4.10:6633<->172.16.4.4:33587

由上可见,交换机连接到Nox,除了显示连接状态,没有别的信息啦,可以加载组件,显示额外信息。


3.加载switch组件

 ./nox_core -v  -i ptcp:6633 switch
显示内容

00062|connection_manager|WARN:connected: 172.16.4.10:6633<->172.16.4.4:3363200063|openflow-datapath|DBG:recv 800064|openflow-datapath|DBG:received ofp_hello00065|openflow-datapath|WARN:Negotiated OpenFlow version 0x0100066|openflow-datapath|DBG:sending ofp_hello00067|openflow-datapath|DBG:sending ofp_features_request00068|openflow-datapath|DBG:sending ofp_set_config00069|openflow-datapath|DBG:sent 8 remaining 0 2000070|openflow-datapath|DBG:sent 20 remaining 0 0
一些hello包,维持交换机与Nox的连接性。


可以加载的组件都在/home/spch2008/nox/build/src的coreapps与netapps下。



Nox-classic安装

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-dependenciesInstall 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 buildConfigure, make && make install$ ../configure$ make -j 5Start Nox$ cd /home/spch2008/nox/build/src$ ./nox_core -i ptcp:6633 monitoringOVS 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)

  

原创粉丝点击