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:
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?
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: