Trouble pinging multiple NIC ESX host after install
A common issue after installing ESX servers that do not have all their NICs cabled is that you can not ping the host. For example, say you have an ESX host with 6 1GB network cards – 2 on board and 4 PCI. You would think that cabling the 2 on board cards would cover network connectivity. Unfortunately the order that ESX recognizes the NICs is not determined in a logical, expected order such as on board and then PCI cards. In fact, if you know how ESX determines how to order the network cards please comment and let us all know! In the meantime, here is how to use a few esxcfg- Console commands to make sure the cabled NICs are linked to the vSwitch that has the Service Console PortGroup (where the ip address is assigned).
Determine which NICs are enabled in ESX
#esxcfg-nics -l
displays all NICs and their status
You can see from the screen shot (click to see larger version) that ESX sees one of the PCI e1000 cards as vmnic0 (the first card). The 2 on board Braodcom cards are vmnic1 and vmnic 2, and the first PCI card is vmnic3.
You can also easily tell which vmics are hot.
Determine which vSwitch the Service Console is on and what NICs are liinked
#esxcfg-vswitch -l
In this screenshot I have already added vmnic1, but most likely after a fresh install all you will see is vmnic0 in the Uplinks column for the VM Network and Service Console PortGroups of vSwitch0.
To fix network connectivity you need to have the hot vmnics linked to the vSwitch.
Link enabled NICs to Service Console vSwitch
#esxcfg-vswitch -L vmnic2 vSwitch0
After linking a new vmnic repeat the #esxcfg-vswitch -l command to confirm the new vmnic is linked.
The esxcfg- commands are case sensitive. Repeat the command for each vmnic you want linked to the vSwitch.
Unlink disabled NICs from Service Console vSwitch
#esxcfg-vswitch -U vmnic0 vSwitch0
Once again, #esxcfg-vswitch -l confirms the command worked.
Unlink all vmnics that are not cabled.
Pinging the ESX host should now work! You should not have to restart networking, but if for some reason you need to use
#service network restart
Related Posts
-
Lucas.
-
rbrambley













