环境:ubuntu 12.04
一。首先安装 openflowsoftswitch
git clone https://github.com/CPqD/ofsoftswitch13 (直接在网页点进下载会出现git相关的错)
-
Install the following packages:
$ sudo apt-get install cmake libpcap-dev libxerces-c2-dev libpcre3-dev flex bison pkg-config autoconf libtool libboost-dev
-
Download the most recent Netbee version, and unpack the source code from:http://www.nbee.org/download/nbeesrc-jan-10-2013.php
-
Create the build system
$ cd nbeesrc/src $ cmake .
-
Compile
$ make
-
cd ..
-
Add the shared libraries built in
/nbeesrc/bin/
to your/usr/local/lib
directory$ sudo cp ../bin/libn*.so /usr/local/lib
-
Run
ldconfig
$ sudo ldconfig
-
Put the contens of folder
nbeesrc/include
in the/usr/include
$ sudo cp -R ../include/* /usr/include/
$ ./boot.sh $ ./configure $ make $ sudo make install 注: 也可以自己下载安装openvswitch,根据其中的INSTALL进行安装。 二 。安装 nox(不需要更新boost)
- 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
- $ 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
- cd /home/mz/nox/build/src
- 三.本地安装mininet
git clone git://github.com/mininet/mininet
mininet/util/install.sh -a (装所有地包)
mininet/util/install.sh -r (去掉里面带地OVSswitch)
四.启动- 先启动控制器
./nox_core -v -i ptcp:6633启动mininet
mn --switch user --controller=remote --ip=127.0.0.1