Open vSwitch: Difference between revisions
From Leo's Notes
This page was last edited on 4 February 2022, at 21:27.
m Updated categories |
No edit summary |
||
| Line 7: | Line 7: | ||
| code = # yum install http://mirror.centos.org/centos/8/extras/x86_64/os/Packages/centos-release-nfv-openvswitch-1-3.el8.noarch.rpm http://mirror.centos.org/centos/8/extras/x86_64/os/Packages/centos-release-nfv-common-1-3.el8.noarch.rpm | | code = # yum install http://mirror.centos.org/centos/8/extras/x86_64/os/Packages/centos-release-nfv-openvswitch-1-3.el8.noarch.rpm http://mirror.centos.org/centos/8/extras/x86_64/os/Packages/centos-release-nfv-common-1-3.el8.noarch.rpm | ||
# yum install openvswitch-2.13 | # yum install openvswitch-2.13 | ||
| lang = terminal | |||
}} | |||
== Tasks == | |||
=== Create a bonded connection === | |||
To bond two network interfaces: | |||
{{Highlight | |||
| code = # ovs-vsctl add-bond nic0 bond0 eth0 eth1 bond_mode=balance-tcp lacp=active | |||
## If your bonded connection uses VLANs, you can then set it by adjusting the port: | |||
# ovs-vsctl set port nic0 vlan_mode=native-untagged trunks=417,418,450-950,3209 | |||
| lang = terminal | | lang = terminal | ||
}} | }} | ||
Revision as of 21:27, 4 February 2022
Open vSwitch is widely used as a virtual switch in infrastructure as a service type environments.
Installation
CentOS 8
# yum install http://mirror.centos.org/centos/8/extras/x86_64/os/Packages/centos-release-nfv-openvswitch-1-3.el8.noarch.rpm http://mirror.centos.org/centos/8/extras/x86_64/os/Packages/centos-release-nfv-common-1-3.el8.noarch.rpm
# yum install openvswitch-2.13
Tasks
Create a bonded connection
To bond two network interfaces:
# ovs-vsctl add-bond nic0 bond0 eth0 eth1 bond_mode=balance-tcp lacp=active
## If your bonded connection uses VLANs, you can then set it by adjusting the port:
# ovs-vsctl set port nic0 vlan_mode=native-untagged trunks=417,418,450-950,3209