SOLVED: Can't assign a VM to VLAN 1 even when I believe the vmbr is set up correctly?

jlficken

New Member
Sep 6, 2022
29
2
3
The switch ports are set up as trunk ports with VLAN5 being untagged (where I want most VM's to land) and VLAN1, VLAN25, VLAN75, etc being tagged.

Here's my network.cfg:
Code:
auto bond1
iface bond1 inet manual
        bond-slaves enp133s0 enp4s0d1 enp5s0f1
        bond-miimon 100
        bond-mode active-backup
        bond-primary enp133s0
#VMs

auto vmbr1
iface vmbr1 inet manual
        bridge-ports bond1
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 1-4094
#FSPVE2-VMs

I've restarted the node.

I've tested tagging the VM with a different VLAN that is also set to tagged on the switch port(75 in this case) and with DHCP being enabled on the VM it lands on the correct subnet, however, I can't for the life of me get VLAN1 to work on vmbr1.

Does anyone have any thoughts as even though I know that using VLAN1 isn't recommended it's my understanding that it should work?
 
Last edited:
Hi, I would guess because vlan 1 is default PVID on interface:

Code:
auto vmbr0
iface vmbr0 inet static
    address 192.168.14.243/24
    gateway 192.168.14.1
    bridge-ports eno1
    bridge-stp off
    bridge-fd 0
    bridge-vlan-aware yes
    bridge-vids 2-4094

root@z:~# bridge vlan show | more
port              vlan-id 
eno1              1 PVID Egress Untagged
                  2
                  3


maybe you can change this with command

Code:
bridge vlan pvid/untagged
 
I wound up going into the switch ports being used for my VM's and changed the way they were configured.

I have VLAN1 set to be *Untagged* now and the rest of my VLAN's are now *Tagged*.

In the NIC setup for each VM/LXC on Proxmox I set all VLAN ID's now except for 1 since it's now Untagged on my switches and everything is working correctly.
 

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!