Whenever you add or remove storage and network PCI cards on an ESX/ESXi host, the existing NICs may get renumbered. For example, vmnic0 may become vmnic10. As a result, the service console or virtual machines may lose network connectivity. It is important to save a snapshot of the current network profile prior to the PCI card addition or removal:
-
Save a copy of the hardware profile file in the service console:
#cp -p /etc/vmware/esx.conf /etc/vmware/esx.conf.orig
-
Save the output of the virtual switch configuration:
#esxcfg-vswitch -l
In the event of vmnic renaming after the PCI card installation or removal.
To recover network connectivity for the ESX/ESXi host:
-
Compare the difference between the saved hardware profile with the new one:
#diff /etc/vmware/esxconf.orig /etc/vmware/esx.conf
-
Based on the listed differences for the vmnics, re-establish the virtual switch to vmnic mapping in the VMware Infrastructure Client.