Every once in a while when building a new ESX (not ESXi, mind you) server you don’t really know which of your multiple connections is bound to the switch that will work for your service console if you are lucky (?) enough to have your networking interfaces all separated out.
Well, here is just the bit of code to run at the command line to try several different vmnic uplinks in quick succession:
esxcfg-vswitch -U vmnicX vSwitch0
esxcfg-vswitch -L vmnicY vSwitch0
Iterate through your vmnics until you can ping out and voila, all better!
–Nat