< Home

vlan statistics

Function

The vlan statistics command configures the way to collect VLAN traffic statistics.

The undo vlan statistics command restores the default way to collect VLAN traffic statistics.

By default, VLAN traffic statistics are collected by packets.

Format

vlan statistics { by-bytes | by-packets }

undo vlan statistics { by-bytes | by-packets }

Only the S2720-EI, S5720I-SI, S5720-LI, S5720S-LI, S5720S-SI, S5720-SI, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720S-SI, and S6720-SI support this command.

Parameters

Parameter

Description

Value

by-bytes

Collects VLAN traffic statistics by bytes.

-

by-packets

Collects VLAN traffic statistics by packets.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To check the network status or locate network faults, you can use the statistic enable (VLAN view) command to enable traffic statistics collection in VLANs.

After traffic statistics collection is enabled in a VLAN, the switch collects statistics on unicast packets, broadcast packets, and broadcast packets transmitted in the VLAN.

The vlan statistics { by-bytes | by-packets } command configures whether traffic statistics are collected by packet s or bytes.

Example

# Configure the system to collect VLAN traffic statistics by bytes.

<HUAWEI> system-view
[HUAWEI] vlan statistics by-bytes
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >