标签:2.0 grep ubuntu 虚拟网络 test rc.d com 删除 ble
mininet安装:
on Ubuntu 13.04: sudo apt-get install mininet
on Ubuntu 12.10: sudo apt-get install mininet/quantal-backports
on Ubuntu 12.04: sudo apt-get install mininet/precise-backports
一、安装环境:
ubuntu-12.04-32bit
二、安装mininet:
#rm /usr/local/bin/ovs* /usr/local/sbin/ovs* //删除OVS的残余
#apt-get install mininet/precise-backports
三、启动mininet:
#mn(报错,6633端口默认启用。需关闭:#netstat -nap|grep 6633找到进程号之后用:(#kill 进程号)或(#kill -9 进程号)杀死进程)
#service openvswitch-switch start
#mn
四、启动成功。
五、如需要OpenFlow reference switch, reference controller and Wireshark dissector组件,则运行:
#git clone git://github.com/mininet/mininet
#mininet/util/install.sh -fw
六、源码安装:
#git clone git://github.com/mininet/mininet
To install everything (using your home directory): #install.sh -a
#mininet/util/install.sh -h可以查看帮助选项。
*使用命令mn --topo single,3 --mac --switch ovsk --controller remote创建一个3台主机,一台(openvSwitch-based)交换机的虚拟网络。
安装完后是默认启动的,先关闭mininet
sudo service openvswitch-controller stop
不要开启启动
sudo update-rc.d openvswitch-controller disable
测试下安装是否成功
sudo mn --test pingall
默认启动mininet
sudo mn --controller=remote,ip=127.0.0.1,port=6633
标签:2.0 grep ubuntu 虚拟网络 test rc.d com 删除 ble
原文地址:http://www.cnblogs.com/wsjhk/p/7050602.html