Home > ESX > Reorder NICs on ESX 3.5

Reorder NICs on ESX 3.5

When you have an ESX host with different brands of NICs, the order may not always be the same across hosts.

In this example, we want the NIC numbering to be sorted by Brand.  Right now, the Intel NICs (vmnic2 and vmnic3) fall in between the Broadcom NICs.  This makes things complicated.

We are going to swap vmnic2 <-> vmnic6 and vmnic3 <-> vmnic7.

Run the following code to list your NICs.  We’ll need the name and PCI ID.

esxcfg-nics -l


Open the file /etc/vmware/esx.conf with vi.

vi /etc/vmware/esx.conf

Look for a line that starts with /device/PCI_ID/vmkname.  Pay attention because the PCI_ID in esxcfg-nics –l is listed in HEX format, where the esx.conf has it in DEC format.  In our example we need to look for this:


Change the /device/PCI_ID/vmkname = “vmnic6” to the new vmnic name.  So the above will become:


Scroll down until you came across entries that begin with /net/pnic/child[000]…


Change this vmnic2 entry to the new one (vmnic6) in our example and do this for all vmnic’s affected.

Save the file and reboot the host.

Run esxcfg-nics –l to check if the changes were applied successfully.


That’s it!

Categories: ESX
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: