Continuing the discussion from ConnectX-5 in Proxmox loses connectivity to management interface on VLAN trunk. Promic on fixes it:
(upgrade of proxmox to 9.2.11 and firware upgrade did not fix)
Working fix by using a bond:
auto ens1f0np0
iface ens1f0np0 inet manual
auto bond0
iface bond0 inet manual
bond-slaves ens1f0np0
bond-miimon 100
bond-mode active-backup
auto vmbr0
iface vmbr0 inet manual
bridge-ports bond0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
auto vmbr0.16
iface vmbr0.16 inet static
address 192.168.1.50/24
gateway 192.168.1.1
To bypass the Mellanox hardware bug completely, you need to implement the Single-Port Bond wrapper mentioned earlier. This safely hides the physical interface from Proxmox’s VLAN-aware logic, forcing the host to handle the VLAN trunk in software.