BOOTP

Also known as: Bootstrap Protocol

On this page 7

BOOTP, the Bootstrap Protocol, is a client-server network protocol that allows a host to obtain its IP address, the address of a boot server and the name of a boot file automatically at startup. Defined in RFC 951 in 1985, BOOTP was designed for diskless workstations that had no local storage for configuration and needed to load an operating system image over the network.

In address configuration, BOOTP is the direct ancestor of DHCP, which reuses its message format and UDP ports. Unlike DHCP, BOOTP assigns addresses from a static table maintained by an administrator and offers no leases, so each client receives the same address permanently.

How the BOOTP exchange works

A BOOTP exchange is a single request and reply carried over UDP, with the client on port 68 and the server on port 67. Because the client does not yet know its own IP address, it sends a BOOTREQUEST from source address 0.0.0.0 to the limited broadcast address 255.255.255.255, identifying itself by its hardware (MAC) address.

The server looks up that hardware address in its configuration table. If a matching entry exists, it returns a BOOTREPLY containing the assigned address in the yiaddr field, the boot server address in siaddr and the boot file name in the file field. The client then typically downloads that file with TFTP and starts the operating system.

The table below summarizes the most important fields of the fixed-length BOOTP message.

FieldSizeMeaning
op1 byte1 for request, 2 for reply
xid4 bytesTransaction ID that matches reply to request
ciaddr4 bytesClient address, if already known
yiaddr4 bytesAddress assigned to the client
siaddr4 bytesAddress of the next boot server
giaddr4 bytesRelay agent address
chaddr16 bytesClient hardware address
file128 bytesBoot file name
vend64 bytesVendor-specific area, later used for options
Key fields of a BOOTP message

BOOTP relay agents and vendor extensions

BOOTP crosses router boundaries through relay agents, because routers do not forward limited broadcasts. A relay agent on the client subnet receives the broadcast request, writes its own interface address into giaddr, and forwards the message as unicast to a configured server. The server uses giaddr to determine the client subnet and sends the reply back through the relay.

The original 64-byte vendor area was later structured by RFC 1497 and RFC 1533 into a list of tagged options that begins with the magic cookie 99.130.83.99. These options carry values such as the subnet mask, default router and DNS servers. The same option format, with an enlarged area, became the basis of DHCP options.

Option codeNamePurpose
1Subnet maskNetwork prefix of the client
3RouterDefault gateway address
6Domain name serverDNS resolver addresses
12Host nameName assigned to the client
255EndMarks the end of the option list
Common BOOTP vendor extensions

BOOTP compared with DHCP and RARP

BOOTP sits between the older RARP and the newer DHCP in the history of automatic address assignment. RARP only returned an IP address and worked at the link layer, so it could not cross routers. BOOTP added boot information and relay support, and DHCP extended BOOTP with dynamic pools, leases and a four-message exchange.

PropertyRARPBOOTPDHCP
TransportLink layerUDP 67 and 68UDP 67 and 68
Address allocationStatic tableStatic tableStatic, automatic or dynamic
LeasesNoneNoneTime-limited leases
Crosses routersNoYes, through relaysYes, through relays
Configuration dataIP address onlyAddress, boot file, basic optionsExtensive options
MessagesRequest and replyRequest and replyDiscover, offer, request, acknowledge
Address assignment protocols compared

Because the formats are compatible, DHCP servers can answer BOOTP clients, usually by assigning addresses from a dedicated range with an infinite lease. The reverse is not true: a pure BOOTP server ignores DHCP-specific message types.

Where BOOTP still appears today

BOOTP is largely obsolete as a standalone protocol, yet its message format survives in every DHCP packet, and some environments still depend on it explicitly. Network engineers meet BOOTP mainly in legacy industrial equipment, older printers and embedded devices whose firmware predates DHCP.

  • Industrial automation: some programmable controllers and I/O modules ship with BOOTP enabled for initial addressing.
  • Network boot: PXE builds on the DHCP extension of the BOOTP format to deliver boot files.
  • Router configuration: the ip helper-address feature on many routers is still described as BOOTP relay.
  • Firewall rules: UDP ports 67 and 68 are often labeled bootps and bootpc.

Limitations and security concerns of BOOTP

The central limitation of BOOTP is that every client must be preconfigured on the server, which makes it impractical for networks with laptops, phones or frequent hardware changes. Addresses are never reclaimed, so address space is wasted when devices leave the network.

BOOTP also has no authentication. Any host on the segment can answer a request, which allows a rogue server to hand out false gateway or boot file information. The table below pairs typical problems with their causes and remedies.

SymptomLikely causeFix
Client receives no replyMissing table entry for its MAC addressAdd a static mapping on the server
Remote clients failNo relay agent on the client subnetConfigure a BOOTP or DHCP relay
Wrong gateway assignedRogue server on the segmentEnable DHCP snooping on switches
Device ignores DHCP poolFirmware supports BOOTP onlyCreate a BOOTP-compatible reservation
Typical BOOTP problems and fixes

Put simply

BOOTP is an old way for a computer to ask the network who it is when it switches on. The computer shouts its hardware serial number, and a server checks a list and answers with the computer’s network address and where to find its startup files.

It works like a hotel reception desk with a fixed guest list: if your name is on the list, you get your room key, and if not, you get nothing. Its modern successor, DHCP, hands out addresses automatically to anyone who arrives.

In practice

A packaging plant replaces a failed I/O module on a production line. The new module arrives with BOOTP enabled and no IP address, and the line controller expects it at 192.168.10.45. The automation technician opens a BOOTP server utility on a laptop connected to the control network.

The utility shows a request from the module’s MAC address. The technician maps that address to 192.168.10.45 with subnet mask 255.255.255.0, the module accepts the reply, and the technician then disables BOOTP in the module so that it keeps the address after power cycles. The line resumes production within minutes without reprogramming the controller.