The statistic enable command enables the function to collect QinQ packet statistics based on VLAN groups.
The undo statistic enable command disables the function to collect QinQ packet statistics based on VLAN groups.
By default, the function to collect QinQ packet statistics based on VLAN groups is disabled.
Usage Scenario
By default, the function of collecting QinQ packet statistics is disabled. The statistic enable command must be used in the VLAN group view to enable the function to collect QinQ packet statistics based on VLAN groups before the display qinq statistics command is used to view the number of sent and received QinQ packets. Based on the statistics, you can locate problems or deploy QoS policies. If the function to collect QinQ packet statistics is disabled, QinQ packet statistics on the sub-interface cannot be displayed.
Prerequisites
A VLAN group has been created using the vlan-group command in the sub-interface view.
Perform any of the following configuration steps:Configuration Impact
After the statistic enable command is used to enable the function to collect QinQ packet statistics based on VLAN groups, all QinQ packet sent and received by the VLAN group will be counted. If a large number of QinQ packets pass through a specific VLAN group, the device stores a lot of statistics, which affects system performance.
If there is no need to collect QinQ packet statistics, disabling the function to collect QinQ packet statistics based on VLAN groups is recommended.Follow-up Procedure
Run the display qinq statistics command to view the number of sent and received QinQ packets. Based on the statistics, you can deploy QoS policies or locate problems.
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet0/1/1.1 [*HUAWEI-GigabitEthernet0/1/1.1] encapsulation qinq-termination [*HUAWEI-GigabitEthernet0/1/1.1] vlan-group 1 [*HUAWEI-GigabitEthernet0/1/1.1-vlangroup1] quit [*HUAWEI-GigabitEthernet0/1/1.1] qinq termination pe-vid 1000 ce-vid 100 to 200 vlan-group 1 [*HUAWEI-GigabitEthernet0/1/1.1] vlan-group 1 [*HUAWEI-GigabitEthernet0/1/1.1-vlangroup1] statistic enable