arp

address resolution display and control

Syntax:

arp hostname
arp -a
arp -d hostname
arp -f filename
arp -s hostname ether_addr [pub] [temp] [trail]

Options:

-a
Display all of the current ARP entries.
-d hostname
Delete an entry for the specified host. Only the superuser can use this option.
-f filename
Cause the specified file to be read and multiple entries to be set in the ARP tables. Entries in the file should be of the form:

hostname ether_addr [pub] [temp] [trail]

with argument meanings as given for option -s.

-s hostname ether_addr [pub] [temp] [trail]
Create an ARP entry for the host hostname with the Ethernet address ether_addr. The Ethernet address is given as six hex bytes separated by colons.

If pub is given, the entry is ``published.'' That is, this system acts as an ARP server, responding to requests for hostname, even though the IP address that's mapped to hostname isn't the address of this system.

The entry is permanent unless the word temp is given in the command.

If trail is given, trailer encapsulations may be sent to this host.

hostname
The name of the local host, as defined in the /etc/hosts file.

Description:

The arp utility displays and modifies the Internet-to-Ethernet address translation tables used by the address resolution protocol, ARP.

With no options, the utility displays the current ARP entry for hostname. The host may be specified by name or by number, using Internet dot notation.

See also:

ifconfig