DECWRL extensions to qf file
[unix-history] / usr / src / usr.sbin / arp / arp4.4
CommitLineData
ef449921
KB
1.\" Copyright (c) 1985, 1986, 1988, 1994
2.\" The Regents of the University of California. All rights reserved.
d3eca8d4 3.\"
ef449921 4.\" %sccs.include.redist.roff%
d3eca8d4 5.\"
7153f1cf 6.\" @(#)arp4.4 6.5 (Berkeley) %G%
54b3b5b7 7.\"
7153f1cf
KB
8.Dd
9.Dt ARP 4
10.Os BSD 4
11.Sh NAME
12.Nm arp
13.Nd Address Resolution Protocol
14.Sh SYNOPSIS
15.Em "pseudo-device ether"
16.Sh DESCRIPTION
17The Address Resolution Protocol (ARP) is a protocol used to dynamically
18map between Internet host addresses and 10Mb/s Ethernet addresses.
19It is used by all the 10Mb/s Ethernet interface drivers.
e17e7b88
MK
20It is not specific to Internet protocols or to 10Mb/s Ethernet,
21but this implementation currently supports only that combination.
7153f1cf
KB
22.Pp
23ARP caches Internet-Ethernet address mappings.
24When an interface requests a mapping for an address not in the cache,
25ARP queues the message which requires the mapping and broadcasts
d3eca8d4
KM
26a message on the associated network requesting the address mapping.
27If a response is provided, the new mapping is cached and any pending
e17e7b88 28message is transmitted.
7153f1cf
KB
29ARP will queue at most one packet while waiting for a response to a
30mapping request;
d3eca8d4 31only the most recently ``transmitted'' packet is kept.
ef449921
KB
32If the target host does not respond after several requests,
33the host is considered to be down for a short period (normally 20 seconds),
7153f1cf
KB
34allowing an error to be returned to transmission attempts during this
35interval.
ef449921
KB
36The error is
37.Li EHOSTDOWN
38for a non-responding destination host, and
39.Li EHOSTUNREACH
40for a non-responding router.
7153f1cf
KB
41.Pp
42The ARP cache is stored in the system routing table as
43dynamically-created host routes.
44The route to a directly-attached Ethernet network is installed as a
45.Dq cloning
46route (one with the
ef449921
KB
47.Li RTF_CLONING
48flag set),
7153f1cf
KB
49causing routes to individual hosts on that network to be created on
50demand.
51These routes time out periodically (normally 20 minutes after validated;
52entries are not validated when not in use).
ef449921 53An entry for a host which is not responding is a
7153f1cf
KB
54.Dq reject
55route (one with the
ef449921
KB
56.Li RTF_REJECT
57flag set).
7153f1cf
KB
58.Pp
59ARP entries may be added, deleted or changed with the
60.Xr arp 8
61utility.
ef449921
KB
62Manually-added entries may be temporary or permanent,
63and may be
7153f1cf 64.Dq published ,
ef449921
KB
65in which case the system will respond to ARP requests for that host
66as if it were the target of the request.
7153f1cf
KB
67.Pp
68In the past,
69ARP was used to negotiate the use of a trailer encapsulation.
ef449921 70This is no longer supported.
7153f1cf 71.Pp
d3eca8d4 72ARP watches passively for hosts impersonating the local host (i.e. a host
2bfcba9f 73which responds to an ARP mapping request for the local host's address).
7153f1cf
KB
74.Sh DIAGNOSTICS
75.Em "duplicate IP address %x!! sent from ethernet address: %x:%x:%x:%x:%x:%x."
d3eca8d4 76ARP has discovered another host on the local network which responds to
7153f1cf
KB
77mapping requests for its own Internet address with a different Ethernet
78address, generally indicating that two hosts are attempting to use the
79same Internet address.
80.Sh SEE ALSO
81.Xr inet 4 ,
82.Xr route 4 ,
83.Xr arp 8 ,
84.Xr ifconfig 8 ,
85.Xr route 8
86.sp
87.Rs
88.%A Plummer, D.
89.%B "An Ethernet Address Resolution Protocol"
90.%T RFC826
91.Re
92.Rs
93.%A Leffler, S.J.
94.%A Karels, M.J.
95.%B "Trailer Encapsulations
96.%T RFC893
97.Re
ef449921 98