VMware Networking on ESXi

We discovered that the NIC labeling on the back of the ESXi hosts is mislabeled. See image below. As you can see the port labeled "NIC1" has nothing plugged in: NIC Labeling
This does not match the results found on the ESXi host itself by running: esxcfg-nics -l
~ # esxcfg-nics -l
Name    PCI           Driver      Link Speed     Duplex MAC Address       MTU    Description
vmnic0  0000:03:00.00 bnx2        Up   1000Mbps  Full   00:1e:c9:58:36:60 1500   Broadcom Corporation Broadcom NetXtreme II BCM5708 1000Base-T
vmnic1  0000:07:00.00 bnx2        Up   1000Mbps  Full   00:1e:c9:58:36:62 1500   Broadcom Corporation Broadcom NetXtreme II BCM5708 1000Base-T
vmnic2  0000:08:00.00 e1000e      Up   1000Mbps  Full   00:15:17:db:7e:74 1500   Intel Corporation 82571EB Gigabit Ethernet Controller
vmnic3  0000:08:00.01 e1000e      Up   100Mbps   Full   00:15:17:db:7e:75 1500   Intel Corporation 82571EB Gigabit Ethernet Controller
vmnic4  0000:0a:00.00 e1000e      Up   1000Mbps  Full   00:15:17:80:77:e0 1500   Intel Corporation 82571EB Gigabit Ethernet Controller
vmnic5  0000:0a:00.01 e1000e      Up   1000Mbps  Full   00:15:17:80:77:e1 1500   Intel Corporation 82571EB Gigabit Ethernet Controller
vmnic6  0000:0c:00.00 e1000e      Down 0Mbps     Half   00:15:17:80:96:0e 1500   Intel Corporation 82571EB Gigabit Ethernet Controller
vmnic7  0000:0c:00.01 e1000e      Up   1000Mbps  Full   00:15:17:80:96:0f 1500   Intel Corporation 82571EB Gigabit Ethernet Controller

Open in new window


I tried looking up the MAC Addresses associated with the vmnicX on our HP ProCurve switches, but the switch was not aware of ANY of the mac addresses listed above. That's when I discovered that the Configuration tab's vSwitchs properties shows different MAC addresses. ESXi Network Config
Question:
Is there a way to find out which VMNIC is connected to with physical NIC on the back of the server?
LVL 8
pzozulkaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
it's vmnic6 ?

it's the nic not connected, so

nic1 = vmnic6

output from esxcfg-nics -l

suggests vmnic6 is DOWN, nic1 has no network connection, and is down.

so I would suggest vmnic6

connect it to the network, and see if it comes up!

It's not easy to work out which vmnic is which nic, without looking at the bus locations.

clearly the bnx2 nics are possibly on the motherboard, so

vmnic0 = nic5
vmnic1 = nic6

as for the other nics

vmnic2,3,4,5 you will need to compare MAC Addresses with Physical Switch ports.

(or remove a cable!)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pzozulkaAuthor Commented:
All of them are mislabled in terms of matching the VMNIC number. My goal is to find out ALL of the VMNICs connected to which physical NICs.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
vmnic0 = nic5
vmnic1 = nic6

as for the other nics

vmnic2,3,4,5 you will need to compare MAC Addresses with Physical Switch ports.

(or remove a cable!)
0
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

pzozulkaAuthor Commented:
How do you know vmnic0 = nic5, and same for the other one?
0
pzozulkaAuthor Commented:
I was actually under the assumption that vmnic0 and vmnic1 = nic7 and nic8 respecitvely, since those look like built-in NIC ports on the server.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
sorry, missed the other ports at the very bottom.....


those are likely to be bnx2 - broadcom, because they are soldered on the motherboard, others are intel plug in cards.
0
Seth SimmonsSr. Systems AdministratorCommented:
yes i was actually just looking at that; 7 and 8 would be the integrated broadcom ports
easily noticed it's a 2950
0
Seth SimmonsSr. Systems AdministratorCommented:
nic1/2 in the picture are likely 6 (down) and 7 in the esx list

as hanccocka said, you would either have to find mac addresses or play with cables to determine the other 4
0
pzozulkaAuthor Commented:
Agreed. As for VMNIC2 - 5, the MAC Address listed on esxcfg-nics -l command, are nowhere to be found on the switch ports. In other words, you can't compare the physical MAC Addresses with Physical Switch ports.

For example, see the screenshot below. The below MAC Address 00:50:56:77:e5:be is listed under "Active Adapters" vmnic2, vmnic4. Notice how this MAC address is NOTone of the MAC addresses listed at the top of this post.MAC addresses
I traced this MAC address to a physical switch port on the switch, and traced it to the back of the server connected to the port labeled NIC3.

But how do I know if NIC3 is equal to vmnic2 or vmnic4?

:)
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
There is a way

Use esxtop to check which VM is using which nic

Then lookup that Mac address of the VM compare with physical switch will match
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
you should see that mac address on the physical switch ports of the physical switch?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.