The statistics enable vlan command enables the packet statistics function on an interface or in a VLAN.
The undo statistics enable vlan command disables the packet statistics function on an interface or in a VLAN.
By default, packet statistics collection is disabled on an interface or in a VLAN.
Usage Scenario
An interface can be added to multiple VLANs. To view packet statistics on a specified interface in a specified VLAN, run the statistic enable command to enable packet statistics collection on the interface and in the VLAN. Otherwise, you cannot view packet statistics on a specified interface in a specified VLAN.
Follow-up Procedure
Run the display statistics vlan command to view VLAN packet statistics on a specified interface. The command output helps you analyze faults.
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/1 [*HUAWEI-GigabitEthernet0/1/1] portswich [*HUAWEI-GigabitEthernet0/1/1] quit [*HUAWEI] vlan 10 [*HUAWEI-vlan10] port GigabitEthernet 0/1/1 [*HUAWEI-vlan10] quit [*HUAWEI] interface GigabitEthernet0/1/1 [*HUAWEI-GigabitEthernet0/1/1] statistics enable vlan 10