Hi,
I'm trying to trunk a subset of the host VLANs to a VM using proxmox VE 6.3-3 on debian 10.
In the web UI there is only one option tag= for a VM interface which gives access to the given VLAN only as untagged inside the VM.
If no tag= is set then the VM sees all the VLAN configured on the bridge.
My host has 4 VLANs tagged 10 20 30 40.
I first edited manually /etc/network/interfaces since through the web UI you only get no VLAN or all VLAN (2-4095) unless I missed an option somewhere?
Then on the second interface of VM 101 I'm doing the following:
By default VLAN 1 is passed untagged to the interface of the VM. I did remove it manually with the bridge vlan del command but could not find a way to do it within proxmox tools, am I missing something?
I tried to add a tag=none tag=0 tag=-1 but tag= accepts only integer from 1 to 4094 so it's useful if you want one of the VLAN of the trunk passed as untagged but not to remove vlan 1 untagged altogether.
Thanks for your help!
I'm trying to trunk a subset of the host VLANs to a VM using proxmox VE 6.3-3 on debian 10.
In the web UI there is only one option tag= for a VM interface which gives access to the given VLAN only as untagged inside the VM.
If no tag= is set then the VM sees all the VLAN configured on the bridge.
My host has 4 VLANs tagged 10 20 30 40.
I first edited manually /etc/network/interfaces since through the web UI you only get no VLAN or all VLAN (2-4095) unless I missed an option somewhere?
Code:
# cat /etc/network/interfaces
....
iface vmbr0 inet static
....
bridge-vlan-aware yes
bridge-vids 10 20 30 40
Then on the second interface of VM 101 I'm doing the following:
Code:
# qm set 101 --net1 virtio=96:50:38:74:17:27,bridge=vmbr0,trunks='10;20;30'
update VM 101: -net1 virtio=96:50:38:74:17:27,bridge=vmbr0,trunks=10;20;30
# bridge vlan
...
tap101i1 1 PVID Egress Untagged
10
20
30
# bridge vlan del vid 1 dev tap101i1
# bridge vlan
...
tap101i1 10
20
30
By default VLAN 1 is passed untagged to the interface of the VM. I did remove it manually with the bridge vlan del command but could not find a way to do it within proxmox tools, am I missing something?
I tried to add a tag=none tag=0 tag=-1 but tag= accepts only integer from 1 to 4094 so it's useful if you want one of the VLAN of the trunk passed as untagged but not to remove vlan 1 untagged altogether.
Thanks for your help!