Avatar of Carrie Miles
Carrie Miles
 asked on

How can I determine physical nic to vmnic

I'm running esxi 4.0 and 4.1.

Is there any easy way to determine which physical nic is mapped to which vmnic?

I read about CDP, but we are not using Cisco equipment.

Thank you
VMwareVirtualization

Avatar of undefined
Last Comment
Carrie Miles

8/22/2022 - Mon
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

it's not easy, other than disconnect the network cable!

it's not very scientific, usually vmnic0 and vmnic1 are assigned to motherboard ports 1 and 2.

what server do you have, and what nics?

sometimes you can use lspci at the command line, and check the PCI locations, if you happen to know what PCI slots are network interfaces are assigned to.
Carrie Miles

ASKER
Dell Poweredge 2900's.

I tried ESXTOP, but nothing there either. Darn it!
Carrie Miles

ASKER
And hancocka, you are seriously awesome with VMware, you know EVERYTHING! I'm so greatful and have learned a ton from you alreaady.
Your help has saved me hundreds of hours of internet surfing.
fblack61
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

esxtop in network mode, will indicate which physical vmnic is carrying which VM traffic.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

it's a little bit naff, you could use ping, and send large packets, and see which nic is communicating alot.

how about this:-

1. check the mac address of the vmnic, and check the mac address arp table on the switch

on Cisco and HP switches, you can check which mac address is using with port!
Carrie Miles

ASKER
what about the cdp on the vmnic?  It's showing port id g12. I'm assuming that means the switch port

how do you do esxtop in network mode?

esxtop then press N?
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

if using Cisco, correct

correct, esxtop, then press N.
Carrie Miles

ASKER
what are the port id's listed in the network view?  Mine are showing numbers 16777217?
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

have you got Cisco equipment with CDP?

16777217 ? does not look correct
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Carrie Miles

ASKER
No we don't, so I guess that number means nothing.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Correct! It's rubbish!
ASKER CERTIFIED SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Carrie Miles

ASKER
Actually it must be a cisco switch, hardware plateform esw-540-48.  I'm not at the physical location at the moment.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Paul Solovyovsky

ESX 5.0 now includes the non Cisco compatible for CDP.  Haven't played with it yet but may be worth a shot if you're going to upgrade.
Carrie Miles

ASKER
The CDP worked perfectly.  Thank you so much!