BOOTPTAB(5)
π bootptab(5) β the tea on your BOOTP server's little black book π
okay so bestie, pull up a chair β this is the manual page for bootptab, and it comes to you straight from Carnegie Mellon University πβ¨. It's giving β¨ancient internet loreβ¨ but fr fr it still slaps.
πΈ NAME πΈ
bootptab β the Internet Bootstrap Protocol server database. Basically the config file where bootpd keeps everyone's info. π«Ά
π¦ DESCRIPTION π¦
So the bootptab file is the configuration database file for bootpd, the Internet Bootstrap Protocol server. Its format is similar to that of termcap(5), where you use two-character, case-sensitive tag symbols to represent host parameters. No cap, case matters. π
These parameter declarations get separated by colons (:), and the general format goes like this:
hostname:tg=value... :tg=value... :tg=value. ...
where hostname is the actual name of a bootp client (or a "dummy entry"), and tg is a two-character tag symbol. π
Dummy entries have an invalid hostname β specifically one with a . as the first character β and they exist to provide default values that other entries can borrow via the tc=.dummy-entry mechanism. Cute, right? It's giving β¨template energyβ¨.
Most tags must be followed by an equals-sign and a value, like above. Some may also show up in a boolean form with no value at all, i.e. :tg:. π
Here are the currently recognized tags, and yes, we're doing all of them, no skipping:
bfβ Bootfilebsβ Bootfile size in 512-octet blockscsβ Cookie server address listdfβ Merit dump filedlβ DHCP lease time in secondsdnβ Domain namedsβ Domain name server address listefβ Extension fileexβ York ex option (huh?)gwβ Gateway address listhaβ Host hardware addresshdβ Bootfile home directoryhnβ Send client's hostname to clienthtβ Host hardware type (see Assigned Numbers RFC)imβ Impress server address listipβ Host IP addresslgβ Log server address listlpβ LPR server address listmsβ Message sizensβ IEN-116 name server address listntβ NTP (time) Server (RFC 1129)raβ Reply address overriderlβ Resource location protocol server address listrpβ Root path to mount as rootsaβ TFTP server address client should usesmβ Host subnet maskswβ Swap server addresstcβ Table continuation (points to similar "template" host entry)tdβ TFTP root directory used by "secure" TFTP serverstoβ Time offset in seconds from UTCtsβ Time server address listvmβ Vendor magic cookie selectorydβ YP (NIS) domain nameysβ YP (NIS) server address
There's also a generic tag, Tn, where n is an RFC1084 vendor field tag number. Which means β and this is the slay part β you can immediately take advantage of future extensions to RFC1084 without being forced to modify bootpd first. π
β¨
Generic data may be represented as either a stream of hexadecimal numbers or as a quoted string of ASCII characters. The length of the generic data is automatically determined and inserted into the proper field(s) of the RFC1084-style bootp reply. She's automatic, she's efficient, she's iconic. π
π IP address tags, bestie π
The following tags take a whitespace-separated list of IP addresses: cs, ds, gw, im, lg, lp, ns, nt, ra, rl, and ts.
The ip, sa, sw, sm, and ys tags each take a single IP address.
All IP addresses are specified in standard Internet "dot" notation and may use decimal, octal, or hexadecimal numbers (octal numbers begin with 0, hexadecimal numbers begin with 0x or 0X). Any IP addresses may alternatively be specified as a hostname, which causes bootpd to lookup the IP address for that host name using gethostbyname(3).
If the ip tag is not specified, bootpd will determine the IP address using the entry name as the host name. (Dummy entries use an invalid host name to avoid automatic IP lookup.) π
π ht and ha, the hardware besties π
The ht tag specifies the hardware type code as either an unsigned decimal, octal, or hexadecimal integer, or one of these symbolic names:
ethernetoretherβ for 10Mb Ethernetethernet3orether3β for 3Mb experimental Ethernetieee802,tr, ortoken-ringβ for IEEE 802 networkspronetβ for Proteon ProNET Token Ringchaos,arcnet, orax.25β for Chaos, ARCNET, and AX.25 Amateur Radio networks, respectively
The ha tag takes a hardware address which may be specified as a host name or in numeric form. Heads up: the numeric form must be specified in hexadecimal; optional periods and/or a leading 0x may be included for readability. πΈ
Important, bestie: thehatag must be preceded by thehttag (either explicitly or implicitly; seetcbelow). Noht, noha, periodt.
If the hardware address is not specified and the type is specified as either "ethernet" or "ieee802", then bootpd will try to determine the hardware address using ether_hton(3). She'll figure it out herself, ngl. π
π¦ Bootfile logic (the way that it works) π¦
The hostname, home directory, and bootfile are ASCII strings which may be optionally surrounded by double quotes ("). The client's request and the values of the hd and bf symbols determine how the server fills in the bootfile field of the bootp reply packet.
- If the client provides a file name, it is left as is. π«Ά
- Otherwise, if the
bfoption is specified, its value is copied into the reply packet. - If the
hdoption is specified as well, its value is prepended to the boot file copied into the reply packet.
The existence of the boot file is checked only if the bs=auto option is used (to determine the boot file size). A reply may be sent whether or not the boot file exists. Live your truth, server. β¨
π td, tftpd, and the chroot situation π
Some newer versions of tftpd(8) provide a security feature to change their root directory using the chroot(2) system call. The td tag may be used to inform bootpd of this special root directory used by tftpd. (One may alternatively use the bootpd -c chdir option.)
The hd tag is actually relative to the root directory specified by the td tag. For example, if the real absolute path to your BOOTP client bootfile is /tftpboot/bootfiles/bootimage, and tftpd uses /tftpboot as its "secure" directory, then specify the following in bootptab:
:td=/tftpboot:hd=/bootfiles:bf=bootimage:
If your bootfiles are located directly in /tftpboot, use:
:td=/tftpboot:hd=/:bf=bootimage:
β¨ sa, to, bs, vm, and hn β¨
The sa tag may be used to specify the IP address of the particular TFTP server you wish the client to use. In the absence of this tag, bootpd will tell the client to perform TFTP to the same machine bootpd is running on. Default behaviour, she's self-sufficient. π
The time offset to may be either a signed decimal integer specifying the client's time zone offset in seconds from UTC, or the keyword auto which uses the server's time zone offset. Specifying the to symbol as a boolean has the same effect as specifying auto as its value. π
The bootfile size bs may be either a decimal, octal, or hexadecimal integer specifying the size of the bootfile in 512-octet blocks, or the keyword auto which causes the server to automatically calculate the bootfile size at each request. As with the time offset, specifying the bs symbol as a boolean has the same effect as specifying auto as its value.
The vendor magic cookie selector (the vm tag) may take one of the following keywords:
autoβ indicating that vendor information is determined by the client's requestrfc1048orrfc1084β which always forces an RFC1084-style replycmuβ which always forces a CMU-style reply
The hn tag is strictly a boolean tag; it does not take the usual equals-sign and value. Its presence indicates that the hostname should be sent to RFC1084 clients. bootpd attempts to send the entire hostname (including domain) as it is specified in the configuration file; if this will not fit into the reply packet, the name is shortened to just the host field (up to the first period, if present) and then tried. In no case is an arbitrarily-truncated hostname sent (if nothing reasonable will fit, nothing is sent). She'd rather send nothing than send something ugly. Periodt. π
πΈ tc β the table continuation icon πΈ
Often, many host entries share common values for certain tags (such as name servers, etc.). Rather than repeatedly specifying these tags, a full specification can be listed for one host entry and shared by others via the tc (table continuation) mechanism. Often, the template entry is a dummy host which doesn't actually exist and never sends bootp requests.
This feature is similar to the tc feature of termcap(5) for similar terminals. But note: bootpd allows the tc tag symbol to appear anywhere in the host entry, unlike termcap which requires it to be the last tag. Main character behaviour, honestly.
Information explicitly specified for a host always overrides information implied by a tc tag symbol, regardless of its location within the entry. The value of the tc tag may be the hostname or IP address of any host entry previously listed in the configuration file. π
π the @ delete trick π
Sometimes it is necessary to delete a specific tag after it has been inferred via tc. This can be done using the construction tag@ which removes the effect of tag as in termcap(5).
For example, to completely undo an IEN-116 name server specification, use :ns@: at an appropriate place in the configuration entry. After removal with @, a tag is eligible to be set again through the tc mechanism. Not me deleting my own lore just to re-add it later π
π§ File format rules, bestie π§
- Blank lines and lines beginning with
#are ignored in the configuration file. π - Host entries are separated from one another by newlines; a single host entry may be extended over multiple lines if the lines end with a backslash (
\). - It is also acceptable for lines to be longer than 80 characters. No line-length gatekeeping here. π
- Tags may appear in any order, with the following exceptions:
- the hostname must be the very first field in an entry
- the hardware type must precede the hardware address
Those two exceptions are non-negotiable, bestie. Hostname first, hardware type before hardware address. That's the vibe check. π
β the example, and yes it's a whole moment β
An example /etc/bootptab file follows:
# Sample bootptab file (domain=andrew.cmu.edu)
.default:\
:hd=/usr/boot:bf=null:\
:ds=netserver, lancaster:\
:ns=pcs2, pcs1:\
:ts=pcs2, pcs1:\
:sm=255.255.255.0:\
:gw=gw.cs.cmu.edu:\
:hn:to=-18000:
carnegie:ht=6:ha=7FF8100000AF:tc=.default:
baldwin:ht=1:ha=0800200159C3:tc=.default:
wylie:ht=1:ha=00DD00CADF00:tc=.default:
arnold:ht=1:ha=0800200102AD:tc=.default:
bairdford:ht=1:ha=08002B02A2F9:tc=.default:
bakerstown:ht=1:ha=08002B0287C8:tc=.default:
# Special domain name server and option tags for next host
butlerjct:ha=08002001560D:ds=128.2.13.42:\
:T37=0x12345927AD3BCF:\
:T99="Special ASCII string":\
:tc=.default:
gastonville:ht=6:ha=7FFF81000A47:tc=.default:
hahntown:ht=6:ha=7FFF81000434:tc=.default:
hickman:ht=6:ha=7FFF810001BA:tc=.default:
lowber:ht=1:ha=00DD00CAF000:tc=.default:
mtoliver:ht=1:ha=00DD00FE1600:tc=.default:
Look at .default doing all the heavy lifting and every other host just saying tc=.default β that's β¨delegationβ¨ and it ate. π₯
π FILES π
/etc/bootptabβ The definition file
π SEE ALSO π
okay that's the whole page bestie, you're basically a BOOTP server admin now π«Άβ¨
This lil icon of a manual page comes from the 4.3 Berkeley Distribution, dated 12 November 1995 β vintage, nostalgic, and still serving looks. π πΈ No cap.
π¦ 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