Skip to content

DHCP server options

When the Cloudflare One Appliance is configured as the DHCP server for a LAN, you can attach custom DHCP options to the leases it issues. This is commonly used for:

  • PXE / iPXE boot of workstations or kiosks (options 66, 67, 60, 43, 175, 209–211).
  • VoIP phone provisioning (option 66 — TFTP server).
  • Vendor-specific client configuration (option 43 with vendor sub-options).

DHCP options can only be configured when the appliance is acting as the DHCP server. They have no effect when the appliance is in DHCP relay mode.

DHCP options are configured via the API and Terraform.

Option format

Each option is defined by three fields:

FieldDescriptionExample
option_numberThe DHCP option code (1–254).67
typeThe value encoding: text, integer, hex, ip.text
valueThe option value, encoded per type.boot/x64/pxelinux.0

Value type encoding

TypeFormatExample value
ipA dotted-quad IPv4 address.10.20.30.40
integerA decimal integer.0
textA UTF-8 string.boot/x64/pxelinux.0
hexA colon-separated sequence of bytes, used for sub-options.01:04:aa:bb:cc

Common PXE / iPXE options

The most frequently used options for PXE / iPXE boot are:

OptionTypePurpose
60textVendor class identifier (typically PXEClient).
66ip or textTFTP server name or IP address (boot server).
67textBootfile name to load (for example ipxe.pxe or undionly.kpxe).
43hexVendor-specific information; sub-option layout is vendor-defined.
175hexiPXE-specific encapsulated options (HTTP/HTTPS boot, iSCSI, DNS, and more).
209textiPXE configuration file URI.
210textiPXE configuration file path prefix.
211textiPXE configuration file path.

For a complete list of standard DHCP option codes, refer to the IANA BOOTP/DHCP parameters registry.

Validation and apply behavior

Before applying a new DHCP options configuration, the appliance:

  1. Stages the change to a temporary configuration file.
  2. Validates the syntax with the underlying DHCP server.
  3. On success, atomically swaps the staged configuration into place and reloads the DHCP server with no service interruption.
  4. On failure, discards the change and returns the underlying validation error to the API caller. The live DHCP service is never restarted with an unverified configuration.

This means a malformed option will be rejected at apply-time rather than disrupting DHCP service for clients on the LAN.