ESXi nic ordering

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

Rand__

Well-Known Member
Mar 6, 2014
6,634
1,767
113
So had to rebuild one of my boxes due to some weird HA issues and now I got this horribly annoying problem with NIC ordering again...

Thats what I get from ESX:
Code:
 esxcfg-nics -l
Name    PCI          Driver      Link Speed      Duplex MAC Address       MTU    Description
vmnic0  0000:04:00.1 igbn        Up   1000Mbps   Full   0c:c4:7a:34:1b:5b 1500   Intel Corporation I350 Gigabit Network Connection
vmnic1  0000:02:00.0 nmlx5_core  Up   40000Mbps  Full   24:8a:07:a0:a9:c8 1500   Mellanox Technologies MT27700 Family [ConnectX-4]
vmnic2  0000:04:00.0 igbn        Up   1000Mbps   Full   0c:c4:7a:34:1b:5a 1500   Intel Corporation I350 Gigabit Network Connection
vmnic3  0000:02:00.1 nmlx5_core  Up   40000Mbps  Full   24:8a:07:a0:a9:c9 1500   Mellanox Technologies MT27700 Family [ConnectX-4]
O/c it should be
vmnic2 -> 0
vmnic0 -> 1
vmnic1 -> 2
vmnic3 -> 3

Found some old threads (like Change vmnic order on ESXi) suggesting to change in /etc/vmware/esx.conf but thats not working.

Any other ideas?
 

Dawg10

Associate
Dec 24, 2016
220
114
43
Don't know if this will help; I remember reading something about the NIC selected for management during installation is enumerated as vmnic0.
 

Rand__

Well-Known Member
Mar 6, 2014
6,634
1,767
113
That's similar to the first link I shared and didn't work for me ... I didnt follow the decativate & rediscover approach, only the esxcfg one though.
 

Rand__

Well-Known Member
Mar 6, 2014
6,634
1,767
113
Thats similar to the Cisco one I linked - also no go.
Reinstall with wipe of datastore has helped...

Now to get those stupid host profiles to do what I want.
Thanks for the help:)
 

cw823

Active Member
Jan 14, 2014
414
189
43
Here's what Cisco TAC had me do when our vmnics went sideways during a cluster node addition (Hyperflex). We had two vmnics that should have been the last two but ended up in the middle

vi /etc/vmware/esx.conf
:%s/vmnic4/vmnicTEMP/g
:%s/vmnic6/vmnic4/g
:%s/vmnic8/vmnic6/g
:%s/vmnic5/vmnic8/g
:%s/vmnic7/vmnic5/g
:%s/vmnic9/vmnic7/g
:%s/vmnicTEMP/vmnic9/g
:wq

Reboot
 
  • Like
Reactions: Rand__

Rand__

Well-Known Member
Mar 6, 2014
6,634
1,767
113
Thanks, never had the issue again, but good to know you can simply rename in esx.conf

Edit: although I seemed to have tested that when I reread my old post...
But maybe I didnt find all places...