VMware: Pass VLAN directly to the virtual machine

When you have a VM that requires VLAN directly passed to it, it could be a virtual firewall or any Vm, VMWARE does not allow anything else that an untagged port to the VM.

This can be changed, by editing the vSwitch’s portgroup of the host, and change this:

vmware vlan1

vmware vlan2

You can see that the “VLAN ID (Optional):”, has been set to “All (4095)”, which means that all posible VLAN ID’s will be passed directly to the VM.

The VM has to meet the following requirements:

  • 802.1Q VLAN trunking driver has to be loaded inside the virtual machine.

Source: VMware KB: Sample configuration of virtual machine VLAN Tagging (VGT Mode)

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.