xref: /freebsd/usr.sbin/rarpd/rarpd.8 (revision b7e469ad1099b9c91f5285c8666e8f37c30003c6)
197d92980SPeter Wemm.\" @(#) $FreeBSD$ (LBL)
29636a39aSBill Paul.\"
37632575bSBill Paul.\" Copyright (c) 1990, 1991, 1993 The Regents of the University of
47632575bSBill Paul.\" California. All rights reserved.
59636a39aSBill Paul.\"
69636a39aSBill Paul.\" Redistribution and use in source and binary forms, with or without
79636a39aSBill Paul.\" modification, are permitted provided that: (1) source code distributions
89636a39aSBill Paul.\" retain the above copyright notice and this paragraph in its entirety, (2)
99636a39aSBill Paul.\" distributions including binary code include the above copyright notice and
109636a39aSBill Paul.\" this paragraph in its entirety in the documentation or other materials
119636a39aSBill Paul.\" provided with the distribution, and (3) all advertising materials mentioning
129636a39aSBill Paul.\" features or use of this software display the following acknowledgement:
139636a39aSBill Paul.\" ``This product includes software developed by the University of California,
149636a39aSBill Paul.\" Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
159636a39aSBill Paul.\" the University nor the names of its contributors may be used to endorse
169636a39aSBill Paul.\" or promote products derived from this software without specific prior
179636a39aSBill Paul.\" written permission.
189636a39aSBill Paul.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
199636a39aSBill Paul.\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
209636a39aSBill Paul.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
219636a39aSBill Paul.\"
22aa40a0daSPhilippe Charnier.Dd July 19, 1993
23aa40a0daSPhilippe Charnier.Dt RARPD 8
24aa40a0daSPhilippe Charnier.Os
25aa40a0daSPhilippe Charnier.Sh NAME
26aa40a0daSPhilippe Charnier.Nm rarpd
27aa40a0daSPhilippe Charnier.Nd reverse ARP daemon
28aa40a0daSPhilippe Charnier.Sh SYNOPSIS
29aa40a0daSPhilippe Charnier.Nm rarpd
30aa40a0daSPhilippe Charnier.Op Fl afsv
31aa40a0daSPhilippe Charnier.Op Ar interface
32aa40a0daSPhilippe Charnier.Sh DESCRIPTION
33aa40a0daSPhilippe Charnier.Nm Rarpd
349636a39aSBill Paulservices Reverse ARP requests on the Ethernet connected to
35aa40a0daSPhilippe Charnier.Ar interface .
369636a39aSBill PaulUpon receiving a request,
37aa40a0daSPhilippe Charnier.Nm
389636a39aSBill Paulmaps the target hardware address to an IP address via its name, which
399636a39aSBill Paulmust be present in both the
40aa40a0daSPhilippe Charnier.Xr ethers 5
419636a39aSBill Pauland
42aa40a0daSPhilippe Charnier.Xr hosts 5
439636a39aSBill Pauldatabases.
44b60287dbSBill FennerIf a host does not exist in both databases, the translation cannot
459636a39aSBill Paulproceed and a reply will not be sent.
469636a39aSBill Paul
47a9695b96SBill FennerBy default, a request is honored only if the server
48aa40a0daSPhilippe Charnier(i.e., the host that
49aa40a0daSPhilippe Charnier.Nm
50aa40a0daSPhilippe Charnieris running on)
51b60287dbSBill Fennercan "boot" the target; that is, a file or directory matching the glob
52aa40a0daSPhilippe Charnier.Pa /tftpboot/\fIipaddr\fP*
53aa40a0daSPhilippe Charnierexists, where
54aa40a0daSPhilippe Charnier.Em ipaddr
55aa40a0daSPhilippe Charnieris the target IP address in hex.
56b60287dbSBill FennerFor example, the IP address 204.216.27.18 will be replied to if any of
57aa40a0daSPhilippe Charnier.Pa /tftpboot/CCD81B12 ,
58aa40a0daSPhilippe Charnier.Pa /tftpboot/CCD81B12.SUN3 ,
59aa40a0daSPhilippe Charnieror
60aa40a0daSPhilippe Charnier.Pa /tftpboot/CCD81B12-boot
61b60287dbSBill Fennerexist.
62a9695b96SBill FennerThis requirement can be overridden with the
63aa40a0daSPhilippe Charnier.Fl s
64a9695b96SBill Fennerflag (see below).
659636a39aSBill Paul
669636a39aSBill PaulIn normal operation,
67aa40a0daSPhilippe Charnier.Nm
689636a39aSBill Paulforks a copy of itself and runs in
699636a39aSBill Paulthe background.  Anomalies and errors are reported via
70aa40a0daSPhilippe Charnier.Xr syslog 3 .
719636a39aSBill Paul
72b7e469adSPhilippe Charnier.Pp
73aa40a0daSPhilippe CharnierThe following options are available:
74aa40a0daSPhilippe Charnier.Bl -tag -width indent
75aa40a0daSPhilippe Charnier.It Fl a
769636a39aSBill PaulListen on all the Ethernets attached to the system.
77aa40a0daSPhilippe CharnierIf
78aa40a0daSPhilippe Charnier.Fl a
79aa40a0daSPhilippe Charnieris omitted, an interface must be specified.
80aa40a0daSPhilippe Charnier.It Fl f
819636a39aSBill PaulRun in the foreground.
82aa40a0daSPhilippe Charnier.It Fl s
83a9695b96SBill FennerSupply a response to any RARP request for which an ethernet to IP address
84a9695b96SBill Fennermapping exists; do not depend on the existence of
85aa40a0daSPhilippe Charnier.Pa /tftpboot/\fIipaddr\fP* .
86aa40a0daSPhilippe Charnier.It Fl v
877632575bSBill PaulEnable verbose sysloging.
88aa40a0daSPhilippe Charnier.El
89aa40a0daSPhilippe Charnier.Sh FILES
90aa40a0daSPhilippe Charnier.Bl -tag -width /etc/ethers -compact
91aa40a0daSPhilippe Charnier.It Pa /etc/ethers
92aa40a0daSPhilippe Charnier.It Pa /etc/hosts
93aa40a0daSPhilippe Charnier.It Pa /tftpboot
94aa40a0daSPhilippe Charnier.El
95aa40a0daSPhilippe Charnier.Sh SEE ALSO
96aa40a0daSPhilippe Charnier.Xr bpf 4
97aa40a0daSPhilippe Charnier.Pp
989636a39aSBill PaulRFC 903: Finlayson, R.; Mann, T.; Mogul, J.C.; Theimer, M.  Reverse Address
999636a39aSBill PaulResolution Protocol.  1984 June; 4 p.
100aa40a0daSPhilippe Charnier.Sh AUTHORS
101aa40a0daSPhilippe Charnier.An Craig Leres Aq leres@ee.lbl.gov
102aa40a0daSPhilippe Charnierand
103aa40a0daSPhilippe Charnier.An Steven McCanne Aq mccanne@ee.lbl.gov .
1049636a39aSBill PaulLawrence Berkeley Laboratory, University of California, Berkeley, CA.
105aa40a0daSPhilippe Charnier.Sh BUGS
106aa40a0daSPhilippe Charnier.Nm Rarpd
107aa40a0daSPhilippe Charniercan depend on the DNS to resolve the name discovered from
108aa40a0daSPhilippe Charnier.Pa /etc/ethers .
109aa40a0daSPhilippe CharnierIf this name is not in the DNS but is in
110aa40a0daSPhilippe Charnier.Pa /etc/hosts ,
111aa40a0daSPhilippe Charnierthe DNS lookup
112b60287dbSBill Fennercan cause a delayed RARP response, so in this situation it is reccommended to
113aa40a0daSPhilippe Charnierconfigure
114aa40a0daSPhilippe Charnier.Pa /etc/host.conf
115aa40a0daSPhilippe Charnierto read
116aa40a0daSPhilippe Charnier.Pa /etc/hosts
117aa40a0daSPhilippe Charnierfirst.
118