Travel

Categories

Virtual Machine Guest tagging (VGT) (vlan trunk) in vmware server

To run dot1q vlan on the vmware guest under vmware server, you cannot do this with one NIC, you need at least two NICs.
Host OS:

eth0 -> /dev/vmnet0 (for host OS’s management, uplink is vlan trunk)
eth1 -> /dev/vmnet3 (for used by guest OS, uplink is vlan trunk)

eth0.4 -> /dev/vmnet4 (for HOST management vlan)
eth0.5 -> /dev/vmnet5

VM1 Guest OS
eth0 -> (bridge to /dev/vmnet3)
eth0.3 -> 192.168.250.22

VM2 Guest OS
eth0 -> (bridge to /dev/vmnet3)
eth0.82 -> 192.168.82.22

Pls note that we can’t accomplish this task with a single NIC since when vlans are configured on the host OS, eth0 does not forward tagged packets to /dev/vmnet0! All packets are UNtagged.

If you want 802.1q tagged packets in the guest OS don’t config vlans on the NIC which the VM guest will use

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>