mininet(卸载安装)+ovs

mininet卸载:(参考[链接] (https://github.com/mininet/mininet/wiki/FAQ#uninstall))
Wiki是一种在网络上开放且可供多人协同创作的超文本系统
参考链接
若使用apt-get install mininet安装,则可用apt-get remove mininet卸载
若使用源码安装,则可用如下命令卸载:

sudo 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等,操作简单,参考链接
二:采用源码安装:

git 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新版本,参考链接

sudo -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),更简单,更快捷,参考链接

ovs-ofctl --version #或者ovs-vsctl --version
cd util
./install.sh -V 2.5.0
  • 1
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值