The display vlan command displays information about all VLANs, including whether MAC address learning or the broadcast function is enabled.
Parameter | Description | Value |
---|---|---|
vlan-id |
Displays information about a specified VLAN. If vlan-id is specified, interfaces in the VLAN are displayed. The interfaces can be tagged or untagged. |
The value is an integer ranging from 1 to 4094. |
verbose |
Displays detailed VLAN information. |
- |
vlan-id2 |
Specifies the end VLAN ID. |
The value is an integer ranging from 1 to 4094. |
summary |
Displays VLAN summarized information. |
- |
brief |
Displays brief VLAN information. |
- |
vlan-name vlan-name |
Specifies the name of a VLAN. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. |
Usage Scenario
After VLANs are created on a device, you can run the display vlan command to check whether the configuration, name, and status of each VLAN are correct.
Prerequisites
VLANs has been created on a device. Otherwise, no command output is displayed.
Precautions
The following ports are displayed:
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display vlan vlan-name IPTV -------------------------------------------------------------------------------- U: Up; D: Down; TG: Tagged; UT: Untagged; MP: Vlan-mapping; ST: Vlan-stacking; #: ProtocolTransparent-vlan; *: Management-vlan; -------------------------------------------------------------------------------- VID Type Ports -------------------------------------------------------------------------------- 10 common UT:GE0/1/18(U) VID Status Property MAC-LRN Statistics Description -------------------------------------------------------------------------------- 10 enable default enable disable VLAN 0010
<HUAWEI> display vlan summary
static vlan:
Total 11 static vlan.
1 to 4 10 to 12 20 30 40 50
dynamic vlan:
Total 0 dynamic vlan.
reserved vlan:
Total 0 reserved vlan.
<HUAWEI> display vlan brief U:Up;D:Down;TG:Tagged;UT:Untagged; VID Name Status Ports --------------------------------------------- 10 voice enable UT: GE0/1/1(U) 20 IPTV enable TG: GE0/1/2(U) 30 enable TG: GE0/1/3(U)
<HUAWEI> display vlan 10 -------------------------------------------------------------------------------- U: Up; D: Down; TG: Tagged; UT: Untagged; MP: Vlan-mapping; ST: Vlan-stacking; #: ProtocolTransparent-vlan; *: Management-vlan; -------------------------------------------------------------------------------- VID Type Ports -------------------------------------------------------------------------------- 10 common UT:GE0/1/17(U) GE0/1/18(U) VID Status Property MAC-LRN Statistics Description -------------------------------------------------------------------------------- 10 enable default enable disable VLAN 0010
<HUAWEI> display vlan 10 verbose * : Management-VLAN --------------------- VLAN ID : 10 VLAN Name : VLAN Type : Common Description : VLAN 0010 Status : Enable Broadcast : Enable MAC Learning : Enable Statistics : Disable Property : Default VLAN State : Up ---------------- Untagged Port: GigabitEthernet0/1/18 ---------------- Active Untag Port: GigabitEthernet0/1/18 --------------------- Interface Physical GigabitEthernet0/1/18 UP
<HUAWEI> display vlan
The total number of vlans is : 7
VID Type Status Property MAC-LRN STAT BC MC UC Description
--------------------------------------------------------------------------------
1 common enable default enable disable FWD FWD FWD VLAN 0001
2 common enable default enable disable FWD FWD FWD VLAN 0002
3 common enable default enable disable FWD FWD FWD VLAN 0003
4 common enable default enable disable FWD FWD FWD VLAN 0004
5 common enable default enable disable FWD FWD FWD VLAN 0005
6 common enable default enable disable FWD FWD FWD VLAN 0006
7 common enable default enable disable FWD FWD FWD VLAN 0007
Item | Description |
---|---|
#: ProtocolTransparent-vlan | VLAN transparent transmission. |
*: Management-vlan | Management VLAN. |
VID | VLAN ID. |
Type | VLAN type:
|
Status | Whether a VLAN is enabled:
|
Property | VLAN attribute. "default" indicates that the VLAN is a common VLAN. |
MAC-LRN | Whether MAC address learning is enabled:
|
Statistics | Whether VLAN packet statistics collection is enabled:
|
Description | Description of a VLAN. |
VLAN ID | VLAN ID. |
VLAN Name | Name of a VLAN. |
VLAN Type | VLAN type:
|
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 its member interfaces are Up. If the corresponding VLANIF interface exists, the VLAN goes Down only when the VLANIF interface is in the management Down state and all member interfaces in the VLAN are in the Down state. |
STAT | Whether VLAN packet statistics collection is enabled:
|
BC | Whether broadcast packets are forwarded:
|
MC | Whether multicast packets are forwarded:
|
UC | Whether unknown unicast packets are forwarded:
|
FWD | The packet is forwarded. |
static vlan | Static VLAN. |
dynamic vlan | Dynamic VLAN. |
reserved vlan | Reserved VLAN. |
Broadcast | Whether broadcast packets are forwarded:
|
MAC Learning | Whether MAC address learning is enabled:
|
Interface | Interface added to a VLAN. |
Physical | Physical status of the interface added to a VLAN. |
The total number of vlans is | Total number of VLANs. |
U | The interface state is Up. |
D | The interface state is Down. |
TG | Tagged packets. |
UT | Untagged packets. |
MP | VLAN mapping. |
ST | VLAN stacking. |
Ports/Port | Interfaces added to a VLAN. |