Posts

Showing posts from June, 2023

Mapping VM vnic to ESXi vmnics

Image
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. Next, run command "esxtop". The default view of esxtop shows cpu and process metrics. For our use case, we want to see network statistics. Push the "n" key, then locate the two Port IDs noted previously. 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 c