arp

address resolution display and control

Syntax:

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

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 [temp] [pub] [trail]

with argument meanings as given for option -s.

-s hostname ether_addr [temp] [pub] [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.

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

If pub is given, the entry will be “published.” That is, this system will act 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.

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

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:

inet() routines, ifconfig