R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101

3
NOTE:
Each Unicode character takes the space of two regular characters.
To use Unicode characters or symbols in an interface description, install the specific input method editor
and log in to the device through remote login software that supports the character type.
When the length of a description string reaches or exceeds the maximum line width on the terminal
software, the software starts a new line, possibly breaking a Unicode character into two. As a result,
garbled characters may be displayed at the end of a line.
Description
Use description to change the description of the interface.
Use undo description to restore the default.
The default description of an interface is the interface name plus Interface. For example, GigabitEthernet
0/1 Interface.
Related commands: display interface.
Examples
# Change the description of interface GigabitEthernet 0/1 to lanswitch-interface.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] description lanswitch-interface
# Change the description of Ethernet subinterface GigabitEthernet 0/1.1 to l2-subinterface0/1.1.
<Sysname> system-view
[Sysname] interface gigabitethernet 0/1.1
[Sysname-GigabitEthernet0/1.1] description l2-subinterface0/1.1
display interface
Syntax
display interface [ interface-type ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ]
display interface interface-type { interface-number | interface-number.subnumber } [ brief ] [ | { begin |
exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
interface-type: Specifies an interface type.
interface-number: Specifies an interface number.
interface-number.subnumber: Specifies a subinterface number, where interface-number is an interface
number, and subnumber is the number of a subinterface created under the interface. The subnumber
argument ranges from 1 to 4094.
brief: Displays brief interface information. If you do not specify this keyword, the command displays
detailed interface information.