37
display vlan
Use
display
vlan
to display VLAN information.
Syntax
display
vlan
[
vlan-id1
[
to
vlan-id2
] |
all
|
dynamic
|
reserved
|
static
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Views
Any view
Default command 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 value of the
vlan
-
id2
argument cannot be smaller than the value of 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 MVRP or GVRP 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.
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:
Bridge-Aggregation1
Ten-GigabitEthernet1/0/1
Ten-GigabitEthernet1/0/2