display vlan (All views)

Function

The display vlan command displays information about all VLANs, including whether MAC address learning or the broadcast function is enabled.

Format

display vlan vlan-id [ verbose | to vlan-id2 ]

display vlan [ summary | brief ]

display vlan vlan-name vlan-name

Parameters

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.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
vlan read

Usage Guidelines

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:

  • Port (Tagged) that labels packets.
  • Port (Untagged) that does not label packets.

    If a large number of VLAN information exists on a device, you are advised to specify the VLAN ID and VLAN name to filter the VLAN information. Otherwise, the following information may be displayed:
  • The terminal screen keeps refreshing and cannot obtain the required information.
  • The system does not respond when the system traverses and retrieves the information for a long time.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display information about a VLAN with the specified name.
<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
# Display VLAN summarized information.
<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.
# Display brief information about VLANs.
<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)
# Display brief information about a specified VLAN.
<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
# Display detailed information about a specified VLAN.
<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
# Display information about all VLANs.
<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
Table 1 Description of the display vlan (All views) command output
Item Description
#: ProtocolTransparent-vlan

VLAN transparent transmission.

*: Management-vlan

Management VLAN.

VID

VLAN ID.

Type

VLAN type:

  • sub: sub-VLAN.
  • super: super-VLAN.
  • common: common VLAN.
Status

Whether a VLAN is enabled:

  • disable: The VLAN is disabled. (You can run the shutdown vlan command to disable the VLAN.).
  • enable: The VLAN is enabled. (You can run the undo shutdown vlan command to enable the VLAN.).
Property

VLAN attribute. "default" indicates that the VLAN is a common VLAN.

MAC-LRN

Whether MAC address learning is enabled:

  • disable: MAC address learning is disabled.
  • enable: MAC address learning is enabled.
Statistics

Whether VLAN packet statistics collection is enabled:

  • disable: The function of collecting VLAN packet statistics is disabled.
  • enable: The function of collecting VLAN packet statistics is enabled.
Description

Description of a VLAN.

VLAN ID

VLAN ID.

VLAN Name

Name of a VLAN.

VLAN Type

VLAN type:

  • sub: sub-VLAN.
  • super: super-VLAN.
  • common: common VLAN.
VLAN state

Status of the VLAN:

  • Up.
  • Down.

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:

  • disable: The function of collecting VLAN packet statistics is disabled.
  • enable: The function of collecting VLAN packet statistics is enabled.
BC

Whether broadcast packets are forwarded:

  • forward: Broadcast packets are forwarded.
  • discard: Broadcast packets are discarded.
MC

Whether multicast packets are forwarded:

  • forward: Multicast packets are forwarded.
  • discard: Multicast packets are discarded.
UC

Whether unknown unicast packets are forwarded:

  • forward: indicates that unknown unicast packets are forwarded.
  • discard: indicates that unknown unicast packets are discarded.
FWD

The packet is forwarded.

static vlan

Static VLAN.

dynamic vlan

Dynamic VLAN.

reserved vlan

Reserved VLAN.

Broadcast

Whether broadcast packets are forwarded:

  • forward: Broadcast packets are forwarded.
  • discard: Broadcast packets are discarded.
MAC Learning

Whether MAC address learning is enabled:

  • disable: MAC address learning is disabled.
  • enable: 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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >