Legacy Boot
The classic legacy boot, also known as BIOS boot, is the traditional system start procedure for older systems and differs fundamentally from modern UEFI implementations. With legacy boot, the system still starts up according to the classic BIOS principle, which does not use a cryptographic verification procedure such as Secure Boot. Instead, a boot sector is loaded directly from a data carrier or via the network and executed.
In contrast to the UEFI model, legacy boot works with a fixed memory address and 16-bit initialisation of the CPU. This makes the boot process simpler, but also less flexible and secure. There is no signature verification of boot loaders or kernels, because the BIOS simply executes the code located in the boot sector or in the file loaded via PXE.
PXE boot process in legacy mode
When PXE starts via BIOS, the network adapter's PXE ROM is initialised first. It requests an IP address via DHCP and, in the same process, receives info about the boot server and the name of the boot file to be loaded (e.g. pxeboot.n12).
The continuing process typically proceeds as follows:
- BIOS initialisation: The system initialises the hardware and transfers control to the network interface with the PXE ROM activated.
- DHCP request: The PXE client sends a DHCPDISCOVER request to obtain an IP address and boot parameters.
- TFTP download: After successful DHCP exchange, the client loads the specified boot file (e.g. pxeboot.n12) from the Server via the TFTP protocol.
- Bootloader execution: The BIOS transfers control to the loaded bootloader, which then loads additional components (e.g. kernel, initrd, menu files).
- System start: The bootloader starts the operating system based on the parameters specified in the configuration (e.g. pxelinux.cfg/default).
Preparation of the bootloader
First, download the current version from the official SYSLINUX project website:
https://wiki.syslinux.org/wiki/index.php?title=SYSLINUX
Unzip the archive. From this ZIP file, you will need the following files, which you should copy to the root directory of your PXE folder:
- pxelinux.0 (in the path bios/core/pxelinux.0 relative to the unzipped ZIP) – this is the main boot loader for Legacy BIOS + PXE. This file must be renamed to pxeboot.n12.
- ldlinux.c32 (in the path bios/com32/elflink/ldlinux/ldlinux.c32) – a core module (COM32) from SYSLINUX that supports the loading of additional modules or extensions.
- libutil.c32 (in the path bios/com32/libutil/libutil.c32) - a library/utility module file within the COM32 modules that provides general utility functions for other modules.
- menu.c32 (in the path bios/com32/menu/menu.c32) - a module for displaying a text menu during boot; if, for example, DEFAULT menu.c32 is set in the configuration file, this menu module is started.
Place these files directly in the root directory of your PXE folder. This ensures that the boot loader and modules are correctly accessible via TFTP during the PXE boot process. A note on this is in the official documentation.
├── pxeboot.n12
├── ldlinux.c32
├── libutil.c32
└── menu.c32
Creating the configuration folder
Next, create a subfolder named pxelinux.cfg in the PXE folder. The boot configuration files for PXELINUX will later be stored in the pxelinux.cfg directory. Typically, this directory is created directly under the TFTP root or in the directory where the pxeboot.n12 file is located.
Structure of the boot configuration files
Create the boot configuration files in the pxelinux.cfg folder. A specific naming and search logic applies here, which controls the behaviour of your PXE boot server:
- default: This is the standard configuration file. If no more specific file is found for a Client (e.g. based on MAC or IP), this file is used. Usually stored as pxelinux.cfg/default.
- 01-<MAC address>: A file for exactly one specific Client, identified by its MAC address. The naming convention begins with 01-, followed by the MAC address in lower case letters, with hyphens instead of colons. Example: 01-23-45-67-89-AB. This allows a single machine to be assigned its own boot configuration.
- <IP-Hex>: A file based on the Client's IP address. The IP address is used in hexadecimal form (e.g. for 192.168.1.1 → C0A80101). This variant allows configuration based on IP address or subnet (hpc.temple.edu).
- <IP-TeilHex>: Shorter variants of the IP hex address. If no file with the full IP hex is found, PXELINUX attempts to evaluate shorter versions (e.g. only the upper bytes) of the IP in hexadecimal form. This enables a type of ‘subnet configuration’ via the file names (hpc.temple.edu).
Order of the search process
When a client boots, PXELINUX searches the pxelinux.cfg directory for configuration files in the following order:
- File based on the MAC address (i.e. 01-<MAC>)
- File based on the full IP in hexadecimal form (<IP-Hex>)
- File based on abbreviated IP in hex (e.g. only the upper bytes <IP-partHex>)
- Default file
This order ensures that the most specific configuration is used first. If no suitable file is found, the default configuration is used (hpc.temple.edu).
Purpose of the mechanisms
- The file containing the MAC address enables an individual boot configuration to be assigned precisely to a specific piece of hardware.
- The file containing the IP address (or parts thereof) allows group configurations or assignments according to network or subnet.
- The default file ensures that each client receives at least one boot configuration if no specialised file is available.
- By combining these mechanisms, certain Clients can be treated differently in a flexible manner, while others fall back on a generic configuration.
- For most simple scenarios, it is sufficient to create a single default file. This provides a uniform configuration for all Clients.
Example configuration (standard variant)
In a simplified setup, a single configuration file called default is used to distribute a general boot configuration for all Clients. Create a file called default in the pxelinux.cfg directory and enter the following basic structure, for example:
MENU TITLE Netzwerk-Boot
TIMEOUT 50
PROMPT 0
LABEL local
MENU LABEL Boot von lokale Festplatte
LOCALBOOT 0xffff
This structure displays a simple menu that uses the menu.c32 module (‘DEFAULT menu.c32’) and defines local booting as the default entry. You can extend this template with additional items, kernel, Init-RD and other options. If you now start from this configuration, you will see the following screen and the boot would start automatically from the local disk after 5 seconds.

Legacy Boot boot screen

