When performing packet captures on HCX Network Extension (NE) deployments, determining which VLAN is associated with a specific switchport is critical. Network administrators need to correlate switchports seen in vSphere with specific extended VLANs to properly target their packet captures. This correlation is essential for:
This article describes how to identify which VLANs correspond to which switchports by correlating MAC addresses between switchport information and network adapter settings in the HCX Network Extension appliance.
The challenge in performing targeted packet captures with HCX Network Extension stems from:
Follow these steps to identify which VLANs are associated with specific switchports by correlating MAC addresses:
esxcli network vm list
World ID Name Num Ports Networks
-------- ------------------------ --------- -----------------
8734### vm-prod-app-
###
7 , , , , , , dvportgroup-3482###
9217
###
vm-dev-web###
3 , , dvportgroup-3187###
5392
###
vm-ne-###
7 , , , , , , dvportgroup-3482###
###
in this example)esxcli network vm port list -w <world-id>
Port ID: 78453896
vSwitch: datacenter-vds01-
###
Portgroup:
DVPort ID: 71aed22d-8934-4128-b530-65239f723
###
MAC Address: 00:50:56:00:74:22
IP Address: 0.0.0.0
Team Uplink: vmnic0
Uplink Port ID: 3587421
###
Active Filters:
Port ID: 78453
###
vSwitch: datacenter-vds01-
###
Portgroup:
DVPort ID: 85b319fd-ca73-4277-8415-12f16e7c0
###
MAC Address: 00:50:56:00:74:23
IP Address: 0.0.0.0
Document each Port ID and its corresponding MAC address
Port ID | MAC Address | Network Adapter | VLAN |
---|---|---|---|
78453896 | 00:50:56:00:74:22 | Network adapter 7 | 222 |
NOTE: The Port ID, VLAN and MAC are purely demonstrative in this article and not real and should never be used in real environments based off this article