display vlan [ vlan-id [ verbose | statistics [ slot slot-id ] | port-info ] ]
display vlan [ vlan-id1 [ to vlan-id2 ] ]
display vlan summary [ slot slot-id ]
display vlan vlan-name vlan-name [ statistics | verbose ]
Parameter |
Description |
Value |
---|---|---|
vlan-id |
Specifies the ID of a VLAN. |
The value is an integer that ranges from 1 to 4094. |
vlan-id1 [ to vlan-id2 ] |
Specifies a range of VLAN IDs.
|
|
statistics |
Displays traffic statistics on interfaces in a specified VLAN. If traffic statistics is enabled in the VLAN view, the display vlan vlan-id statistics command can be used to view VLAN traffic statistics. |
- |
slot slot-id |
Displays VLAN traffic statistics or summary in a specified slot. |
The value is an integer and must be the slot ID of a running card. |
summary |
Displays summary of all VLANs. |
- |
verbose |
Displays detailed information about a specified VLAN. If verbose is not specified, only brief information about the VLAN is displayed. |
- |
vlan-name vlan-name | Specifies a VLAN name. | The name is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
port-info | Displays information about all interfaces in a specified VLAN. |
- |
Usage Scenario
The display vlan command displays VLAN configuration or packet statistics on interfaces in a VLAN.
The display vlan vlan-id command displays the ports that actually take effect, and the display vlan vlan-id verbose command displays the configured ports.
Prerequisites
Before using the display vlan vlan-id statistics command, run the statistic enable (vlan view) command in the corresponding VLAN view to enable the traffic statistics function in the VLAN.
Precautions
If no parameter is specified, brief information about all VLANs is displayed.
# Display brief information about all VLANs.
<HUAWEI> display vlan The total number of VLANs is : 3 -------------------------------------------------------------------------------- U: Up; D: Down; TG: Tagged; UT: Untagged; MP: Vlan-mapping; ST: Vlan-stacking; #: ProtocolTransparent-vlan; *: Management-vlan; -------------------------------------------------------------------------------- VID Type Ports -------------------------------------------------------------------------------- 1 common UT:GE0/0/1(D) 9 common TG:GE0/0/2(D) Eth-Trunk1(D) 40 common VID Status Property MAC-LRN Statistics Description -------------------------------------------------------------------------------- 1 enable default enable disable VLAN 0001 9 enable default enable disable VLAN 0009 40 enable default enable disable VLAN 0040
# Display detailed information about VLAN 100.
<HUAWEI> display vlan 100 verbose * : Management-VLAN --------------------- VLAN ID : 100 VLAN Name : VLAN Type : Common Description : VLAN 0100 Status : Enable Broadcast : Enable MAC Learning : Enable Smart MAC Learning : Disable Current MAC Learning Result : Enable Statistics : Disable Property : Default VLAN State : Down ---------------- Tagged Port: GigabitEthernet0/0/1 ---------------- Active Tag Port: GigabitEthernet0/0/1 ------------------- Interface Physical GigabitEthernet0/0/1 DOWN
# Display interface traffic statistics in VLAN 10 on S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S. If no interface is added to VLAN 10, Slot information is not displayed.
<HUAWEI> display vlan 10 statistics
Total
VLAN : 10
---------------------------------------------------------------------------------
Item Packets Bytes
pps bps
---------------------------------------------------------------------------------
Inbound 0 0
0 0
Outbound 0 0
0 0
---------------------------------------------------------------------------------
Slot : 0
VLAN : 10
---------------------------------------------------------------------------------
Item Packets Bytes
pps bps
---------------------------------------------------------------------------------
Inbound 0 0
0 0
Outbound 0 0
0 0
---------------------------------------------------------------------------------
# Display interface traffic statistics in VLAN 10 on other devices except the S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-HI, S6730-H, S6730S-H, S6730-S, and S6730S-S. If no interface is added to VLAN 10, Slot information is not displayed.
<HUAWEI> display vlan 10 statistics
Total
VLAN : 10
---------------------------------------------------------------------------------
Item Packets Bytes
pps bps
---------------------------------------------------------------------------------
Inbound 0 -
0 -
Outbound 0 -
0 -
Inbound unknown-unicast - -
- -
Inbound multicast 0 -
0 -
Inbound broadcast 0 -
0 -
Inbound drop - -
- -
---------------------------------------------------------------------------------
Inbound drop-percentage - -
---------------------------------------------------------------------------------
Slot : 0
VLAN : 10
---------------------------------------------------------------------------------
Item Packets Bytes
pps bps
---------------------------------------------------------------------------------
Inbound 0 -
0 -
Outbound 0 -
0 -
Inbound unknown-unicast - -
- -
Inbound multicast 0 -
0 -
Inbound broadcast 0 -
0 -
Inbound drop - -
- -
---------------------------------------------------------------------------------
Inbound drop-percentage - -
---------------------------------------------------------------------------------
# Display summary of all VLANs.
<HUAWEI> display vlan summary Static VLAN: Total 3 static VLAN. 1 9 to 10 Dynamic VLAN: Total 0 dynamic VLAN. Reserved VLAN: Total 5 reserved VLAN. Rrpp reserved: 3000 to 3001 Sep reserved: 3100 Stack-VLAN: 212 to 213
# Display interface information of a specific VLAN.
<HUAWEI> display vlan 1 port-info VLAN Interface PHY Auto-Neg Duplex Bandwidth 1 GigabitEthernet0/0/1 UP enable full 1000M 1 GigabitEthernet0/0/2 DOWN enable full 1000M 1 GigabitEthernet0/0/3 DOWN disable full 1000M
Item |
Description |
---|---|
VID, VLAN, or VLAN ID |
ID of a VLAN. |
Type or VLAN Type |
Type of a VLAN:
|
Ports |
Interfaces in a VLAN. |
VLAN Name |
Name of a VLAN. |
Description |
Description of a VLAN. |
Status |
Status of a VLAN. The value is always Enable. |
Broadcast |
Whether the broadcast function is enabled in a VLAN:
|
MAC Learning/MAC-LRN |
Whether MAC address learning is enabled:
|
Smart MAC Learning |
Whether smart MAC address learning is enabled:
|
Current MAC Learning Result |
MAC address learning result. |
Statistics |
Whether the traffic statistics function is enabled in a VLAN:
|
Property |
Property of a VLAN:
|
VLAN State |
Status of the VLAN:
The status of a VLAN is determined by the status of member interfaces in the VLAN. A VLAN is Up only when at least one member interface in the VLAN is Up. |
Tagged/Untagged Port |
Interfaces that are manually added to a VLAN in tagged or untagged mode. |
Active Tag/Active Untag Port |
Active interfaces that join a VLAN in tagged or untagged mode. |
Inbound |
Total incoming traffic volume. |
Outbound |
Total outgoing traffic volume. |
Inbound unknown-unicast |
Number of incoming unknown unicast packets. |
Inbound multicast |
Number of incoming multicast packets. |
Inbound broadcast |
Number of incoming broadcast packets. |
Inbound drop |
Number of discarded incoming packets. |
Inbound drop-percentage |
Percentage of discarded incoming packets. |
Static VLAN |
VLANs that are created manually. |
Dynamic VLAN |
VLANs that are learned dynamically. |
Reserved VLAN |
VLANs that are reserved for certain functions. |
Rrpp reserved |
VLANs used by the Rapid Ring Protection Protocol (RRPP). This field is displayed only when RRPP is configured on the switch. |
Sep reserved |
VLANs used by the Smart Ethernet Protocol (SEP). This field is displayed only when SEP is configured on the switch. |
Stack-VLAN |
VLANs configured in a stack. This field is displayed only when the switch is in a stack. |
Interface |
The name and number of an interface. All interfaces are displayed in the alphabetical order. |
PHY |
The physical status of the interface, including:
|
Auto-Neg |
Indicates whether auto-negotiation is enabled on the interface.
The value can be:
|
Duplex |
Duplex mode of the interface:
|
Bandwidth |
Indicates the bandwidth of the interface. |