subinterface traffic-statistics enable

Function

The subinterface traffic-statistics enable command enables the traffic statistics function on sub-interfaces.

The undo subinterface traffic-statistics enable command disables the traffic statistics function on sub-interfaces.

By default, the traffic statistics function is disabled on a sub-interface.

Format

subinterface traffic-statistics enable

undo subinterface traffic-statistics enable

Parameters

None

Views

Layer 2 100GE interface view, 100GE interface view, Layer 2 10GE interface view, 10GE interface view, 25GE-L2 view, 25GE interface view, 400GE-L2 view, 400GE interface view, Layer 2 40GE interface view, 40GE interface view, Layer 2 50GE interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, Layer 2 GE interface view, GE optical interface view, GE interface view, GE electrical interface view, Global VE interface view, PW-VE interface view, VE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
interface-mgr write

Usage Guidelines

Usage Scenario

By default, the traffic statistics collection function is disabled on Ethernet sub-interfaces. Before checking statistics about sent or received packets on an Ethernet sub-interface, run the statistic enable command in the Ethernet sub-interface view to enable the traffic statistics collection function.

Prerequisites

An Ethernet interface has been specified and sub-interfaces have been configured for the Ethernet interface.

Configuration Impact

If the subinterface traffic-statistics enable command is run in the system view, the traffic statistics collection function is enabled on all sub-interface of the device.

Follow-up Procedure

After the rate statistics collection function is enabled on all the sub-interfaces of an Ethernet interface on a device, the device periodically refreshes rate statistics on the sub-interfaces. The display interface command can be used to view rate statistics.

Precautions

Enabling the traffic statistics collection function may consume a lot of system resources. Exercise caution when using the subinterface traffic-statistics enable command.

Using the undo subinterface traffic-statistics enable command in the interface view disables traffic statistics collection of only the sub-interfaces on the interface.

This command does not take effect on EVC sub-interfaces.

Example

# On all sub-interfaces of GE 0/1/1, enable the traffic statistics function.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet0/1/1.1
[*HUAWEI-GigabitEthernet0/1/1.1] quit
[*HUAWEI] interface GigabitEthernet0/1/1
[*HUAWEI-GigabitEthernet0/1/1] subinterface traffic-statistics enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >