display ip interface

Use display ip interface to display IP configuration and statistics for Layer 3 interfaces.

Syntax

display ip interface [ interface-type interface-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-operator

Parameters

interface-type interface-number: Specifies an interface by its type and number. If you do not specify an interface, this command displays IP configuration and statistics for all Layer 3 interfaces.

Usage guidelines

Use the display ip interface command to display IP configuration and statistics for the specified Layer 3 interface. The statistics include the following information:

The packet statistics helps you locate a possible attack on the network.

Examples

# Display IP configuration and statistics for VLAN-interface 10.

<Sysname> display ip interface vlan-interface 10
Vlan-interface10 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
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 3: Command output

Field

Description

current state

Physical link state of the interface:

  • Administrative DOWN—The interface has been shut down by using the shutdown command.

  • DOWN—The interface is administratively up, but its physical state is down (possibly because no physical link exists or the link has failed).

  • UP—The interface is both administratively and physically up.

Line protocol current state

Data link layer state of the interface.

  • DOWN—The data link layer protocol is down.

  • UP—The data link layer protocol is up.

  • UP (spoofing)—The data link layer protocol is up, but the link is an on-demand link or does not exist.

Internet Address

IP address of an interface followed by:

  • Primary—A primary IP address.

  • Sub—A secondary IP address.

  • MTunnel—An MTunnel interface IP address.

  • SSLVPN—An SSL VPN interface IP address.

  • Unnumbered—An unnumbered IP address.

  • DHCP-Allocated—An IP address obtained through DHCP.

  • BOOTP-Allocated—An IP address obtained through BOOTP.

  • Mad—A MAD IP address.

  • IRF-Member—IP address of the management Ethernet port of an IRF member device.

Broadcast address

Broadcast address of the subnet attached to an interface.

The Maximum Transmit Unit

MTU of the interface, in bytes.

input packets, bytes, multicasts

output packets, bytes, multicasts

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

TTL invalid packet number

Number of TTL-invalid packets received on the interface (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 (statistics start at the device startup):

  • 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.

Related commands

display ip interface brief

ip address