Skip to content
Contents
GuidesOpenWrt

Serve different PXE boot files to BIOS and UEFI clients on OpenWrt

First, confirm that the network contains only legitimate DHCP servers and identify whether the client is traditional BIOS, UEFI x86-64, or another architecture.

First, confirm that the network contains only legitimate DHCP servers and identify whether the client is traditional BIOS, UEFI x86-64, or another architecture. The filename, server, and image chain are determined by actual deployment. Using a separate VLAN for the test machine makes it easiest to isolate interference.

See request architecture and resend configuration guide

In dnsmasq, use client-specific tag labels to select individual boot files and servers, preventing a global configuration from affecting regular clients. Place TFTP files in a controlled directory. When iPXE fetches via HTTP, separate initial boot from subsequent chainloading to prevent infinite download loops.

Seeing the actual boot file sent in the DHCP reply packet

Boot a BIOS and UEFI virtual machine separately, and test VLAN address assignment, architecture options, and file requests, recording whether independent rules are matched.

Check if the DHCP Offer includes the expected fields, then examine the client's request and the server's response. Test the root filesystem or installation source after successful image boot. After removing test labels and services, regular leases remain usable.

Two types of devices select the correct file; standard DHCP client behavior is maintained. If the wrong file is obtained, first verify the client architecture, then handle the TFTP/HTTP path.

Stage a PXE boot option, inspect the UCI delta, and revert. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Check the terminal output
Stage a PXE boot option, inspect the UCI delta, and revert. · OpenWrt 25.12.6 x86/64 (QEMU/KVM).
Stage a PXE boot option, inspect the UCI delta, and revert. · OpenWrt 25.12.6 x86/64 (QEMU/KVM). Open the original image

Reference

Related guides

Reference

Check the model, region and hardware revision on the label before selecting firmware.

Explore hardware

Comments