Persisting VLAN IDs on phyiscal trunk port

blablub44

New Member
Oct 8, 2024
1
0
1
Hey all,

I'm using a VLAN-aware bridge in Proxmox that I connect VMs to. All traffic flows out to a switch via enp87s0. the network's gateway as well as some client devices are also on that switch.

Here's my /etc/networking/interfaces
Code:
auto lo
iface lo inet loopback

iface enp87s0 inet manual
#uplink switch

auto vmbr1
iface vmbr1 inet manual
        bridge-ports enp87s0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094

source /etc/network/interfaces.d/*

However, the bridge does not output any tagged traffic on enp87s0 unless I run: bridge vlan add dev enp87s0 vid 2-4094 - then it immediately works. So, effectively I'm telling the linux bridge that enp87s0 is a trunk port. How would I make this persistent through the CLI or ideally through proxmox GUI?

I do not want to create sub-interfaces for the VLANs in proxmox, I basically want exactly what bridge vlan add dev enp87s0 vid 2-4094 does, but persisted in /etc/networking/interfaces... Does anyone know if this is possible?
 

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!