display ip interface

Syntax

display ip interface [ interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

interface-type interface-number: Specifies an interface by its type and number.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display ip interface to display IP configuration information about a specific Layer 3 interface or all Layer 3 interfaces.

Examples

# Display IP configuration information about interface VLAN-interface 1.

<Sysname> display ip interface vlan-interface 1
Vlan-interface1 current state :DOWN
Line protocol current state :DOWN
Internet Address is 1.1.1.1/8 Primary
Broadcast address : 1.255.255.255
The Maximum Transmit Unit : 1500 bytes
input packets : 0, bytes : 0, multicasts : 0
output packets : 0, bytes : 0, multicasts : 0
ARP packet input number:           0
  Request packet:                  0
  Reply packet:                    0
  Unknown packet:                  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

Table 2: Command output

Field

Description

current state

Current physical state of the interface:

  • Administrative DOWN—The interface is shut down with the shutdown command.

  • DOWN—The interface is administratively up but its physical state is down, which may be caused by a connection or link failure.

  • UP—Both the administrative and physical states of the interface are up.

Line protocol current state

Current state of the link layer protocol, which can be:

  • DOWN—The protocol state of the interface is down.

  • UP—The protocol state of the interface is up.

  • UP (spoofing)—The protocol state of the interface pretends to be up. However, no corresponding link is present, or the corresponding link is not present permanently but is established as needed.

Internet Address

IP address of an interface:

  • Primary—Identifies a primary IP address.

  • Sub—Identifies a secondary IP address.

  • unnumbered—Identifies an unnumbered IP address.

  • acquired via DHCP—Identifies an IP address obtained through DHCP.

  • acquired via BOOTP—Identifies an IP address obtained through BOOTP.

  • Cluster—Identifies a cluster IP address.

  • Mad—Identifies a MAD IP address.

Broadcast address

Broadcast address of the subnet attached to an interface.

The Maximum Transmit Unit

Maximum transmission units on the interface, in bytes.

input packets, bytes, multicasts

output packets, bytes, multicasts

Unicast packets, bytes, and multicast packets received on an interface (the statistics start at the device startup).

ARP packet input number:

Request packet:

Reply packet:

Unknown packet:

Total number of ARP packets received on the interface (the statistics start at the device startup), including:

  • ARP request packets.

  • ARP reply packets.

  • Unknown packets.

TTL invalid packet number

Number of TTL-invalid packets received on the interface (the statistics start at the device startup).

ICMP packet input number:

Echo reply:

Unreachable:

Source quench:

Routing redirect:

Echo request:

Router advert:

Router solicit:

Time exceed:

IP header bad:

Timestamp request:

Timestamp reply:

Information request:

Information reply:

Netmask request:

Netmask reply:

Unknown type:

Total number of ICMP packets received on the interface (the statistics start at the device startup), including:

  • Echo reply packets.

  • Unreachable packets.

  • Source quench packets.

  • Routing redirect packets.

  • Echo request packets.

  • Router advertisement packets.

  • Router solicitation packets.

  • Time exceeded packets.

  • IP header bad packets.

  • Timestamp request packets.

  • Timestamp reply packets.

  • Information request packets.

  • Information reply packets.

  • Netmask request packets.

  • Netmask reply packets.

  • Unknown type packets.