< Home

statistic enable (interface view)

Function

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.

Format

{ ipv4 | ipv6 } * statistic enable { both | inbound | outbound }

undo { ipv4 | ipv6 } * statistic enable { both | inbound | outbound }

Parameters

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.

-

Views

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

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Enable IPv4 packet statistics collection in the inbound direction of GigabitEthernet0/0/1.

<HUAWEI> system-view
[HUAWEI] interface GigabitEthernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] ipv4 statistic enable inbound
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >