162CHAPTER 8: GENERAL ETHERNET INTERFACE CONFIGURATION COMMANDS

Parameter text: The description of an Ethernet interface, a string of 1 to 80 characters.

Description Use the description command to configure the description of an Ethernet interface.

Use the undo description command to remove the description.

Default to interface name followed by the “interface” string.

Example # Configure the description for interface Ethernet 1/0 to “lan-interface”.

<Sysname> system-view

[Sysname] interface ethernet 1/0

[Sysname-Ethernet1/0] description lan-interface

display brief interface

Syntax display brief interface [ interface-type[ interface-number] ] [ { begin include exclude } text ]

View Any view

Parameter interface-type: Type of a specified interface. interface-number: Number of a specified interface.

: Uses a regular expression to filter output information.

begin: Displays all the configuration information in the line that contains the specified string and all the lines after this line.

include: Displays information that contains the specified string.

exclude: Displays information that does not contain the specified string.

text: Regular expression, in the range of 1 to 256 characters, excluding spaces.

Table 8 Special characters used in regular expressions

Character

Meaning

Notes on Use

^

Boundary matcher for the beginning

 

of a line. This character specifies a

 

string with which a line begins.

The regular expression “^user” matches lines that begin with the string “user”. Lines that don t begin with the string “user”, for example, “Auser”, are not matched.

$

Boundary matcher for the end of a

 

line. This character specifies a string

 

with which a line ends.

The regular expression “user$” matches lines that end with the string “user”. Lines that do not end with the string, for example, “userA”, are not matched.

.

Full stop, used as the wildcard

None

 

character, which matches any single

 

 

character, including space.

 

Page 162
Image 162
3Com MSR 30, MSR 50 manual Display brief interface, Special characters used in regular expressions, Character Meaning