display arp

Syntax

display arp [ [ all | dynamic | static ] [ slot slot-number ] | vlan vlan-id | interface interface-type interface-number ] [ count | verbose ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

all: Displays all ARP entries.

dynamic: Displays dynamic ARP entries.

static: Displays static ARP entries.

slot slot-number: Displays the ARP entries on a specific IRF member switch. The slot-number argument specifies the ID of an IRF member switch. The value range for the argument depends on the number of member switches and their member IDs in the IRF fabric, which you can display with the display irf command. On a standalone device, the slot-number argument specifies the ID of the device.

vlan vlan-id: Displays the ARP entries of the specified VLAN. The VLAN ID ranges from 1 to 4094.

interface interface-type interface-number: Displays the ARP entries of the interface specified by the argument interface-type interface-number.

count: Displays the number of ARP entries.

verbose: Displays detailed information about ARP entries.

|: 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 arp to display ARP entries in the ARP mapping table.

If no parameter is specified, all ARP entries are displayed.

Related commands: arp static and reset arp.

Examples

# Display the information of all ARP entries.

<Sysname> display arp all
                Type: S-Static    D-Dynamic
IP Address       MAC Address     VLAN ID  Interface              Aging Type
192.168.0.235    00e0-fc02-2181  1        Eth1/0/17               20    D
192.168.0.3      000d-88f8-4e71  1        Eth1/0/17               15    D
192.168.0.111    0021-86f9-602c  1        Eth1/0/17               19    D
192.168.0.2      000d-88f7-b090  1        Eth1/0/17               20    D

Table 1: Command output

Field

Description

IP Address

IP address in an ARP entry.

MAC Address

MAC address in an ARP entry.

VLAN ID

ID of the VLAN to which the ARP entry belongs.

Interface

Outbound interface in an ARP entry.

Aging

Aging time for a dynamic ARP entry in minutes. (N/A means unknown aging time or no aging time. To display the aging time of such an entry, display ARP entries on the specified device.)

Type

ARP entry type:

  • D—Dynamic.

  • S—Static.

# Display the number of all ARP entries.

<Sysname> display arp all count
 Total Entry(ies):  4