Solved

vSphere NIC numbering

Posted on 2010-08-20
3
1,107 Views
Last Modified: 2012-06-21
When adding NICs to a ESX/ESXi host, NICs are assigned numbers that, in past vesrions, were only able to be changed by physically removing NICs and replacing them in the order that you want them numbered.  Is there a way to change the number that a NIC is assigned without physically removing and replacing the NICs (in vSphere 4)?
0
Comment
Question by:ENTPF
3 Comments
 
LVL 28

Accepted Solution

by:
bgoering earned 250 total points
ID: 33489434
It pretty much assigns them in whatever order it finds them - you can see this article (http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1002315) for a rundown on the process. Now if you are really dead set on changing them it can be done. You would have to:

1. go into the console (tech support mode on ESXi)
2. cd /etc/vmware
3. backup your esx.conf - eg. cp esx.conf esx.conf.bak
4. edit esx.conf and look for your vmnic entries.. will look something like
     /device/000:001:00.0/vmkname = "vmnic0"
     /device/000:001:00.1/vmkname = "vmnic1"
     /device/000:002:00.0/vmkname = "vmnic2"
     /device/000:002:00.1/vmkname = "vmnic3"
5, Order as desired by editing the string vmnicX
5. Save the edited file and reboot

You may have to readjust your nic bindings in networking when done

Good Luck
0
 
LVL 4

Expert Comment

by:Valutus
ID: 33489436
No, they are assigned based on the PCI bus number and slot location, in exactly the same way it occurred in previous versions
0
 
LVL 22

Assisted Solution

by:Luciano Patrão
Luciano Patrão earned 250 total points
ID: 33493369
Hi

VMware had an issue with the nics port numbering. If you have on board nics, and some PCIe nics, the numbering is not correct. With HP server and Broadband and Intel adapter it happens.

So you need to fix the numbering by changing the esx.conf like bgoering posted. But also need to change in the end of that file, the numbering on vmnics macaddress

You can check you numbering nics by running this

esxcfg-nics -l | awk '{print $1,$2,$3,$4,$5}' | sort $1

If you check that the numbering for nics/ports is not correct, then fix

Check if nics/ports are correct numbering. We always have an issue with the second onboard nic/port is never the vmnic1 and with the vmnic5 is also different

For many implementation, the numbering is not an issue, but for a correct design(using nic port to a specific Switch port) and validate the cabling the right numbering is important.

Examle: We use vmnic0 and vmnic5 for service console, or vmnic1 and vmnic3 for vmkernel, if the numbering is not correct, you can use the same nic/port for High Availability, if you have a nic problem, both nics/ports can be the some physical port, and you have no vmkernel, or Service Console

This is just an example what can happen if you have your infrastructure very well documented, and the correct design for High Availability on all connections.

Hope this can help

Jail
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now