struggling with ovs-bridge?

0zw00d

Member
Jan 20, 2022
19
1
8
43
Hello together,

I have the following problem:

I want to setup my running PVE (with all the lxcs and vms) to use openvswitch-switch.
The package is already installed.

So my Network Interfaces configuration is:

enp0s31f6: setup as vmbr0 -> actually with the ip 10.0.0.47/24
enp1s0f0: setup as vmbr1 -> used for LAN in OPNSense
enp1s0f1: setup as vmbr2 -> used as WAN in OPNsense

So my plan is, to get everything up in running in a separate Network and getting everything through the OPNSense Firewall.

It's more Network and Proxmox related I think, other VLANs I configured are running on other switches.

What I checked out:

on my switch side:

setting my Netgear GS308E via 802.1Q to have a VLAN named "101".
port 1 -> Tagged --> from my Gateway
port 2 -> internal Network 10.0.0.0/24
port 3 -> Untagged for PVE
port 5+6 -> Untagged for LAN and WAN in OPNSense
PVIDs for ports 3+5+6 101

on PVE:

I tested the following interfaces configuration after reading the Documentation for it:

auto lo

iface lo inet loopback

auto enp0s31f6
iface enp0s31f6 inet manual
ovs_type OVSPort
ovs_bridge vmbr0

auto enp1s0f1
iface enp1s0f1 inet manual
ovs_type OVSPort
ovs_bridge vmbr1

auto enp1s0f0
iface enp1s0f0 inet manual
ovs_type OVSPort
ovs_bridge vmbr2

auto vlan101
iface vlan101 inet static
address 10.0.0.47/24
gateway 10.0.0.1
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=101

auto vmbr0
iface vmbr0 inet manual
ovs_type OVSBridge
ovs_ports enp0s31f6 vlan101

auto vmbr1
iface vmbr1 inet manual
ovs_type OVSBridge
ovs_ports enp1s0f1

auto vmbr2
iface vmbr2 inet manual
ovs_type OVSBridge
ovs_ports enp1s0f0

source /etc/network/interfaces.d/*


But after that pve isn't responsible.
I can't really find out why.
It's the first time I tested something like this.
I would be very appreciated if you guy can help me to get it working and also getting a deeper understanding how it works.

Best regards 0zw00d