Enabling VLAN Aware on a bridge makes the untagged management interface unavailable

gkuyuk

Member
Jan 15, 2022
9
2
23
52
I have a problem with enabling the vlan on the bridge on a test setup, management interface is on default vlan (vlan id 1). Switch port is configured as a trunk port with the native vlan id untagged. This is a proxmox 9.2 with all the updates applied. Proxmox 8 works just fine on the same port as expected as well as any vm with a tagged vlan. Here is the network configuration,

Code:
auto vmbr0
iface vmbr0 inet static
        address 10.1.1.10/24
        gateway 10.1.1.1
        bridge-ports nic2
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware no
        bridge-vids 2-4094
        bridge-pvid 1
        mtu 9000
        post-up bridge vlan add dev vmbr0 vid 1 pvid untagged self

any recommandtations on what to check is appreciated.

Thank you,
 
So when you set
bridge-vlan-aware yes
You lose connectivity?
Is your NICs Broadcom bnxt_en NICs?

P.S
I would think it should work with the below:
Bash:
auto vmbr0
iface vmbr0 inet static
        address 10.1.1.10/24
        gateway 10.1.1.1
        bridge-ports nic2
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094
        mtu 9000
VID 1 is the default untagged in the above. Ensure MTU 9000 is set on nic2 as well as on the switch.
 
Last edited:
Yes that is correct, the proxmox server cant ping anything on the default vlan network. Surprizingly it started working this morning after I left it untouched all sunday. I will try to duplicate the problem if I can.
 
  • Like
Reactions: longer
Is your NICs Broadcom bnxt_en NICs?
I edited my first comment if thats can be tested (Ensure you have access via IPMI/iDRAC and take backup of /etc/network/interfaces so you can easily revert things)
 
No they are Mellanox ConnectX-4 cards.
Apply this. There are some quirks with this card. You need to limit the number vlans you are going to use and use a post-up config.
You might have to change the pci bus below to match your setup. Had similar issues. Below is an example.


iface vmbr0 inet manual
bridge-vids 10,20,30 <-limit number of vlans
post-up devlink dev eswitch set pci/0000:af:00.0 mode switchdev <-enable bridge aware offloading feature