The display interface description command displays the description of interfaces on the device.
display interface description [ interface-type [ interface-number ] ] [ | { begin | include | exclude } regular-expression ]
display interface description [ interface-type ] [ main ]
| Parameter | Description | Value |
|---|---|---|
interface-type interface-number |
Specifies the type and number of an interface. |
If no interface type is specified, information about all interfaces is displayed. If no interface number is specified, information about all interfaces of this type is displayed. |
| |
Filters the output by using the regular expression. |
- |
begin |
Displays the information from the line containing the regular expression. |
- |
include |
Displays all the lines that contain the regular expression. |
- |
exclude |
Displays all the lines that do not contain the regular expression. |
- |
regular-expression |
Specifies the regular expression. |
- |
main |
Displays the description of the main interface.
|
- |
To facilitate management, you can run the description command on an interface to record the function of the interface. In the case of many interfaces, you can run the display interface description command to rapidly view the description of the interfaces.
The description of interfaces cannot be configured in the terminal user interface view.
# Display the description of all interfaces on the FW.
<sysname> display interface description
PHY: Physical *down: administratively down ^down: standby (l): loopback (s): spoofing (E): E-Trunk down(b): BFD down (B): Bit-error-detection down (e): ETHOAM down (d): Dampening Suppressed (ms): MACsec down Interface PHY Protocol Description GE0/0/0 down down HUAWEI, GigabitEthernet0/0/0 Interface GE0/0/1 down down HUAWEI, GigabitEthernet 0/0/1 Interface GE0/0/2 down down HUAWEI, GigabitEthernet 0/0/2 Interface GE0/0/3 down down HUAWEI, GigabitEthernet 0/0/3 Interface
# Display the description of all Ethernet interfaces on the FW.
<sysname> display interface description gigabitethernet
PHY: Physical *down: administratively down ^down: standby (l): loopback (s): spoofing (E): E-Trunk down (b): BFD down (B): Bit-error-detection down (e): ETHOAM down (d): Dampening Suppressed (ms): MACsec down Interface PHY Protocol Description GE0/0/0 down down HUAWEI, GigabitEthernet0/0/0 Interface GE0/0/1 down down HUAWEI, GigabitEthernet 0/0/1 Interface GE0/0/2 down down HUAWEI, GigabitEthernet 0/0/2 Interface GE0/0/3 down down HUAWEI, GigabitEthernet 0/0/3 Interface
# Display the description of GigabitEthernet 0/0/0 on the FW.
<sysname> display interface description GigabitEthernet 0/0/0
PHY: Physical *down: administratively down ^down: standby (l): loopback (s): spoofing (E): E-Trunk down (b): BFD down (B): Bit-error-detection down (e): ETHOAM down (d): Dampening Suppressed (ms): MACsec down Interface PHY Protocol Description GE0/0/0 down down HUAWEI, GigabitEthernet0/0/0 Interface
# Use the regular expression to filter the description of Gigabit Ethernet interfaces on the FW.
<sysname> display interface description | include Giga
PHY: Physical *down: administratively down ^down: standby (l): loopback (s): spoofing (E): E-Trunk down (b): BFD down (B): Bit-error-detection down (e): ETHOAM down (d): Dampening Suppressed (ms): MACsec down Interface PHY Protocol Description GE0/0/0 down down HUAWEI, GigabitEthernet0/0/0 Interface GE0/0/1 down down HUAWEI, GigabitEthernet 0/0/1 Interface GE0/0/2 down down HUAWEI, GigabitEthernet 0/0/2 Interface GE0/0/3 down down HUAWEI, GigabitEthernet 0/0/3 Interface
Item |
Description |
|---|---|
Interface |
The name and number of an interface. If the bandwidth of an interface exceeds 1 GB, the bandwidth value is displayed following the interface name. |
PHY |
Indicates the physical status of the interface, including:
|
Protocol |
Indicates the link layer protocol status of the interface, including:
|
Description |
Indicates the description of an interface. The information allows users to know about functions of the interface and is used to identify the current interface. You can run the description command to configure or modify the description of an interface. |