[SOLVED] Problem with VLAN trunks on VM

Jun 14, 2022
4
0
6
EDIT: Nevermind! Turns out I didn't notice I was changing the NIC definition inside a snapshot, not in the base VM itself. When I changed the definition in the base VM it started working!

Hi.

I'm having some trouble getting multiple VLANs working on a NIC in a VM.

I'm trying to use both a public IP subnet (VLAN 400) and another private subnet that can contact our Ceph cluster (VLAN 2). The public IP subnet is supposed to be the primary routed address. The definition for the NIC on the VM in /etc/pve/qemu-server/[VMID].conf is this:

Code:
net0: virtio=D2:98:69:D8:05:F5,bridge=vmbr0,firewall=0,tag=400,trunks='2;400'

I'm able to use the public IP subnet but not the private subnet.

I was wondering if the 'tag=' and 'trunks=' definitions are interacting in some weird way but the documentation for 'trunks=' is very sparse. I also tried only having VLAN 2 in the trunks definition, didn't help.

Does somebody know what the problem could be and how this should be set up?
 
Last edited:

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!