Monitoring the VLAN Operating Status

This section describes how to monitor the VLAN operating status.

Context

In routine maintenance, you can run the following command in any view to check the VLAN operating status.

Procedure

  • Run the display vlan vlan-id statistics command to view VLAN packet statistics.

    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.

  • Run the display vlan vlan-id statistics command to check statistics about discarded BUM packets in a specified VLAN.

    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.

  • Run the display statistics interface interface-type interface-number vlan vlan-id command to view statistics about both sent and received packets on a specific interface in a specific VLAN.

    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.

  • Run the monitor interface-vlan-statistics interface interface-type interface-number vlan vlan-id [ interval interval-value | times { times-value | infinity } ] command to monitor traffic statistics on an interface of a specified VLAN.

    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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic