I have proxmox host (only 1 physical port available) connected to Cisco switch with following config on the Cisco switch port.
switchport mode trunk
switchport trunk native vlan 10
switchport trunk allowed vlan 10,20,30,40,50,60,100
on the proxmox host, network bridge is created (vmbr0) with VLAN aware and VLAN range 2-4094. If I create a VM/LXC, I usually just use vmbr0 and use the VLAN Tag option. For example if I create Frigate LXC and I want to it to be on the Surveillance VLAN (40), I just use VLAN Tag 40 on the LXC and it will get the VLAN40 subnet correctly.
But currently I need to create Docker VM with VLAN20 as its native VLAN and then this Docker will be able to assign only either VLAN 30,50 to its container. How to achieve this?
note: I don't want to pass the whole VLAN to this Docker VM. Only 20 (native), 30 and 50 (for its container). Basically I want the equivalent of
switchport mode trunk
switchport trunk native vlan 20
switchport trunk allowed vlan 20,30,50
for this Docker VM.
switchport mode trunk
switchport trunk native vlan 10
switchport trunk allowed vlan 10,20,30,40,50,60,100
on the proxmox host, network bridge is created (vmbr0) with VLAN aware and VLAN range 2-4094. If I create a VM/LXC, I usually just use vmbr0 and use the VLAN Tag option. For example if I create Frigate LXC and I want to it to be on the Surveillance VLAN (40), I just use VLAN Tag 40 on the LXC and it will get the VLAN40 subnet correctly.
But currently I need to create Docker VM with VLAN20 as its native VLAN and then this Docker will be able to assign only either VLAN 30,50 to its container. How to achieve this?
note: I don't want to pass the whole VLAN to this Docker VM. Only 20 (native), 30 and 50 (for its container). Basically I want the equivalent of
switchport mode trunk
switchport trunk native vlan 20
switchport trunk allowed vlan 20,30,50
for this Docker VM.