< Home

Collecting Traffic Statistics on an Interface

Context

To check the network status or locate network faults, you can enable IPv4 or IPv6 packet statistics collection on an interface and view packet statistics on the interface, monitoring traffic on the interface.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run { ipv4 | ipv6 } * statistic enable { both | inbound | outbound }

    IPv4 or IPv6 packet statistics collection is enabled on the interface.

    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 IPv4 or IPv6 packet statistics collection on interfaces.

    This command and the statistic enable { both | inbound | outbound } command used in the VLANIF interface view are mutually exclusive.

    If this command and the traffic policy command are configured together on the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S, traffic statistics will fail to be collected.

Verifying the Configuration

Run the display counters [ interface interface-type interface-number ] protocol [ rate ] command in any view to check IPv4 and IPv6 packet statistics on an interface.

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