November 2017
Intermediate to advanced
494 pages
14h 29m
English
The Open vSwitch bridge is similar to the Linux bridge except that it is enough to configure one Open vSwitch bridge, such as a physical switch, where we can pass several VLANs. We do not need to create separate bridges for each VLAN, like Linux bridges. Configuring an Open vSwitch bridge is a little more complicated than a Linux bridge. We need to configure the port first before creating the actual bridge. In our example, we are going to configure the port, eth1, which is what our Open vSwitch bridge, vmbr1, is going to be based on. For this, we need to add the following lines of code to /etc/network/interfaces:
allow-vmbr1 ens21 iface ens21 inet manual ovs_type OVSPort ovs_bridge vmbr1 auto vmbr1 allow-ovs ...