mininet+openflowsoftswitch+nox

环境:ubuntu 12.04

一。首先安装 openflowsoftswitch

git clone https://github.com/CPqD/ofsoftswitch13   (直接在网页点进下载会出现git相关的错)

  1. Install the following packages:

    $ sudo apt-get install cmake libpcap-dev libxerces-c2-dev libpcre3-dev flex bison pkg-config autoconf libtool libboost-dev
    
  2. Download the most recent Netbee version, and unpack the source code from:http://www.nbee.org/download/nbeesrc-jan-10-2013.php

  3. Create the build system

    $ cd nbeesrc/src
    $ cmake .
    
  4. Compile

    $ make
  5. cd ..
    
     
  6. Add the shared libraries built in /nbeesrc/bin/ to your /usr/local/lib directory

    $ sudo cp ../bin/libn*.so /usr/local/lib
    
  7. Run ldconfig

    $ sudo ldconfig
    
  8. 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)

  
  
  
  
  1. Setup Nox repo for ‘nox-dependencies’ package  
  2. $ cd /etc/apt/sources.list.d/  
  3. $ wget http://openflowswitch.org/downloads/debian/nox.list  
  4. $ apt-get update  
  5. $ apt-get install nox-dependencies  
  6. $ apt-get install libtbb-dev  
  7. $ apt-get install libboost-serialization-dev libboost-all-dev  
  8. $ cd /home/spch2008  
  9. $ git clone git://github.com/noxrepo/nox
  10. $ cd nox  
  11. $ ./boot.sh  
  12. $ mkdir build  
  13. $ cd build  
  14.   
  15. Configure, make && make install  
  16. $ ../configure  
  17. $ make  
  18. $ make install 
  19. cd /home/mz/nox/build/src 
  20.  
  21. 三.本地安装mininet
  22. git clone git://github.com/mininet/mininet
    
    mininet/util/install.sh -a (装所有地包)
  23. mininet/util/install.sh -r (去掉里面带地OVSswitch)
  24. 四.启动
  25. 先启动控制器
  26. ./nox_core -v -i ptcp:6633
    启动mininet
    mn --switch user --controller=remote --ip=127.0.0.1




 

你可能感兴趣的:(nox,Mininet,ofsoftswitch)