mininet卸载:(参考[链接] (https://github.com/mininet/mininet/wiki/FAQ#uninstall))
Wiki是一种在网络上开放且可供多人协同创作的超文本系统
参考链接
若使用apt-get install mininet安装,则可用apt-get remove mininet卸载
若使用源码安装,则可用如下命令卸载:
复制代码
1
2
3
4
5
6sudo pip uninstall mininet sudo rm `which mn` sudo rm `which mnexec` sudo rm /usr/share/man/man1/mn.1* sudo rm /usr/share/man/man1/mnexec.1*
mininet安装:(参考链接)
一:下载mininet-VM镜像,自带了mininet+pox+ovs+of1.0+低版本ovs交换机+wireshark等,操作简单,参考链接
二:采用源码安装:
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13git clone git://github.com/mininet/mininet cd mininet git tag #列出可用版本 git checkout -b 2.2.1 2.2.1 #选择一个版本 cd util ./install.sh -n3V 2.5.0 #安装mininet核心组件+openflow1.3+OVS2.5.0版本 ./install.sh -a -a #全部安装特性 -f #安装OpenFlow reference交换机 -w #安装wireshark的openflow解析器 -s mydir #将软件安装到mydir目录 -h #打印安装帮助信息
OVS换版本的两种办法:
@1 卸载旧版本,安装Open vSwitch新版本,参考链接
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21sudo -s apt-get remove openvswitch-common openvswitch-datapath-dkms openvswitch-controller openvswitch-pki openvswitch-switch cd /root wget http://openvswitch.org/releases/openvswitch-1.10.0.tar.gz tar zxvf openvswitch-1.10.0.tar.gz cd openvswitch-1.10.0/ apt-get install build-essential fakeroot apt-get install debhelper autoconf automake libssl-dev pkg-config bzip2 openssl python-all procps python-qt4 python-zopeinterface python-twisted-conch dh-autoreconf fakeroot debian/rules binary cd .. dpkg -i openvswitch-common*.deb openvswitch-datapath-dkms*.deb openvswitch-controller*.deb openvswitch-pki*.deb openvswitch-switch*.deb #下面代码防止OVS控制器自启动 /etc/init.d/openvswitch-controller stop update-rc.d openvswitch-controller disable #启动OVS服务器 /etc/init.d/openvswitch-switch start #查看安装版本 ovs-vsctl show或ovs-vsctl --version #查看内核版本 modinfo openvswitch | grep version:
@2 直接升级(upgrade),更简单,更快捷,参考链接
复制代码
1
2
3
4ovs-ofctl --version #或者ovs-vsctl --version cd util ./install.sh -V 2.5.0
最后
以上就是踏实康乃馨最近收集整理的关于mininet(卸载安装)+ovs的全部内容,更多相关mininet(卸载安装)+ovs内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复