34
Usage guidelines
Configure a description to describe the function or connection of a VLAN or VLAN interface for easy
management.
Examples
# Change the description of VLAN 2 to
sales-private
.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] description sales-private
# Change the description of VLAN-interface 2 to
linktoPC56
.
<Sysname> system-view
[Sysname] vlan 2
[Sysname-vlan2] quit
[Sysname] interface vlan-interface 2
[Sysname-Vlan-interface2] description linktoPC56
Related commands
•
display
interface vlan-interface
•
display
vlan
display interface vlan-interface
Use
display
interface vlan-interface
to display information about a specified or all VLAN interfaces.
Syntax
display interface
[
vlan-interface
] [
brief
[
down
] ] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
display interface vlan-interface
vlan-interface-id
[
brief
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Views
Any view
Default command level
1: Monitor level
Parameters
vlan-interface-id
: Specifies a VLAN interface number.
brief
: Displays brief interface information. If you do not specify this keyword, the command displays
detailed interface information.
down
: Displays information about interfaces in the DOWN state and the causes. If you do not specify
this keyword, this command displays information about interfaces in all states.
|
: 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.