display interface loopback [ loopback-number ] [ | { begin | include | exclude } regular-expression ]
| Parameter | Description | Value |
|---|---|---|
| loopback-number | Specifies the number of a loopback interface. | The value ranges from 0 to 2147483647. If number is not specified, the status of all loopback interfaces 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. | - |
In the scenario where you need to monitor the status of an interface or locate an interface fault, you can use the display interface loopback command to collect the statistics on the interface including the status. Through the displayed information, you can collect the traffic statistics and troubleshoot the interface.
# Display the status of a specified loopback interface.
<sysname> display interface loopback 6
LoopBack6 current state : UP
Line protocol current state : UP (spoofing)
Description : LoopBack6 Interface
Route Port,The Maximum Transmit Unit is 1500
Internet Address is 10.10.1.1/24
Physical is Loopback
Statistics last cleared: never
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
Realtime 2 seconds input rate 0 bits/sec, 0 packets/sec
Realtime 2 seconds output rate 0 bits/sec, 0 packets/sec
Input: 0 packets,0 bytes,
0 unicast,0 broadcast,0 multicast
0 errors,0 drops,
Output:0 packets,0 bytes,
0 unicast,0 broadcast,0 multicast
0 errors,0 drops
Input bandwidth utilization : 0.00%
Output bandwidth utilization : 0.00%
Item |
Description |
|---|---|
current state : |
Indicates the physical status of the interface. After a loopback interface is created, the physical status keeps Up. |
Line protocol current state : |
Indicates the link layer protocol status of the interface. After a loopback interface is created, the status of the link layer protocol keeps Up. |
Description : |
Indicates the description of the interface. Up to 242 case-sensitive characters (including spaces) can be entered. The description helps you to know the functions of the interface. |
The Maximum Transmit Unit is |
Indicates the maximum transmission unit (MTU). The default MTU is 1500 bytes. Packets whose size is greater than the MTU are fragmented before being transmitted. |
Internet Address is |
Indicates the IP address of the interface. |
Physical is |
Indicates information about the link at the physical layer. |
Last 300 seconds input rate Last 300 seconds output rate |
Indicates the rates for sending and receiving the bytes and the packets by the interface in the last five minutes. You can run the set flow-stat interval command to change the interval at which traffic statistics are collected. |
Realtime 2 seconds input rate Realtime 2 seconds output rate |
Indicates the real-time rates of sending and receiving the bytes and the packets within 2 seconds. It refers to the interval between two display commands that are run on the same interface. The maximum value is the statistical interval displayed in the previous piece of information. This entry is displayed only when information about a logical interface is viewed. |
Input: |
Indicates the total number of packets and the total number of bytes received by the interface. |
Output: |
Indicates the total number of packets and the total number of bytes sent by the interface. |
Input bandwidth utilization |
Indicates the percentage of the rate for receiving packets to the total bandwidth. |
Output bandwidth utilization |
Indicates the percentage of the rate for sending packets to the total bandwidth. |