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
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view is displayed.
- Run { ipv4 | ipv6 } * statistic enable { both | inbound | outbound }
IPv4 or IPv6 packet statistics collection is enabled on the interface.
Only the 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 X series card, traffic statistics will fail to be collected.