ncarde
Enthusiast
Enthusiast

How do I correlate a VM to vmnic (current usage)?

Jump to solution

Dumb Question:

How do I see what vmnic a Virtual Machine is currently using?

The Virtual Machine switch is configured as follows:

Name: vSwitch1

Two physical NICs active (vmnic1,vmnic2)

Load balancing is 'Route based on the originating virtual port ID'

My understanding is that in this configuration each VM alternates usage between vmnic1 and vmnic2 (I can validate this via esxtop (network stats) where I see traffic on both vmnics; however, I am trying to figure out exactly which vmnic a given VM is using...)

-Thank you

0 Kudos
1 Solution

Accepted Solutions
TomHowarth
Leadership
Leadership

you will not be able to do this with any of the built in VMware tools, the question you are effectively asking is what port on a switch trunk am I using. your VMguests are not connected directly to the vmnics in ESX due to the intermediate vSwitch. this is unlike the hosted products that are bridged or natted via the host network points.

the above give a general outline of what is happening

Tom Howarth

VMware Communities User Moderator

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410

View solution in original post

0 Kudos
3 Replies
mike_laspina
Champion
Champion

Hello,

Not a dumb question!

I would use the physical switch interface info. You need to now the VM's MAC address and then you can look up what port its on which is where one one the vmnic's will be.

show mac-address-table {interface interface interface-number} for a cisco

http://blog.laspina.ca/ vExpert 2009
TomHowarth
Leadership
Leadership

you will not be able to do this with any of the built in VMware tools, the question you are effectively asking is what port on a switch trunk am I using. your VMguests are not connected directly to the vmnics in ESX due to the intermediate vSwitch. this is unlike the hosted products that are bridged or natted via the host network points.

the above give a general outline of what is happening

Tom Howarth

VMware Communities User Moderator

Tom Howarth VCP / VCAP / vExpert
VMware Communities User Moderator
Blog: http://www.planetvm.net
Contributing author on VMware vSphere and Virtual Infrastructure Security: Securing ESX and the Virtual Environment
Contributing author on VCP VMware Certified Professional on VSphere 4 Study Guide: Exam VCP-410

View solution in original post

0 Kudos
depping
Leadership
Leadership

I've been looking for this for a while now... still not figured it out.

Duncan

My virtualisation blog:

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos