VMware vSphere
VMware ESXi
interface GigabitEthernet1/2switchport(Set to layer 2 switching)switchport trunk encapsulation dot1q(ESXi/ESX only supports dot1q, not ISL)switchport trunk allowed vlan 10-100(Allowed VLAN to ESXi/ESX. Ensure ESXi/ESX VLANs are allowed)switchport mode trunk(Set to Trunk Mode)switchport nonegotiate(DTP is not supported)no ip addressno cdp enable(ESXi/ESX 3.5 or higher supports CDP)spanning-tree portfast trunk(Allows the port to start forwarding packets immediately on linkup)
Note: For more information on configuring your physical network switch, contact your switch vendor.
For example:interface Vlan200ip address #.#.#.# 255.255.255.0(This IP can be used as VLAN 200 Gateway IP)
Note: When the VLAN ID is defined on the physical switch, it can be configured for ESX. If the IP range is assigned to a VLAN, decide if any routing may be required to reach other nodes on the network.
esxcfg-vswitch -p "portgroup_name" -v VLAN_ID virtual_switch_name