VM VLAN Tagging

micush

Renowned Member
Jul 18, 2015
77
4
73
I would like to set up a .1q trunk to a VM, so that the VM does the VLAN tagging, not the host server.

Is it possible?
 
We use separate bridges on host-level for this and it works.
In Proxmox you can then configure the VM to use the specified bridge (i.e. vmbr0 for your normal traffic und vmbr1 for the trunk configured).
 
Hi,

Thanks for the response.

However, I am wanting the VM to tag multiple VLANs from one NIC.

Is it possible without assigning 10 NICs to a VM, each assigned to a different host bridge in a different network?

Regards

m
 
After testing, I answered my own inquiry.

It is possible to do this. Use a bridged network device on the VM with no VLAN tag.

Then inside the VM, linux in my case, create a network configuration with multiple VLAN tags on a single network interface.

As long as the tag is allowed on the trunk of the host interface, the vm tag will pass through directly to the host and then network unchanged.

This way multiple virtual NICs are not needed on the VM. Only one NIC is needed with configuration for multiple VLAN tags.
 
  • Like
Reactions: linkstat