The statistic enable command enables IPv4 or IPv6 packet statistics collection on an interface.
The undo statistic enable command disables IPv4 or IPv6 packet statistics collection on an interface.
By default, IPv4 or IPv6 packet statistics collection is disabled on an 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 this command.
{ ipv4 | ipv6 } * statistic enable { both | inbound | outbound }
undo { ipv4 | ipv6 } * statistic enable { both | inbound | outbound }
Parameter |
Description |
Value |
---|---|---|
ipv4 |
Indicates IPv4 packet statistics collection. |
- |
ipv6 |
Indicates IPv6 packet statistics collection. |
- |
both |
Indicates statistics collection for incoming and outgoing packets. |
- |
inbound |
Indicates statistics collection for incoming packets. |
- |
outbound |
Indicates statistics collection for outgoing packets. |
- |
VLANIF interface view, Eth-Trunk interface view, GE interface view, XGE interface view, 25GE interface view, MultiGE interface view, 40GE interface view, 100GE interface view
Usage Scenario
To check the network status or locate network faults, you can enable IPv4 or IPv6 packet statistics collection on an interface to collect IPv4 or IPv6 packet statistics on the interface.
Precautions
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 policy will fail to be applied.