Set the physical port connection between ESX and physical switch to TRUNK mode. ESX only supports IEEE 802.1Q (dot1q) trunking.
VLAN configuration is required on ESX side. Define ESX VLANs on the physical switch. Set ESX dvPortgroup to belong to a certain VLAN ID.
Caution: Native VLAN ID on ESX VST Mode is not supported. Do not assign a VLAN to a portgroup that is the same as the native VLAN ID of the physical switch.
Native VLAN packets are not tagged with VLAN ID on the out going traffic toward ESX host. Therefore, if ESX is set VST mode, it drops the packets that are lacking a VLAN tag.
To configure VST on dvPortGroup:
-
In vCenter, go to Home > Inventory > Networking.
-
Right-click dvPortGroup and click Edit Settings.
-
Under dvPortGroup > Settings > VLAN > Policies, set the VLAN type to VLAN.
-
Select a VLAN ID between 1- 4094
Note: Do not use VLAN ID 4095.
-
Click OK.
Note: Distributed Switch portgroups can only be configured from the vSphere Client or vSphere Web Client. It is not possible to configure vDS portgroup VLANs from the ESX/ESXi command line interface.