网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

Ubuntu14.04Mininet中如何将Openvswitch升级

这篇文章将为大家详细讲解有关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: h2 h3 h4 h5 

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

问题即可解决

关于“Ubuntu14.04 Mininet中如何将Openvswitch升级”这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。


网站标题:Ubuntu14.04Mininet中如何将Openvswitch升级
网页URL:http://bjjierui.cn/article/ihiosh.html

其他资讯