Enabling packet statistics for a VLAN
When you need to examine or troubleshoot the network, you can enable packet statistics for a VLAN
to monitor the total number of packets in the VLAN. The VLAN packet statistics include statistics on
unicast, multicast, and broadcast packets.
Disable packet statistics for a VLAN to save system resources when you do not need this feature.
To enable packet statistics for a VLAN:
Step
1.
Enter system view.
2.
Enter VLAN view.
3.
Enable packet statistics for a
VLAN.
Displaying and maintaining VLANs
Execute display commands in any view and reset commands in user view.
Task
Display VLAN interface information.
Display information about IP
subnet-based VLANs that are associated
with the specified ports.
Display information about IP
subnet-based VLANs.
Display information about protocol-based
VLANs that are associated with the
specified ports.
Display information about protocol-based
VLANs.
Display VLAN information.
Display brief VLAN information.
Display VLAN group information.
Display hybrid ports or trunk ports on the
device.
Display packet statistics for a VLAN (in
standalone mode).
Display packet statistics for a VLAN (in
IRF mode).
Clear statistics on a port.
Clear packet statistics for a VLAN (in
standalone mode).
Clear packet statistics for a VLAN (in IRF
Command
system-view
vlan vlan-id
statistics enable
Command
display interface [ vlan-interface [ interface-number ] ] [ brief
[ description | down ] ]
display ip-subnet-vlan interface { interface-type
interface-number1 [ to interface-type interface-number2 ] | all }
display ip-subnet-vlan vlan { vlan-id1 [ to vlan-id2 ] | all }
display protocol-vlan interface { interface-type
interface-number1 [ to interface-type interface-number2 ] | all }
display protocol-vlan vlan { vlan-id1 [ to vlan-id2 ] | all }
display vlan [ vlan-id1 [ to vlan-id2 ] | all | dynamic | reserved
| static ]
display vlan brief
display vlan-group [ group-name ]
display port { hybrid | trunk }
display vlan vlan-id statistics [ slot slot-number ]
display vlan vlan-id statistics [ chassis chassis-number slot
slot-number ]
reset counters interface [ vlan-interface [ interface-number ] ]
reset vlan vlan-id statistics [ slot slot-number ]
reset vlan vlan-id statistics [ chassis chassis-number slot
15
Remarks
N/A
N/A
By default, packet statistics is
disabled for a VLAN.