< Home

reset vlan statistics

Function

The reset vlan statistics command clears the statistics of VLAN packets received or sent on a VLAN or a sub-interface.

Format

reset vlan statistics { [ vid ] vlan-id | interface interface-type interface-number [ .subinterface-number ] }

Parameters

Parameter Description Value
vlan-id Specifies the VLAN ID. The value is an integer ranging from 1 to 4094.
interface-type Specifies the interface type. The interface can be an Ethernet interface, a GE interface, a VE interface, or an Eth-Trunk interface.
interface-number Specifies the interface number. -
.subinterface-number Specifies the interface number. For the GE interface, the value ranges from 1 to 4096. For the FE interface, the value ranges from 1 to 1023.

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Sometimes, traffic statistics within a certain period is required. In this situation, clear the existing statistics before restarting the count.

Example

# Clear the statistics of VLAN packets received by and sent from the sub-interface GE 1/0/1.1.

<sysname> reset vlan statistics interface GigabitEthernet 0/0/1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >