ARP(8) BSD System Manager's Manual ARP(8)NAMEarp - address resolution display and control
SYNOPSISarp [-n] hostname
arp-a [-n]
arp-d hostname
arp-f filename
arp-s hostname link_addr [temp] [pub]
DESCRIPTION
The arp program displays and modifies the Internet-to-Link Level address
translation tables used by the address resolution protocol (arp(4)).
With no flags, the program displays the current ARP entry for hostname.
The host may be specified by name or by number, using Internet dot nota-
tion.
The following options are available:
-a The program displays all of the current ARP entries.
-d A super-user may delete an entry for the host called hostname
with the -d flag.
-f Causes the file filename to be read and multiple entries to be
set in the ARP tables. Entries in the file should be of the
form:
hostname link_addr [temp] [pub]
where the pub and temp arguments have the meanings described be-
low for the -s option.
-n When no flags or the -a option is specified arp attempts to dis-
play addresses symbolically as well as numerically. If the -n
option is specified, no symbolic lookup is done and a ``?'' is
displayed in place of a symbolic address.
-s hostname link_addr
Create an ARP entry for the host called hostname with the link
level address link_addr. The entry will be permanent unless the
word temp is given in the command. If the word pub is given, the
entry will be "published"; i.e., this system will act as an ARP
server, responding to requests for hostname even though the host
address is not its own.
The link level address is of the form:
m:m:m:m:m:m[/route_info]
Where m is a hexadecimal byte value (with or without a leading 0x).
The optional routing information may be used with IEEE 802.5 (token ring)
networks and is of the form:
dir:seg1[:seg2...]
The dir flag is either f (forward) or r (reverse), this specifies the di-
rection the route segments should be interpreted in. Route segments are
16 bit values that are converted to network order. The upper bits specify
the ring number and the lower bits specify the bridge number. The number
of bits in ring and bridge are configured into the bridges.
No whitespace may appear in the link address.
SEE ALSOinet(3), arp(4), ifconfig(8)HISTORY
The arp command appeared in 4.3BSD. The nonstandard `trailer protocol'
support was deleted in 4.4BSD; the system now accepts, but never gener-
ates, trailers. IEEE 802.5 source route handling was added in BSD/OS
2.1.
BSDI BSD/OS April 27, 1995 2