mininet+openflowsoftswitch+nox

本文档介绍了如何在Ubuntu 12.04环境下安装和配置mininet,openflowsoftswitch以及NOX。首先通过git克隆ofsoftswitch13,然后安装必要的软件包,下载并编译Netbee版本,将生成的库添加到系统路径,并确保正确运行。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

环境: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




 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值