This article shows three ways to find which VMNIC a VM uses on ESXi.
VMware vSphere ESXi 7.0.x
VMware vSphere ESXi 8.0.x
esxtop
" press enter, and press "n
", Under the TEAM-PNIC column, find the vmnic used by the target VMnet-stats -l
" to get the network adapter ID(PortNum) and vSwitch name which VM is located of target VM.vsish -e cat /net/portsets/<vSwitch_name>/ports/<switchport_number>/teamUplink
"esxcli network vm list
" to find World ID of target VM.esxcli network vm port list -w <World ID>
"