VMware Cloud Community
tdubb123
Expert
Expert

finding out what VM is on which Physical NIC

IN vsphere, is there a way to find out which VM is on which physical nic. I have dual nics active but need to know if the VM is on NIC1 or NIC 2 at any time

can i do this without going to the physical swiotch?

1 Reply
virtualg_uk
Leadership
Leadership

Easiest way is to SSH to the host that the VM is runnng on and run:

esxtop

Then press n

You will see the VMs on the left and the corresponding NIC and vSwitch next to it.

This is the output in one of my labs:

8:43:26pm up 22:01, 508 worlds, 4 VMs, 8 vCPUs; CPU load average: 0.07, 0.07, 0.07

  PORT-ID USED-BY                        TEAM-PNIC DNAME              PKTTX/s  MbTX/s  PSZTX    PKTRX/s  MbRX/s  PSZRX %DRPTX %DRPRX

  33554433 Management                            n/a vSwitch0              0.00    0.00    0.00      0.00    0.00    0.00  0.00  0.00

  33554434 vmnic0                                  - vSwitch0              9.25    0.01  183.00      4.92    0.01  217.00  0.00  0.00

  33554435 Shadow of vmnic0                      n/a vSwitch0              0.00    0.00    0.00      0.00    0.00    0.00  0.00  0.00

  33554436 vmk0                              vmnic0 vSwitch0              5.12    0.01  281.00      4.92    0.01  141.00  0.00  0.00

  33554437 70649:KMS                          vmnic0 vSwitch0              0.00    0.00    0.00      0.20    0.00  234.00  0.00  0.00

  33554438 71135:PSC-01                      vmnic0 vSwitch0              1.58    0.00  304.00      1.97    0.00  201.00  0.00  0.00

  33554441 71518:VCSA-01-peer                vmnic0 vSwitch0              5.91    0.01  166.00      2.17    0.00  103.00  0.00  0.0

  33554448 72936:VCSA-01                      vmnic0 vSwitch0              0.98    0.00  91.00      3.15    0.00  172.00  0.00  0.00

You can see more information here: How to find the physical NIC that a VM is using on VMware vSphere ESXi – VirtualG.UK

I hope this solves your problem


Graham | User Moderator | https://virtualg.uk
0 Kudos