OVS configuration

andrej75

Member
Jun 10, 2023
33
1
11
Hello guys,

I've been trying to configure OVS on a server for the past 3 hours, unfortunately without success so far. Do you have any advice?

Code:
auto lo
iface lo inet loopback

auto enp2s0f0
iface enp2s0f0 inet manual

auto enp2s0f1
iface enp2s0f1 inet manual

auto enp2s0f2
iface enp2s0f2 inet manual

auto enp2s0f3
iface enp2s0f3 inet manual

auto bond0
iface bond0 inet manual
    ovs_type OVSBond
    ovs_bridge vmbr0
    ovs_ports enp2s0f0 enp2s0f1
    ovs_options bond_mode=active-backup

auto vmbr0
iface vmbr0 inet static
    address 10.11.10.25/24
    gateway 10.11.10.1
    ovs_type OVSBridge
    ovs_ports bond0

When I temporarily change the configuration using this command

Code:
ovs-vsctl add-bond vmbr0 bond0 enp2s0f0 enp2s0f1

Works without any issues. The Linux vSwitch functions perfectly. However, I can't use it because I want to use VLANs.