The display ip interface command displays the IP-related configuration of and statistics on an interface, including the packets, bytes, and multicast packets sent and received by the interface, and broadcast packets sent, received, forwarded, and discarded by the interface. If no interface type is specified, the system displays IP configurations of and statistics on all interfaces.
Parameter | Description | Value |
---|---|---|
interface-name |
Specifies the name of an interface. |
The value is a string of 1 to 63 case-sensitive characters, spaces not supported. |
interface-type |
Specifies the type and number of an interface. |
The value is a string of 1 to 63 case-sensitive characters, spaces not supported. |
Usage Scenario
Before you monitor the status of an interface or check the sending and receiving of some types of packets on the interface, run the display ip interface command to view the interface status and collect statistics on the interface. The obtained information helps you check whether the network is under attack and possible attack sources.
Implementation Procedure
Precautions
If an interface is used for services exclude IP services, no information about the interface is displayed.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display ip interface gigabitethernet 0/1/1 GigabitEthernet0/1/1 current state : UP Line protocol current state : DOWN The Maximum Transmit Unit : 1500 bytes input packets : 0, bytes : 0, multicasts : 0 output packets : 0, bytes : 0, multicasts : 0 Directed-broadcast packets: received packets: 0, sent packets: 0 forwarded packets: 0, dropped packets: 0 ARP packet input number: 0 Request packet: 0 Reply packet: 0 Unknown packet: 0 Internet protocol processing : disabled Broadcast address : 0.0.0.0 TTL being 1 packet number: 0 TTL invalid packet number: 0 ICMP packet input number: 0 Echo reply: 0 Unreachable: 0 Source quench: 0 Routing redirect: 0 Echo request: 0 Router advert: 0 Router solicit: 0 Time exceed: 0 IP header bad: 0 Timestamp request: 0 Timestamp reply: 0 Information request: 0 Information reply: 0 Netmask request: 0 Netmask reply: 0 Unknown type: 0 DHCP packet deal mode: global
Item | Description |
---|---|
current state | Physical status:
|
Line protocol current state | Link layer protocol status of the interface:
|
input packets | Total number of packets, bytes, and multicast packets received by the interface. |
output packets | Total number of packets, bytes, and multicast packets sent by the interface. |
Directed-broadcast packets | Number of packets broadcast on the interface directly. |
received packets | Total number of packets received by the interface. |
forwarded packets | Total number of packets forward by the interface. |
ARP packet input number | Total number of ARP packets received by the interface. |
Request packet | Number of request packets. |
Reply packet | Number of response packets. |
Unknown packet | Number of unknown packets. |
Unknown type | Number of packets of the unknown type. |
Internet protocol processing | IP address and subnet mask of the interface. |
Internet Address is unnumbered | Unnumbered IP Address of Interface. |
Broadcast address | Broadcast address of the interface. |
TTL being 1 packet number | Number of packets with time to live (TTL) of 1. |
TTL invalid packet number | Number of packets with invalid TTL values. |
ICMP packet input number | Number of received Internet Control Message Protocol (ICMP) packets. |
Echo reply | Number of echo-reply packets. |
Echo request | Number of echo-request packets. |
Source quench | Number of source suppress packets. |
Routing redirect | Number of redirected packets. |
Router advert | Number of router-advertising packets. |
Router solicit | Number of router-soliciting packets. |
Time exceed | Number of timeout packets. |
IP header bad | Number of packets with the corrupted IP header. |
Timestamp request | Number of timestamp-requiring packets. |
Timestamp reply | Number of timestamp-replying packets. |
Information request | Number of information-requiring packets. |
Information reply | Number of information-replying packets. |
Netmask request | Number of mask-requiring packets. |
Netmask reply | Number of mask-replying packets. |
DHCP packet deal mode | DHCP packet deal mode.
|
Unreachable | Number of packets with unreachable destination. |