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)