display vlan

Syntax

display vlan [ vlan-id1 [ to vlan-id2 ] | all | dynamic | reserved | static ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

vlan-id1: Displays information about a VLAN specified by VLAN ID, in the range of 1 to 4094.

vlan-id1 to vlan-id2: Displays information about VLANs specified by a VLAN ID range. The vlan-id2 argument cannot be smaller than the vlan-id1 argument.

all: Displays all VLAN information but the reserved VLANs.

dynamic: Displays the number of dynamic VLANs and the ID for each dynamic VLAN. The dynamic VLANs are generated through GVRP, MVRP, or those distributed by a RADIUS server.

reserved: Displays information about the reserved VLANs. Protocol modules determine which VLANs are reserved VLANs according to function implementation, and reserved VLANs serve protocol modules. You cannot configure reserved VLANs.

static: Displays the number of static VLANs and the ID for each static VLAN. The static VLANs are manually created.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display vlan to display VLAN information.

Related commands: vlan.

Examples

# Display VLAN 2 information.

<Sysname> display vlan 2
VLAN ID: 2
 VLAN Type: static
 Route interface: not configured
 Description: VLAN 0002
 Name: VLAN 0002
Tagged   Ports: none
 Untagged Ports:  
    Ethernet1/0/1  Ethernet1/0/2  Ethernet1/0/3

# Display VLAN 3 information.

<Sysname> display vlan 3
 VLAN ID: 3
 VLAN Type: static
 Route Interface: configured
 IPv4 address: 1.1.1.1
 IPv4 subnet mask: 255.255.255.0
 IPv6 global unicast address(es):                   
    2001::1, subnet is 2001::/64 [TENTATIVE]    
Description: VLAN 0003
 Name: VLAN 0003
 Tagged   Ports: none
 Untagged Ports: none

Table 32: Command output

Field

Description

VLAN Type

VLAN type, static or dynamic.

Route interface

Indicates whether the VLAN interface is configured or not.

Description

Description of the VLAN.

Name

Name configured for the VLAN.

IPv4 address

IPv4 address of the VLAN interface (available only when an IPv4 address is configured for the VLAN interface).

IPv4 subnet mask

Subnet mask of the IPv4 address (available only when an IPv4 address is configured for the VLAN interface).

IPv6 global unicast address(es)

Global unicast IPv6 address of the VLAN interface (available only when an IPv6 address is configured for the VLAN interface).

Tagged Ports

Ports through which VLAN packets are sent tagged.

Untagged Ports

Ports through which VLAN packets are sent untagged.