How can I enable the traffic statistics function in a VLAN on CE switches

Run the statistics enable command in the VLAN or VLAN-Range view to enable the traffic statistics function in a VLAN. By default, the traffic statistics function in a VLAN is disabled.
# Enable the traffic statistics function in VLAN 10.
system-view
[~HUAWEI] vlan 10
[*HUAWEI-vlan10] statistics enable
[*HUAWEI-vlan10] commit
# Enable the traffic statistics function in VLANs 10 to 20.
system-view
[~HUAWEI] vlan range 10 to 20
[*HUAWEI-vlan-range] statistics enable
[*HUAWEI-vlan-range] commit

Scroll to top