How To Install openvswitch-switch on Ubuntu 20.04

In this tutorial we learn how to install openvswitch-switch on Ubuntu 20.04. openvswitch-switch is Open vSwitch switch implementations Open vSwitch switch implementations Open vSwitch switch implementations

Introduction

In this tutorial we learn how to install openvswitch-switch on Ubuntu 20.04.

What is openvswitch-switch

openvswitch-switch is:

Open vSwitch is a production quality, multilayer, software-based, Ethernet virtual switch. It is designed to enable massive network automation through programmatic extension, while still supporting standard management interfaces and protocols (e.g. NetFlow, IPFIX, sFlow, SPAN, RSPAN, CLI, LACP, 802.1ag). In addition, it is designed to support distribution across multiple physical servers similar to VMware’s vNetwork distributed vswitch or Cisco’s Nexus 1000V.

openvswitch-switch provides the userspace components and utilities for the Open vSwitch kernel-based switch.

Package: openvswitch-switch Architecture: amd64 Version: 2.13.1-0ubuntu0.20.04.4 Priority: extra Section: net Source: openvswitch Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Open vSwitch developers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 7514 Depends: kmod | module-init-tools, netbase, openvswitch-common (= 2.13.1-0ubuntu0.20.04.4), procps, python3-netifaces, python3-openvswitch (>= 2.13.1-0ubuntu0.20.04.4), uuid-runtime, python3:any, libc6 (>= 2.29), libcap-ng0 (>= 0.7.9), libssl1.1 (>= 1.1.0), libunbound8 (>= 1.8.0) Filename: pool/main/o/openvswitch/openvswitch-switch_2.13.1-0ubuntu0.20.04.4_amd64.deb Size: 1533508 MD5sum: a894a25c4dbd08784869531955ddedcb SHA1: b520fdae4c46a758d4369b999297b7dfb79350e2 SHA256: 57ec9a3567e05a9bc20d3d3c314884c5056d09a6e0cf6312e10d83ca7309911b SHA512: e73e910b67392bcb3cda78d1d59b09b6073312a470b6bc9ce63db3286153b4c3a017912066573c768bd82487e6266fe4533a81b8ce85cae6bc0a844f84c039a4 Homepage: http://openvswitch.org/ Description-en: Open vSwitch switch implementations Open vSwitch is a production quality, multilayer, software-based, Ethernet virtual switch. It is designed to enable massive network automation through programmatic extension, while still supporting standard management interfaces and protocols (e.g. NetFlow, IPFIX, sFlow, SPAN, RSPAN, CLI, LACP, 802.1ag). In addition, it is designed to support distribution across multiple physical servers similar to VMware’s vNetwork distributed vswitch or Cisco’s Nexus 1000V.

openvswitch-switch provides the userspace components and utilities for the Open vSwitch kernel-based switch.

Package: openvswitch-switch Architecture: amd64 Version: 2.13.0-0ubuntu1 Priority: extra Section: net Source: openvswitch Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Open vSwitch developers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 7472 Depends: kmod | module-init-tools, netbase, openvswitch-common (= 2.13.0-0ubuntu1), procps, python3-netifaces, python3-openvswitch (>= 2.13.0-0ubuntu1), uuid-runtime, python3:any, libc6 (>= 2.29), libcap-ng0 (>= 0.7.9), libssl1.1 (>= 1.1.0), libunbound8 (>= 1.8.0) Filename: pool/main/o/openvswitch/openvswitch-switch_2.13.0-0ubuntu1_amd64.deb Size: 1519448 MD5sum: ceb2e52570f70f17ddd705e86421b859 SHA1: 50b354f5970ac61b6dae948172e6e63f7b184e73 SHA256: 3d308d1dbdbfd1d01fd678574f091a0e33e013c597bc6c704f59e9f56a3c1e64 Homepage: http://openvswitch.org/ Description-en: Open vSwitch switch implementations Open vSwitch is a production quality, multilayer, software-based, Ethernet virtual switch. It is designed to enable massive network automation through programmatic extension, while still supporting standard management interfaces and protocols (e.g. NetFlow, IPFIX, sFlow, SPAN, RSPAN, CLI, LACP, 802.1ag). In addition, it is designed to support distribution across multiple physical servers similar to VMware’s vNetwork distributed vswitch or Cisco’s Nexus 1000V.

openvswitch-switch provides the userspace components and utilities for the Open vSwitch kernel-based switch.

There are three methods to install openvswitch-switch on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install openvswitch-switch Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install openvswitch-switch using apt-get by running the following command:

sudo apt-get -y install openvswitch-switch

Install openvswitch-switch Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install openvswitch-switch using apt by running the following command:

sudo apt -y install openvswitch-switch

Install openvswitch-switch Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install openvswitch-switch using aptitude by running the following command:

sudo aptitude -y install openvswitch-switch

How To Uninstall openvswitch-switch on Ubuntu 20.04

To uninstall only the openvswitch-switch package we can use the following command:

sudo apt-get remove openvswitch-switch

Uninstall openvswitch-switch And Its Dependencies

To uninstall openvswitch-switch and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove openvswitch-switch

Remove openvswitch-switch Configurations and Data

To remove openvswitch-switch configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge openvswitch-switch

Remove openvswitch-switch configuration, data, and all of its dependencies

We can use the following command to remove openvswitch-switch configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge openvswitch-switch

References

Summary

In this tutorial we learn how to install openvswitch-switch package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.