Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to upgrade Openvswitch in Ubuntu14.04 Mininet

Shulou Source: shulou.com Published: 2022-06-01 01:48:39 09月22日 Update

This article will explain in detail how to upgrade Openvswitch in Ubuntu14.04 Mininet. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Download Mininet first

Apt-get install mininetservice openvswitch-controller stopupdate-rc.d openvswitch-controller disablemn-- test pingall the following error may occur here sudo mn-- mac-- controller=remote,port=6653-- topo=tree Adding controller Adding hosts: H2 h3 h4 h5 Adding switches: S1 S2 s3Adding links: * gave up after 3 retries

The solution to the above problems is to reduce the kernel version of linux from 4.x to 3.x.

Download the corresponding version of Openvswitch

Openvswitch downloads the corresponding version

Cd / homemkdir openvswitchcd openvswitchrz # uploads the downloaded Openvswitch to tar-xzvf openvswitch-2.4.1.tar.gzcd openvswitch-2.4.1apt-get install build-essential fakerootapt-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 after installation: dpkg-checkbuilddepsfakeroot debian/rules binarycd.. # that is, exit to the newly created openvswitch directory dpkg-I * .deb. Here, if you find that the package dependency problem is wrong, uninstall the corresponding program first. The corresponding dependent program of apt-get install is to re-dpkg-I * .deb where the Openvswitch-controller of Openvswitch may not be able to use the file cd / usr/bincp ovs-testcontroller ovs-testcontroller.bak # backup mv ovs-testcontroller ovs-controller # to change the name / etc/init.d/openvswitch-switch restart # restart ovs-vsctl-- version to check the version under / usr/bin

Due to version problems, there will be an ovs-controller error after the final completion.

Apt-get purge openvswitch-controller # Uninstalls the old version of ovs-controllercd / usr/bin/mv. / ovs-testcontroller. / ovs-testcontroller.bakmv. / ovs-testcontroller. / ovs-controller

The problem can be solved.

This is the end of this article on "how to upgrade Openvswitch in Ubuntu14.04 Mininet". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Tags: Versions problems articles upgrades kernels more programs good practical content methods names backups files articles directories knowledge errors references help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux MariaDB vpn Xiaomi macOS