Skip to main content
Question

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

  • December 1, 2023
  • 2 replies
  • 578 views

Forum|alt.badge.img

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 replies.

2 replies

ktelep
Nutanix Employee
Forum|alt.badge.img+5
  • Nutanix Employee
  • December 1, 2023

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
 


Forum|alt.badge.img
  • Author
  • Adventurer
  • January 1, 2024

Thanks let me check