Question

How to check list of vlans mapped in switch end from AHV

  • 1 December 2023
  • 2 replies
  • 182 views

Badge

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 ,

[root@esxXXXX:~] esxcli network nic vlan stats set -e true -n vmnic0

[root@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

  

 


This topic has been closed for comments

2 replies

Userlevel 5
Badge +5

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
 

Badge

Thanks let me check