Connect proxmox host to OVS bridge

Alanl96

Member
Aug 31, 2022
25
5
8
Hi everyone, I am so confused right now. The documentation for OVS is really confusing for me. I created a bridge in Proxmox 8, I read somewhere that I have to only use OVS if I choose to use OVS for some ports, so it's all or nothing. This Proxmox server is supposed to be a router, so I will have a pfsense VM and the WAN will be enp1s0 while enp2s0, eno1, enp4s0, and enp5s0 are members of an OVS bridge. I have no idea how to connect my proxmox host to the OVS bridge, I need all ethernet ports available to plug in devices, so my proxmox host must connect virtually to OVS. Can someone please explain to me what I need to do? I setup OVS on Debian bookworm before installing proxmox and the only way I could get the host to connect to the network was by creating a veth pair and having it come up with a cron job, but then I installed proxmox for more functionality.
 
I found that I can get an IP address from pfsense if I add the line "auto vmbr2" under the loopback, then type "dhclient vmbr2" Proxmox has a warning inside of this file that says don't manually type anything in this document. Clearly there are other ways to update this file, every time I change something in the network section of Proxmox, it deletes my line. I woke up this morning to copy this config file and I noticed I had two IP addresses. something happened overnight and my Proxmox now counts as two devices on pfsense. I'm not sure how that happened.

auto lo
iface lo inet loopback

auto vmbr2

auto eno1
iface eno1 inet manual
ovs_type OVSPort
ovs_bridge vmbr2

auto enp4s0
iface enp4s0 inet manual
ovs_type OVSPort
ovs_bridge vmbr2

auto enp5s0
iface enp5s0 inet manual
ovs_type OVSPort
ovs_bridge vmbr2

auto enp1s0
iface enp1s0 inet manual
ovs_type OVSPort
ovs_bridge vmbr3

auto enp2s0
iface enp2s0 inet manual
ovs_type OVSPort
ovs_bridge vmbr2

auto vmbr2
iface vmbr2 inet manual
ovs_type OVSBridge
ovs_ports enp2s0 eno1 enp4s0 enp5s0
ovs_options tag=45
#OVS LAN

auto vmbr3
iface vmbr3 inet manual
ovs_type OVSBridge
ovs_ports enp1s0
#pfsense WAN
 
I changed the IP address in pfsense. I broke proxmox, at this point I am going to reinstall the OS and keep good backups.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!