arp(1M) TCP/IP 5.4.2 arp(1M)
NAME
arp - address resolution display and control
SYNOPSIS
/usr/bin/arp [ -i dev ] -a
/usr/bin/arp [ -i dev ] host
/usr/bin/arp [ -i dev ] -d host
/usr/bin/arp [ -i dev ] -s host hardwareaddr [ temp ] [ pub ]
/usr/bin/arp [ -i dev ] -f file
DESCRIPTION
The arp program displays and modifies the Internet-to-hardware
address translation tables used by the Address Resolution Protocol
arp(6P) and the Reverse Address Resolution Protocol rarp(6P). The
hardware address is the Ethernet, 802.3, or token ring address.
When you use the -a option, the program displays all of the current
ARP entries by reading the internal kernel tables (using the
appropriate ioctl calls). When you use this option, you do not have
to specify the name of a host or of a file.
With host as the argument, the program displays the current ARP entry
for that host. You may specify the host by name or by number, using
Internet standard dot notation.
With the -d option, a superuser may delete an entry for the host
named host.
Use the -s option to create an ARP entry for the host named host with
the hardware address hardwareaddr. The hardware address is
specified as six hexadecimal bytes separated by colons. The
resulting ARP entry is permanent unless the word temp is specified on
the command line. If the word pub is specified, the entry will be
"published"; that is, this system will act as an ARP server,
responding to requests for host even though the host address is not
its own. Only a superuser may set a new entry in the table.
The -f option causes the file named file to be read and multiple
entries to be set in the ARP tables. Only the superuser may use this
option. Entries in the file should be of the following form:
host hardwareaddr [ temp ] [ pub ]
with argument meanings as described above.
If you specify the -i option, only the ARP table for the interface
named dev will be searched.
SEE ALSO
ifconfig(1M), inet(6F), arp(6P), rarp(6P).
Licensed material--property of copyright holder(s) 1