1 .\" Copyright (c) 1988, 1989, 1991 Carnegie Mellon University
3 .\" $FreeBSD: src/libexec/bootpd/bootpd.8,v 1.10.2.5 2001/07/22 12:07:21 dd Exp $
11 .Nd Internet Boot Protocol server/gateway
18 .Op Fl c Ar chdir-path
31 implements an Internet Bootstrap Protocol (BOOTP) server as defined in
32 RFC 951, RFC 1532, and RFC 1533.
34 implements a simple BOOTP gateway which can be used to forward
35 requests and responses between clients on one subnet and a
38 on another subnet. While either
42 will forward BOOTREPLY packets, only
44 will forward BOOTREQUEST packets.
46 One host on each network segment is normally configured to run either
52 by including one of the following lines in the file
55 .Dl bootps dgram udp wait root /usr/libexec/bootpd bootpd /etc/bootptab
56 .Dl bootps dgram udp wait root /usr/libexec/bootpgw bootpgw server
58 This mode of operation is referred to as "inetd mode" and causes
62 to be started only when a boot request arrives. If it does not
63 receive another packet within fifteen minutes of the last one
64 it received, it will exit to conserve system resources. The
66 option controls this timeout (see OPTIONS).
68 It is also possible to run
72 in "standalone mode" (without
74 by simply invoking it from a shell like any other regular command.
75 Standalone mode is particularly useful when
77 is used with a large configuration database, where the start up
78 delay might otherwise prevent timely response to client requests.
79 (Automatic start up in standalone mode can be done by invoking
84 Standalone mode is less useful for
87 has very little start up delay because
88 it does not read a configuration file.
90 Either program automatically detects whether it was invoked from inetd
91 or from a shell and automatically selects the appropriate mode.
96 option may be used to force standalone or inetd mode respectively
99 The following options are available:
100 .Bl -tag -width indent
104 value (in minutes) that a
108 process will wait for a BOOTP packet before exiting.
109 If no packets are received for
111 minutes, then the program will exit.
112 A timeout value of zero means "run forever".
113 In standalone mode, this option is forced to zero.
114 .It Fl d Ar debug-level
117 variable that controls the amount of debugging messages generated.
122 4 will set the debugging level to 4.
123 For compatibility with older versions of
125 omitting the numeric parameter (i.e. just
127 will simply increment the debug level by one.
128 .It Fl c Ar chdir-path
129 Set the current directory used by
131 while checking the existence and size of client boot files. This is
132 useful when client boot files are specified as relative pathnames, and
134 needs to use the same current directory as the TFTP server
137 This option is not recognized by
140 Force inetd mode. This option is obsolete, but remains for
141 compatibility with older versions of
144 Force standalone mode. This option is obsolete, but remains for
145 compatibility with older versions of
148 Specify the name of the configuration file from which
150 loads its database of known clients and client options
154 Specify the name of the file that
156 will dump its internal database into when it receives a
160 only). This option is only recognized if
162 was compiled with the -DDEBUG flag.
164 Specify the name of a BOOTP server to which
166 will forward all BOOTREQUEST packets it receives
175 operate similarly in that both listen for any packets sent to the
177 port, and both simply forward any BOOTREPLY packets.
178 They differ in their handling of BOOTREQUEST packets.
182 is started, it determines the address of a BOOTP server
183 whose name is provided as a command line parameter. When
185 receives a BOOTREQUEST packet, it sets the "gateway address"
186 and "hop count" fields in the packet and forwards the packet
187 to the BOOTP server at the address determined earlier.
188 Requests are forwarded only if they indicate that
189 the client has been waiting for at least three seconds.
193 is started it reads a configuration file, (normally
195 that initializes the internal database of known clients and client
196 options. This internal database is reloaded
197 from the configuration file when
199 receives a hangup signal
201 or when it discovers that the configuration file has changed.
205 receives a BOOTREQUEST packet, it
206 .\" checks the modification time of the
207 .\" configuration file and reloads the database if necessary. Then it
208 looks for a database entry matching the client request.
209 If the client is known,
211 composes a BOOTREPLY packet using the database entry found above,
212 and sends the reply to the client (possibly using a gateway).
213 If the client is unknown, the request is discarded
214 (with a notice if debug > 0).
218 is compiled with the -DDEBUG option, receipt of a
220 signal causes it to dump its internal database to the file
222 or the dumpfile specified as a command line parameter.
224 During initialization, both programs
225 determine the UDP port numbers to be used by calling
228 .Pa /etc/services ) .
229 Two service names (and port numbers) are used:
231 .Dl bootps BOOTP Server listening port
232 .Dl bootpc BOOTP Client destination port
234 If the port numbers cannot be determined using
236 then the values default to bootps=67 and bootpc=68.
238 .Bl -tag -width /tmp/bootpd.dump -compact
240 Database file read by
242 .It Pa /tmp/bootpd.dump
243 Debugging dump file created by
246 Internet service numbers.
248 Current directory typically used by the TFTP server and
256 DARPA Internet Request For Comments:
257 .Bl -tag -width "RFC 1533" -compact
261 Clarifications and Extensions for the Bootstrap Protocol
263 DHCP Options and BOOTP Vendor Extensions
266 Individual host entries must not exceed 1024 characters.
268 This distribution is currently maintained by
269 .An Walter L. Wimer Aq Mt walt+@cmu.edu .
271 The original BOOTP server was created by
273 at Stanford University in January 1986.
275 The current version of
277 is primarily the work of
279 .An Drew D. Perkins ,
281 .An Walter L. Wimer ,
282 at Carnegie Mellon University.
284 Enhancements and bug-fixes have been contributed by:
286 (in alphabetical order)
289 .An Danny Backx Aq Mt db@sunbim.be
290 .An John Brezak Aq Mt brezak@ch.hp.com
291 .An Frank da Cruz Aq Mt fdc@cc.columbia.edu
292 .An David R. Linn Aq Mt drl@vuse.vanderbilt.edu
293 .An Jim McKim Aq Mt mckim@lerc.nasa.gov
294 .An Gordon W. Ross Aq Mt gwr@mc.com
295 .An Jason Zions Aq Mt jazz@hal.com