Clarification on VLAN options / VLAN aware bridge

carsb

New Member
Dec 10, 2024
9
2
3
Hi,
I am currently using a simple setup with bridges vmbr0 (WAN) / vmbr1 (LAN) and are in process of adding some VLAN config on top.
From own research, easiest solution is to enable

Node > System > Network > vmbr1 > VLAN aware

and assign VLAN tags to VMs. To my understanding this makes vmbr1 act as VLAN trunk, which allows re-use of these tags, like for
  • physical managed VLAN switches outside Proxmox VE
  • VLAN firewall rules within separate VM, e.g. OPNsense (my case)
There are some questions left:

1.) Most important: Does vmbr1 still route untagged packets from VMs, that don't have a VLAN tag assigned? In other words, is enabling "VLAN aware" mode a safe operation? Current system should work as usual, as VLAN config is incrementally added (assuming firewall doesn't have any blocking VLAN rules yet).

2.) What does statement
Trunk mode is also possible, but that makes configuration in the guest necessary.
mean? I thought, checking VLAN aware automatically would make vmbr1 a trunk.

3.) "Traditional" method is to create a separate bridge vmbrX.Y per VLAN, declaring bridge port in dot notation like eno1.20 and then using either eno1.20 or vmbrX.20 as VM NIC as described here, right? Is it considered legacy and above option should be preferred in newer configurations?

4.) Regarding point 3: I would need to assign all VLAN bridges to OPNsense, as VLAN tagging is terminated at vmbr1?

5.) Node > Network > Create > Linux VLAN seems another alternative in the web interface. Is this option used, when pve host needs own IP in a VLAN subnet - or what other use cases exist?

Please don't shy away from answering single questions.

Thanks a lot.
 
Last edited:
Hm, regarding question 1
Does vmbr1 still route untagged packets from VMs, that don't have a VLAN tag assigned?
, I consulted some LLMs.
One stated, a VLAN aware bridge in Proxmox per default accepts and routes untagged traffic, which is treated as VLAN 1.
The other answered, untagged traffic is blocked by default and I need to configure native VLAN/PVID manually via CLI.

Unfortunately, I don't have another Proxmox system to test things out, hence kindly appreciate any help.