< Home

Collecting VLAN Traffic Statistics

Context

You can enable traffic statistics collection on a VLAN or on a VLANIF interface to monitor VLAN traffic.

Procedure

  • Check VLAN traffic statistics.
    1. (Optional) Run the vlan statistics interval command in the system view to set the VLAN traffic statistics collection interval.
    2. (Optional) Run the vlan statistics { by-packets | by-bytes } command in the system view to set the VLAN traffic statistics collection mode. You can configure the switch to collect VLAN traffic statistics based on packets or bytes.

      Only the S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, S5720-SI, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI support this configuration.

    3. Run the statistic enable command in the VLAN view to enable VLAN traffic statistics collection.
    4. Run the display vlan vlan-id statistics command in any view to check traffic statistics about a specified VLAN.
  • Check traffic statistics about a VLANIF interface.
    1. Run the statistic enable command in the VLANIF interface view to enable traffic statistics collection.

      Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this configuration.

    2. Run the display interface vlanif [ vlan-id ] command in any view to check traffic statistics about a VLANIF interface.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >