How to check list of vlans mapped in switch end from AHV
we use below command in esxi to know the vlan tagged in switch end .as you know the vlan added in vmware end is just a label until its created in switch end ,
droot@esxXXXX:~] esxcli network nic vlan stats set -e true -n vmnic0
droot@esxXXXX:~] esxcli network nic vlan stats get -n vmnic0
VLAN 0
Packets received: 7144
Packets sent: 6820VLAN 1
Packets received: 5
Packets sent: 0VLAN 2
Packets received: 7
Packets sent: 0VLAN 449
Packets received: 5
Packets sent: 0VLAN 500
Packets received: 5
Packets sent: 0VLAN 800
Packets received: 5
Packets sent: 0VLAN 1133
Packets received: 12
Packets sent: 0