VM VLAN Tagging

micush

Renowned Member
Jul 18, 2015
73
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

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!