How can I determine physical nic to vmnic

cas_three
cas_three used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
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.

Author

Commented:
Dell Poweredge 2900's.

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

Author

Commented:
And hancocka, you are seriously awesome with VMware, you know EVERYTHING! I'm so greatful and have learned a ton from you alreaady.
11/26 Forrester Webinar: Savings for Enterprise

How can your organization benefit from savings just by replacing your legacy backup solutions with Acronis' #CyberProtection? Join Forrester's Joe Branca and Ryan Davis from Acronis live as they explain how you can too.

Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
esxtop in network mode, will indicate which physical vmnic is carrying which VM traffic.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
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!

Author

Commented:
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?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
if using Cisco, correct

correct, esxtop, then press N.

Author

Commented:
what are the port id's listed in the network view?  Mine are showing numbers 16777217?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
have you got Cisco equipment with CDP?

16777217 ? does not look correct

Author

Commented:
No we don't, so I guess that number means nothing.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
Correct! It's rubbish!
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
should look like this:-

Cisco CDP

Author

Commented:
Actually it must be a cisco switch, hardware plateform esw-540-48.  I'm not at the physical location at the moment.
Paul SolovyovskySenior IT Advisor
Top Expert 2008

Commented:
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.

Author

Commented:
The CDP worked perfectly.  Thank you so much!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial