10.4;arp (address resolution protocol), revision 2.0, 92/01/20
arp (address resolution protocol) -address resolution display and control
usage: arp [-a] [-d <hostname>] [-s <hostname> <hysical_addr> [temp | pub | trail] [-f <filename>]
DESCRIPTION
The arp program displays and modifies the Internet-to-physical address
translation tables used by the address resolution protocol (arp).
With no flags, the program displays the current ARP entry for hostname.
You may specify the host by name or by number, using Internet dot
notation.
OPTIONS
-a Display all of the current ARP entries in the internal file.
-d hostname
A super-user may delete an entry for the host called hostname.
-s hostname physical_addr [ temp ] [ pub ] [ trail ]
Create an ARP entry for the host called hostname with the
physical address physical_addr. Domain/OS currently supports
the following physical network interfaces:
Apollo Token Ring
IEEE 802.3 (ETHERNET*)
IEEE 802.5 (IBM* Token Ring)
* See NOTES.
The physical address is given as six hexadecimal bytes
separated by colons. The entry will be permanent unless you
specify the word temp in the command. If you specify the word
pub, the entry will be "published"; that is, this system will
act as an ARP server, responding to requests for hostname even
though the host address is not its own. The word trail
indicates that trailer encapsulations may be sent to this host.
-f filename
Read the file filename and set multiple entries in the ARP
tables. Entries in the file should be of the form
hostname physical_addr [ temp ] [ pub ] [ trail ]
with argument meanings as given above.
Domain/OS EXTENSIONS
The Berkeley version of arp reads /dev/kmem to read the internal ARP
table. The Domain/OS version of arp provides an additional ioctl(2)
routine for sockets to read the internal ARP table. This ioctl routine,
SIOCGARPTAB, is declared in the file, <sys/ioctl.h>. The data structures
returned by SIOCGARPTAB, arp_kentry and arp_ktab, are defined in the
file, <net/if_arp.h>. This routine works the same as the SIOCGRTTAB ioctl
routine, which is described in the BSD intro(4n) man page.
NOTES
ETHERNET is a registered trademark of Xerox Corporation. IBM is a
registered trademark of International Business Machines Corporation.
SEE ALSO
inet, ifconfig;
Configuring and Managing TCP/IP.