Skip to main content

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

  

 

It looks like you’re just pulling the packet statistics on a per VLAN basis and just determining if they’re passing traffic.


You could do something similar from AHV, but look for learned mac addresses in the VLAN you are specifically looking to see if it’s in use.

From AHV:  ovs-appctl fdb/show br0-up
 


Thanks let me check