Technical data
arp
arp
Displays and controls Address Resolution Protocol (ARP) tables.
Format
arp [-u] [-n] hostname
arp -a [-u] [-n] [-i] hostname
arp -d hostname
arp -g hostname
arp -s [-u] hostname hardware_addr [temp] [pub] [trail]
arp -f filename
Description
The
arp
command displays or modifies the current ARP entry for the host
specified by hostname. The hostname value can be specified by name or IP
address, using dotted-decimal notation.
With no flags, the program displays the current ARP entry for
hostname
.
The ARP tables can be displayed by any user, but only privileged users can
modify them.
Flags
-a
Displays all current ARP entries.
-d hostname
Deletes the entry for hostname if the user entering the command is a privileged
user.
-f filename
Reads entries from filename and adds those entries to the ARP tables. Use of this
flag requires system privileges. Entries in the file have the following format:
hostname hardware_addr [temp] [pub] [trail]
Fields in this format are:
A–2 Troubleshooting Utilities Reference