Ubuntu14.04 Mininet中将Openvswitch升级步骤

首先下载Mininet

apt-get install mininet

service openvswitch-controller stop

update-rc.d openvswitch-controller disable

mn --test pingall 这里可能会出现以下错误

sudo mn --mac --controller=remote,port=6653 --topo=tree
 
Adding controller
 
Adding hosts: h1 h2 h3 h4 

Adding switches: s1 s2 s3

Adding links: * gave up after 3 retries

出现以上问题的解决办法是将linux的内核从4.x降到3.x就可以了降低内核版本

下载Openvswitch对应的版本

Openvswitch下载对应的版本

cd  /home
mkdir openvswitch
cd openvswitch
rz #将下载好的Openvswitch上传
tar -xzvf openvswitch-2.4.1.tar.gz
cd openvswitch-2.4.1
apt-get install build-essential fakeroot
apt-get install debhelper autoconf automake libssl-dev pkg-config bzip2 openssl python-all procps python-qt4 python-zope.interface python-twisted-conch ipsec-tools racoon python-twisted-web module-assistant graphviz libtool dkms
上面安装完后:
dpkg-checkbuilddeps
fakeroot debian/rules binary
cd ..   #即退出到新创建的openvswitch目录
dpkg -i *.deb
这里如果发现包的依赖问题出错就将相应的程序先卸载,apt-get install相应的依赖程序在重新dpkg -i *.deb

这里Openvswitch的Openvswitch-controller可能不能用需要修改一下/usr/bin下的文件
cd /usr/bin
cp ovs-testcontroller ovs-testcontroller.bak #备份
mv ovs-testcontroller ovs-controller #更换名字
/etc/init.d/openvswitch-switch restart #重启
ovs-vsctl --version 查看版本即可

由于版本问题,最后完成后会出现ovs-controller报错

apt-get  purge openvswitch-controller #卸载老版本的ovs-controller

cd /usr/bin/

mv ./ovs-testcontroller ./ovs-testcontroller.bak

mv ./ovs-testcontroller ./ovs-controller

问题即可解决

转载于:https://my.oschina.net/csuxqiang/blog/807866

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值