VMware – Linux VLAN tagging with Cisco Trunk Port
I wanted to quickly document how you’re able to allow your Linux VMs to use VLAN tagging when using VMware ESXi. I originally ran into this problem when I was converting an avahi physical machine into a VM. After I had migrating the machine over, it was unable to bring up the VLAN interfaces. It ended up being really easy to fix, but it was a matter of knowing where to look. It is as simple as setting “VLAN ID (Optional)” to “ALL (4096)”
- Click the ESXi/ESX host.
- Click the Configuration tab.
- Click the Networking link.
- Click Properties.
- Click the virtual switch / portgroups (often named VM Network) in the Ports tab and click Edit.
- Click the General tab.
- Select “All (4096)” in “VLAN ID (optional)”.