Useful Networking Commands In Vmware ESX CLI

The VI Client is excellent, however when you cannot connect to the ESX host,  its time to go to the CLI.
A few useful commands shown below;
Network Card information: ifconfig
Display the network cards availible in ESX: esxcfg-nics -l
Display the network card linked to service console: esxcfg-vswitch -l
Unlink Vmnic from vswitch esxcfg-vswitch -U vmnic0 vSwitch0  
link a vmnic to vSwitch0 esxcfg-vswitch -L vmnic1 vSwitch0
Change the Vlan ID of the console port in ESX: esxcfg-vswitch vSwitch0 -v 15 -p “Service Console” (where 15 is the Vlan ID)