BOOTPD(8)
π BOOTPD(8) β bootpd, bootpgw: Internet Boot Protocol server/gateway π
okay bestie, sit DOWN, because we're about to talk about bootpd and bootpgw, the Carnegie Mellon University icons of the BOOTP world. this whole page? it's about them. two programs, one manual page, infinite slay. π
β¨ SYNOPSIS β¨
bootpd [ -v ] [ -i -s -t timeout -d level -c chdir-path ] [ bootptab [ dumpfile ] ]
bootpgw [ -v ] [ -i -s -t timeout -d level ] server
πΈ DESCRIPTION πΈ
so like, bootpd is an Internet Bootstrap Protocol (BOOTP) server, and it does exactly what RFC951, RFC1532, and RFC1533 say it should. no cap. it ALSO gives you a little extension action to support the static part of Dynamic Host Configuration Protocol (DHCP) as specified in RFC1533 β and DHCP is the thing Windows NT and 95 are out here using, so yeah, it matters. π
meanwhile bootpgw is a simple BOOTP gateway, and its whole vibe is forwarding requests and responses between clients on one subnet and a BOOTP server (i.e. bootpd) on another subnet. here's the tea: while either bootpd or bootpgw will forward BOOTREPLY packets, only bootpgw will forward BOOTREQUEST packets. periodt. π
one host on each network segment is normally configured to run either bootpd or bootpgw from inetd, by including one of these lines in the file /etc/inetd.conf:
bootps dgram udp wait root /usr/sbin/bootpd bootpd bootptab
bootps dgram udp wait root /usr/sbin/bootpgw bootpgw server
this mode of operation is called "inetd mode", and it means bootpd (or bootpgw) only gets started when a boot request shows up. it's giving on-demand. but if it doesn't receive another packet within fifteen minutes of the last one it received, it will exit to conserve system resources. the -t option controls this timeout (peep OPTIONS below, bestie).
you can ALSO run bootpd (or bootpgw) in "standalone mode" (without inetd) by just invoking it from a shell like any other regular command. standalone mode is particularly useful when bootpd is used with a large configuration database, where the start up delay might otherwise prevent timely response to client requests. (automatic start up in standalone mode can be done by invoking bootpd from within /etc/rc.local, for example.) standalone mode is less useful for bootgw which has very little start up delay because it does not read a configuration file. π
either program automatically detects whether it was invoked from inetd or from a shell, and automatically selects the appropriate mode. the -s or -i option may be used to force standalone or inetd mode respectively (see OPTIONS).
π OPTIONS π
-t timeoutβ sets the timeout value (in minutes) that abootpdorbootpgwprocess will wait for a BOOTP packet before exiting. if no packets are received for timeout seconds, then the program will exit. a timeout value of zero means "run forever". in standalone mode, this option is forced to zero. π€-d debug-levelβ sets thedebug-levelvariable that controls the amount of debugging messages generated. for example,-d4or-d 4will set the debugging level to 4. for compatibility with older versions ofbootpd, omitting the numeric parameter (i.e. just-d) will simply increment the debug level by one. iconic behaviour honestly.-c chdir-pathβ sets the current directory used bybootpdwhile checking the existence and size of client boot files. this is useful when client boot files are specified as relative pathnames, andbootpdneeds to use the same current directory as the TFTP server (typically/tftpboot). this option is not recognized bybootpgw. π«-iβ force inetd mode. this option is obsolete, but remains for compatibility with older versions ofbootpd. it's giving legacy, and we respect it. π«Ά-sβ force standalone mode. this option is obsolete, but remains for compatibility with older versions ofbootpd.-vβ print version and exit. short and sweet, main character energy. β¨bootptabβ specifies the name of the configuration file from whichbootpdloads its database of known clients and client options (bootpdonly). default is/etc/bootptab.dumpfileβ specifies the name of the file thatbootpdwill dump its internal database into when it receives aSIGUSR1signal (bootpdonly). this option is only recognized ifbootpdwas compiled with the-DDEBUGflag. π«£serverβ specifies the name of a BOOTP server to whichbootpgwwill forward all BOOTREQUEST packets it receives (bootpgwonly).
π¦ OPERATION π¦
both bootpd and bootpgw operate similarly in that both listen for any packets sent to the bootps port, and both simply forward any BOOTREPLY packets. they differ in their handling of BOOTREQUEST packets. π
when bootpgw is started, it determines the address of a BOOTP server whose name is provided as a command line parameter. when bootpgw receives a BOOTREQUEST packet, it sets the "gateway address" and "hop count" fields in the packet and forwards the packet to the BOOTP server at the address determined earlier. requests are forwarded only if they indicate that the client has been waiting for at least three seconds. patience is a virtue bestie.
when bootpd is started it reads a configuration file, (normally /etc/bootptab) that initializes the internal database of known clients and client options. this internal database is reloaded from the configuration file when bootpd receives a hangup signal (SIGHUP) or when it discovers that the configuration file has changed.
note that any changes to the configuration file should be atomic to avoid race conditions. please, bestie, do not be out here editing files in place, it's giving chaos. π
when bootpd receives a BOOTREQUEST packet, it looks for a database entry matching the client request. if the client is known, bootpd composes a BOOTREPLY packet using the database entry found above, and sends the reply to the client (possibly using a gateway). if the client is unknown, the request is discarded (with a notice if debug > 0).
if bootpd is compiled with the -DDEBUG option, receipt of a SIGUSR1 signal causes it to dump its internal database to the file /tmp/bootpd.dump or the dumpfile specified as a command line parameter.
during initialization, both programs determine the UDP port numbers to be used by calling getservbyname(3) (which normally uses /etc/services). two service names (and port numbers) are used:
bootps - BOOTP Server listening port
bootpc - BOOTP Client destination port
if the port numbers cannot be determined using getservbyname then the values default to boopts=67 and bootpc=68. π
π§ FILES π§
/etc/bootptabβ database file read bybootpd./tmp/bootpd.dumpβ debugging dump file created bybootpd./etc/servicesβ Internet service numbers./tftpbootβ current directory typically used by the TFTP server andbootpd.
π BUGS π
individual host entries must not exceed 1024 characters. that's the limit bestie, do not test it. π
π CREDITS π
this distribution is currently maintained by Walter L. Wimer <walt+@cmu.edu>.
the original BOOTP server was created by Bill Croft at Stanford University in January 1986. vintage!! π
the current version of bootpd is primarily the work of David Kovar, Drew D. Perkins, and Walter L. Wimer, at Carnegie Mellon University.
enhancements and bug-fixes have been contributed by: (in alphabetical order)
Danny Backx <db@sunbim.be>John Brezak <brezak@ch.hp.com>Frank da Cruz <fdc@cc.columbia.edu>David R. Linn <drl@vuse.vanderbilt.edu>Jim McKim <mckim@lerc.nasa.gov>Pauline Middelink <middelin@calvin.polyware.iaf.nl>Martin Schulze <joey@infodrom.north.de>Gordon W. Ross <gwr@mc.com>Jason Zions <jazz@hal.com>
we love a collaborative effort. π«Άβ¨
π SEE ALSO π
DARPA Internet Request For Comments:
RFC951β Bootstrap ProtocolRFC1532β Clarifications and Extensions for the Bootstrap ProtocolRFC1533β DHCP Options and BOOTP Vendor Extensions
and that's the whole page, bestie!! π¦π this is Version 2.4.3, dated 12 November 1995, brought to you by Carnegie Mellon University. go forth and bootstrap, you absolute icon. πβ¨
π¦ where this page comes from
- debian bookworm: bootp 2.4.3-19.1
- debian trixie: bootp 2.4.3-21.1
- ubuntu jammy: bootp 2.4.3-19.1
- ubuntu noble: bootp 2.4.3-19.1
- ubuntu questing: bootp 2.4.3-21.2
- ubuntu resolute: bootp 2.4.3-21.2build1
- ubuntu stonking: bootp 2.4.3-21.2build1
- Copyright (c) 1988, 1989, 1991 Carnegie Mellon University
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms