Mapping VM vnic to ESXi vmnics
Esxtop is the standard way to determine what vmnic is supporting a virtual machines vnic on an ESXi hypervisor. This involves pulling up a command line interface on an ESXi server, running command esxtop, pushing the "n" key and reading the list of VMs to identify which switchport is mapped to which physical nic. I will show the screenshots to demonstrate it, however there is an alternative method. First, lets see the method I've described above.
In this blog, were working with an ESXi server named esx-01a.corp.local.
We SSH to the server and run command "net-stats -l". Make note of the Port ID.
Alternatively, you can use the following CLI commands to find the VMs world ID (something like a process ID) and map that to a vmnic.
First we use command "esxcli vm process list" to find the VMs world ID.
Then we feed the world ID into the command "esxcli network vm port list -w [World ID]". Notice that the output of this command also lists the Port ID of the VM and mac address of the VM in the event the VM has multiple vnics. This will allow you to differentiate the two vnics.
Comments
Post a Comment