You must have correct VLAN ID configured on Service console.
To configure VLAN ID:
- Run the following command to verify configured VLAN ID on the Physical Switch (Cisco) to extract CDP information:
esxcfg-info | grep -E "vmnic|vSwitch|CDP|cisco|Vlan"
This command returns VLANs presented from the physical switch connecting to VMNIC
- Run the following command on the ESX host to set the VLAN:
esxcfg-vswitch -v 100 vSwitch0
In the above example, the command sets the VLAN ID of 100 on the switch 0.
- Run the following command to verify VLAN information:
esxcfg-vswitch -l
- Verify NIC linked to vSwitch
esxcfg-nics -l
esxcfg-vswitch -l
- Run the following command to unlink from the NIC that has no connection:
esxcfg-vswitch -U vmnic# vSwitch#
- Run the following command to link the NIC to vSwitch:
esxcfg-vswitch -L vmnic# vSwitch#
If you are not able to get any information via the command in step 6, CDP may not have been enabled. For more information, see Configuring the Cisco Discovery Protocol (CDP) with ESX Server (1003885).