Enabling statistics on a VLAN

Follow this procedure to enable statistics on a VLAN.

  1. Enter the global configuration mode.
    device# configure terminal
  2. Enter the vlan command to specify a VLAN for statistics collection.
    device(config)# vlan 5
    device(config-vlan-5)#
  3. Enter the statistics command to enable statistics for all ports and port channels on configured VLANs.
    device(config-vlan-5)# statistics
Note

Note

Use the no statistics command to disable statistics on VLANs.
device(config-vlan-5)# no statistics