This section describes how to monitor the VLAN operating status.
In routine maintenance, you can run the following command in any view to check the VLAN operating status.
Before you run the display vlan vlan-id statistics command to view VLAN packet statistics and locate faults, run the statistics enable command in the specific VLAN view to enable the device to collect VLAN packet statistics. If VLAN packet statistics collection is disabled, you cannot obtain statistics.
By default, collecting statistics about discarded BUM packets is disabled. Before you run the display vlan statistics vlan-id statistics command to check statistics about discarded BUM packets in a VLAN for fault locating, run the statistic discard enable command in the VLAN view to enable collection on traffic statistics about discarded BUM packets. If you do not run the statistic discard enable command, the statistics cannot be collected.
Before you view packet statistics on a specified interface in a specific VLAN and locate faults, run the statistic enable vlan command in the specific interface view. If the statistics enable vlan command is not executed, statistics cannot be displayed.
By default, once the monitor interface-vlan-statistics command is run on an interface, the system displays traffic statistics five times at an interval of 10s. To stop the statistics display, press Ctrl+C.