The display interface command displays the running status of and traffic statistics on an interface.
Parameter | Description | Value |
---|---|---|
interface-type |
Specifies the type of an interface. If no interface type is specified, the description of all interfaces is displayed. |
- |
interface-number |
Specifies the number of an interface. If an interface type is specified but no interface number is specified, the description of all interfaces of this type is displayed. |
The value is a string of 1 to 63 case-sensitive characters, spaces not supported. |
slot slot-number |
Specifies the slot number. If no slot number is specified, the description of all slots is displayed. In VS mode, this parameter is supported only by the admin VS. |
The value is a string of 1 to 63 case-sensitive characters, spaces not supported. |
interface-name |
Specifies the name of an interface. |
- |
main |
Displays the running status of and traffic statistics on an interface.
|
- |
Usage Scenario
Before you monitor the status of an interface or locate an interface fault, use the display interface command to collect the running status of and statistics on the interface. You can troubleshoot the interface based on the command output.
Perform any of following operations based on the interface status and statistics:Precautions
Physical status and link layer protocol status of an interface: Commonly, the link layer protocol status of a working interface is Up.
Last 300 seconds input rate and last 300 seconds output rate of an interface: The existing traffic on the interface needs to be compared with the interface bandwidth. If the existing traffic exceeds 80% of the interface bandwidth, such a situation must be recorded and confirmed. In addition, check whether error statistics about incoming and outgoing traffic are collected on an interface and take actions if statistics about error packets increase. The obtained interface bandwidth is converted to 1 Gbps (10^9 bps).To view statistics about IPv4 or IPv6 traffic in the inbound and outbound directions on an interface, enable statistics collection in both directions on the interface.
When you check information about a FlexE physical interface, the following packet fields are not displayed in the command output: Statistics last cleared, Last 300 seconds input rate, Last 300 seconds output rate, Input, Output, Last 300 seconds input utility rate, and Last 300 seconds output utility rate.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display interface gigabitethernet 0/1/0 GigabitEthernet0/1/0 current state : UP (ifindex: 6) Line protocol current state : UP Last line protocol up time : 2013-07-29 15:39:29 Description: HUAWEI, GigabitEthernet0/1/0 Interface Route Port,The Maximum Transmit Unit is 1500 Internet Address is 10.1.1.1/1 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc12-3458 Last physical up time : 2013-07-29 15:39:23 Last physical down time : 2013-07-29 15:38:41 Current system time: 2013-07-30 09:15:33 Statistics last cleared:never Last 300 seconds input rate: 23513 bits/sec, 2 packets/sec Last 300 seconds output rate: 64319 bits/sec, 3 packets/sec Input peak rate 26099 bits/sec, Record time: 2013-07-29 15:40:58 Output peak rate 64809 bits/sec, Record time: 2013-07-30 03:59:41 Input: 183126871 bytes, 182525 packets Output: 509287017 bytes, 244628 packets Input: Unicast: 55 packets, Multicast: 160762 packets Broadcast: 21708 packets JumboOctets: 31031 packets CRC: 0 packets, Symbol: 0 packets Overrun: 0 packets, InRangeLength: 0 packets LongPacket: 0 packets, Jabber: 0 packets, Alignment: 0 packets Fragment: 0 packets, Undersized Frame: 0 packets RxPause: 0 packets Output: Unicast: 53 packets, Multicast: 243990 packets Broadcast: 585 packets JumboOctets: 0 packets Lost: 0 packets, Overflow: 0 packets, Underrun: 0 packets System: 0 packets, Overruns: 0 packets TxPause: 0 packets Last 300 seconds input utility rate: 0.01% Last 300 seconds output utility rate: 0.01% Ipv4: Last 300 seconds input rate: 512 bits/sec, 1 packets/sec Last 300 seconds output rate: 0 bits/sec, 0 packets/sec Input 63318 packets,4052352 bytes Output 0 packets,0 bytes Input bandwidth utilization: 0.00% Output bandwidth utilization: 0.00% Ipv6: Last 300 seconds input rate: 0 bits/sec, 0 packets/sec Last 300 seconds output rate: 0 bits/sec, 0 packets/sec Input 0 packets,0 bytes Output 0 packets,0 bytes Input bandwidth utilization: 0.00% Output bandwidth utilization: 0.00%
<HUAWEI> display interface main GE0/1/0 current state : UP (ifindex: 6) Line protocol current state : UP Description: Route Port,The Maximum Transmit Unit is 1500 Internet protocol processing : disabled IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc12-3456 Loopback:none, LAN full-duplex mode, Pause Flowcontrol: Receive Enable and Send Enable Last physical up time : - Last physical down time : 2013-09-12 07:57:59 Current system time: 2013-09-12 09:23:39 Statistics last cleared:never Last 300 seconds input rate: 23513 bits/sec, 2 packets/sec Last 300 seconds output rate: 64319 bits/sec, 3 packets/sec Input peak rate 26099 bits/sec, Record time: 2013-07-29 15:40:58 Output peak rate 64809 bits/sec, Record time: 2013-07-30 03:59:41 Input: 183126871 bytes, 182525 packets Output: 509287017 bytes, 244628 packets Input: Unicast: 55 packets, Multicast: 160762 packets Broadcast: 21708 packets, JumboOctets: 31031 packets CRC: 0 packets, Symbol: 0 packets Overrun: 0 packets, InRangeLength: 0 packets LongPacket: 0 packets, Jabber: 0 packets, Alignment: 0 packets Fragment: 0 packets, Undersized Frame: 0 packets RxPause: 0 packets Output: Unicast: 53 packets, Multicast: 243990 packets Broadcast: 585 packets, JumboOctets: 0 packets Lost: 0 packets, Overflow: 0 packets, Underrun: 0 packets System: 0 packets, Overruns: 0 packets TxPause: 0 packets Last 300 seconds input utility rate: 0.01% Last 300 seconds output utility rate: 0.01% GE0/1/1 current state : UP (ifindex: 7) Line protocol current state : UP Description: Route Port,The Maximum Transmit Unit is 1500 Internet protocol processing : disabled IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc12-3457 Loopback:none, LAN full-duplex mode, Pause Flowcontrol: Receive Enable and Send Enable Last physical up time : - Last physical down time : 2013-09-12 07:57:59 Current system time: 2013-09-12 09:23:45 Statistics last cleared:never Last 300 seconds input rate: 23513 bits/sec, 2 packets/sec Last 300 seconds output rate: 64319 bits/sec, 3 packets/sec Input peak rate 26099 bits/sec, Record time: 2013-07-29 15:40:58 Output peak rate 64809 bits/sec, Record time: 2013-07-30 03:59:41 Input: 183126871 bytes, 182525 packets Output: 509287017 bytes, 244628 packets Input: Unicast: 55 packets, Multicast: 160762 packets Broadcast: 21708 packets, JumboOctets: 31031 packets CRC: 0 packets, Symbol: 0 packets Overrun: 0 packets, InRangeLength: 0 packets LongPacket: 0 packets, Jabber: 0 packets, Alignment: 0 packets Fragment: 0 packets, Undersized Frame: 0 packets RxPause: 0 packets Output: Unicast: 53 packets, Multicast: 243990 packets Broadcast: 585 packets, JumboOctets: 0 packets Lost: 0 packets, Overflow: 0 packets, Underrun: 0 packets System: 0 packets, Overruns: 0 packets TxPause: 0 packets Last 300 seconds input utility rate: 0.01% Last 300 seconds output utility rate: 0.01% GE0/1/2 current state : Administratively DOWN (ifindex: 8)..............
Item | Description |
---|---|
current state | Physical status of the interface:
|
Line protocol current state | Link layer protocol status of the interface:
|
Last line protocol up time | Last time the link-layer protocol of the interface went Up. |
Last physical up time | Last time when the physical status of the interface went Up. A hyphen (-) indicates that the physical status of the interface does not change. When the interface goes Up, if the system is configured with a time zone and is in the summer time, the time is displayed in the format of YYYY/MM/DD HH:MM:SS UTC±HH:MM DST. |
Last physical down time | Last time when the physical status of the interface goes Down. A hyphen (-) indicates that the physical status of the interface does not change. When the interface goes Down, if the system is configured with a time zone and is in the summer time, the time is displayed in the format of YYYY/MM/DD HH:MM:SS UTC±HH:MM DST. |
Last 300 seconds input rate | Rate of the bit and the input packet that pass through the interface in the last 5 minutes:
You can run the set flow-stat interval command to change the interval at which traffic statistics are collected. |
Last 300 seconds output rate | Rate of the bit and the output packet that pass through the interface in the last 5 minutes:
You can run the set flow-stat interval command to change the interval at which traffic statistics are collected. |
Last 300 seconds output utility rate | Percentage of the rate for sending packets to the total bandwidth. |
Route Port | Layer 3 interface. |
Internet Address is | IP address and subnet mask of the interface. |
IP Sending Frames' Format | Format of Ethernet frames sent by the interface. PKTFMT_ETHNT_2 is the default frame format. When receiving frames, an Ethernet interface can identify the following formats:
|
Hardware address | MAC address of the interface. |
Current system time | Current system time. If the system is configured with a time zone and is in the summer time, the time is displayed in the format of YYYY/MM/DD HH:MM:SS UTC±HH:MM DST. |
Statistics last cleared | Last time when statistics on the interface were deleted. |
Input peak rate | Maximum average rate at which packets were received during all statistical intervals. During each statistical interval, packets are received at a specific rate. You can run the set flow-stat interval command to change the interval at which traffic statistics are collected. The value is an integer ranging from 10 to 600, in seconds. It must be an integer multiple of 10. The default interval is 300 seconds. |
Input | Total number and total bytes of received packets on an interface. Packets include correct packets (unicast, broadcast, multicast packets and JumboOctets), incorrect packets, and dropped packets.
|
Input bandwidth utilization | Utilization of the bandwidth about IPv4/IPv6 packets received by the interface. |
Output peak rate | Maximum average rate at which packets were sent during all statistical intervals. During each statistical interval, packets are sent at a specific rate. You can run the set flow-stat interval command to change the interval at which traffic statistics are collected. The value is an integer ranging from 10 to 600, in seconds. It must be an integer multiple of 10. The default interval is 300 seconds. |
Output | Total number and total bytes of sent packets on an interface. Packets include correct packets (unicast, broadcast, multicast packets and JumboOctets), incorrect packets, and dropped packets.
|
Output bandwidth utilization | Utilization of the bandwidth about IPv4/IPv6 packets sent by the interface. |
The Maximum Transmit Unit | MTU of the interface. For example, the default MTU of an Ethernet interface is 1500 bytes. The packet whose size is greater than the MTU is fragmented before being transmitted. If fragmentation is not allowed, the packets are discarded. |
The Maximum Transmit Unit is | MTU of the interface. |
Description | Interface description. A maximum of 242 case-sensitive characters (including spaces) can be entered. The description helps you know the functions of the interface. If the description command is not used to configure the interface description, the description is empty by default. |
ifindex | Interface index. |
Ipv4 | Traffic statistics about IPv4 packets sent and received by the interface. This field is displayed only after the statistic enable command is run in the main interface view and then the statistic mode forward command is run in the interface view. |
Ipv6 | Traffic statistics about IPv6 packets sent and received by the interface. This field is displayed only after the statistic enable command is run in the main interface view and then the statistic mode forward command is run in the interface view. |