To troubleshoot network connectivity with Virtual Switch Tagging (VST) mode, check the VLAN configuration on ESX/ESXi.
To check the VLAN configuration on ESX/ESXi:
- Verify the Virtual Switch (vSwitch) VLAN ID. For more information, see Configuring a VLAN on a portgroup.
-
For Virtual Switch Tagging (VST), ensure that VMNICs uplink to switch port is set to TRUNK MODE.
For External Switch Tagging (EST) ensure that VMNICs uplink to switch port is set to ACCESS MODE.
Note: VMware recommends utilizing VLAN technology to establish dedicated subnets for ESX/ESXi management, VMotion, and iSCSI network traffic.
Only allowing through VLAN traffic on physical switch ports connecting to ESX reduces TCP/IP overhead. Native VLANs do not tag the out going VLAN packets toward ESX NICs and if the same VLAN ID is used to configure the vSwitch port group, the vSwitch drops any packet that is not tagged for it, causing the connection to fail. Unnecessary VLAN traffic on a TRUNK port that connects to ESX can cause major performance issues.
Note: Do not use the Native VLAN ID of a physical switch as a VLAN on ESX/ESXi portgroups.
Cisco Switch command line:
- interface GigabitEthernet1/1
- description VMware ESX - Trunk A - NIC 0 – Port Description
- switchport trunk encapsulation dot1q – ESX only supports dot1q and not ISL
- switchport trunk allowed vlan 100,200 – Allowed VLANs
- switchport mode trunk – Enables Trunk
- switchport nonegotiate – ESX/ESXi does not support DTP dynamic trunking protocol. When configuring trunk port, set it to nonegotiate.
- spanning-tree portfast trunk – Enables PortFast on the interface when it is in trunk mode.
Sample of ESX vSwitch configuration for VST mode:
- esxcfg-vswitch [options] [vswitch[:ports]]
- esxcfg-vswitch -v [VLANID] -p [port group name] [vswitch[:ports]]
- esxcfg-vswitch -v 200 -p "Virtual Machine Network 2" vSwitch1