Start by isolating the first failed stage: DHCP offer, UEFI boot-file policy match, TFTP transfer, or firmware handoff. Miss the stage, and you can chase the wrong server for hours while clients keep failing at the same point. This guide uses packet captures to separate discovery, addressing, policy matching, TFTP delivery, and firmware problems for Windows and Linux admins.

What UEFI PXE

UEFI PXE is a preboot network boot path. UEFI PXE typically uses DHCP to locate boot services and then requests a boot file, often over TFTP, before handing control to that file. Failures can happen during discovery, IP assignment, file lookup, or the final handoff into the loader.

Modern PCs often still call UEFI by the name BIOS, which makes the failure look older than it is. UEFI and legacy BIOS often need different boot files, and the DHCP policy that matches one should not be assumed to fit the other.

What you'll need

  • A packet capture on the client VLAN or on the DHCP/PXE server port.
  • Access to DHCP logs and the PXE or TFTP server logs.
  • The DHCP scope or reservation settings that control option 67 and next-server.
  • The boot filenames you intend to serve for BIOS and UEFI clients.
  • Console or firmware access on one failing UEFI client.
  • Admin access to the router or relay if the client boots across a VLAN.

Why does UEFI PXE fail but legacy PXE works?

Legacy PXE can work while UEFI fails when the DHCP policy matches only the BIOS path, or when the UEFI client is given the wrong boot file. The key difference is usually client identification: UEFI clients send a different vendor-class string and often a different architecture code, so the server must answer with the right filename and next-server.

Check the client mode first

  1. Confirm UEFI boot mode. Enter firmware setup and verify the client is set to UEFI boot mode, not legacy mode. If the machine is in the wrong mode, the rest of the PXE chain can look broken when the policy is simply mismatched.
  2. Capture the first DHCP exchange. Filter for DHCP/BOOTP traffic and look for the client identifier, vendor-class string, option 67, and next-server in the offer or ACK. A clean reply should point the UEFI client at the UEFI boot path, not the BIOS file.
  3. Compare the served filename. For UEFI, the boot file is often a UEFI NBP such as bootx64.efi or a loader named ipxe.efi. The exact file depends on your platform and boot chain, so confirm the server’s listing for your model before changing anything.

Say your BIOS clients boot while UEFI clients stop after DHCP. That usually means the scope or policy is matching the wrong class string, not that the network is down.

UEFI PXE troubleshooting matrix

A diagram labels the PXE boot process with connected steps
Label the PXE boot steps to map symptoms to the DHCP, policy, relay, and firmware handoff layers.
Symptom Likely layer Exact packet-capture clue Next test
No DHCP offer Discovery / relay DHCPDISCOVER repeats; no DHCPOFFER from any server Check VLAN relay, scope reachability, and firewall rules
Offer arrives, boot file is wrong Policy match Offer includes option 67 with a BIOS filename for a UEFI client Fix the UEFI class rule and filename mapping
Vendor-class mismatch Policy match Client sends PXEClient:Arch:00007, but server matches a legacy rule Match the UEFI arch code and recheck the reply
Multiple DHCP servers answer Addressing / policy Two DHCPOFFER packets from different servers appear in the same boot Identify the first responder and remove the unwanted PXE reply
VLAN boot fails Relay / proxy DHCP No proxy reply crosses the relay; only normal DHCP appears Check ip helper or relay settings and PXE helper behavior
Secure Boot suspicion Firmware handoff Loader starts, then firmware blocks or returns to the boot menu Test a signed loader path before changing Secure Boot
TFTP timeout File transfer RRQ appears, then repeated retries with no DATA blocks Check TFTP service, filename, and UDP reachability to the server
Post-lease hang Loader / next server Client gets an IP, then fails while contacting the next server Verify next-server and the path to the boot file

How do you check DHCP matches and boot files?

A DHCP vendor classes dialog lists PXEClient entries for UEFI and BIOS
UEFI and BIOS client classes are separated by the vendor-class string and arch code.

Use the packet capture to verify that option 67 and next-server match the UEFI path you intend to serve. The DHCP reply should also match the UEFI vendor-class identifier, including the arch code. In the Arch forum example, UEFI clients are matched with the prefix PXEClient:Arch:00007, while BIOS clients are handled separately.

Verify the server-side rule

  1. Inspect the class match. Confirm the DHCP policy checks the UEFI vendor-class string and arch code, not only a generic PXE string. The example uses PXEClient:Arch:00007 to separate UEFI clients from legacy BIOS clients.
  2. Check option 67 exactly. Make sure the bootfile name points to the correct UEFI loader. A QEMU case study traced a failure to a typo in DHCP option 67, which left the client with an address but no valid file path.
  3. Check next-server with the filename. The same reply should point next-server at the actual PXE or TFTP server. If the filename is right but next-server is wrong, the client can hang after lease acquisition while trying to contact the wrong host.

A common first-timer mistake is to correct option 67 and leave next-server untouched. That still breaks TFTP, because the client asks the wrong host for the file.

Example server-side split

The Arch example serves separate boot files for BIOS and UEFI clients. It also uses next-server to point clients to the PXE server, with a UEFI pool of 192.168.178.221 to 192.168.178.240 and a BIOS pool of 192.168.178.201 to 192.168.178.220. The point is policy matching, not separate scopes by default.

How do you tell if another DHCP server is breaking PXE?

Another DHCP server can interfere with PXE even when the main server appears correct. The capture may show the wrong server answering first, or a normal DHCP server winning before the PXE-aware server can send its proxy data. That can leave the client with an address but no boot instructions.

Check for competing replies

  1. Capture from boot start. Start the packet trace before the client powers on or reboots. You need the first DHCPOFFER, not the one that happens after the client retries.
  2. Identify each responder. Note the server IPs in every offer and ACK. If more than one server replies, compare the boot filename and next-server fields and see which one the client accepted.
  3. Remove the stray PXE path. Disable PXE replies on the wrong server, or move proxy PXE behavior to the intended host. If a normal DHCP server and a PXE proxy both answer, the client may choose the wrong mix.

The QEMU report fits this pattern: the client got an IP, then failed later in network boot because the DHCP server had a typo and option 67 was missing. That kind of failure often looks like a network issue when it is really a bad reply.

How do you fix UEFI PXE over VLAN?

When PXE crosses VLANs, the relay must forward both normal DHCP and any PXE proxy behavior needed for boot file selection. If the relay passes only the lease traffic, the client can get an address and still never receive the right boot instructions. This is a common place for proxy-DHCP edge cases.

Check the relay path

  1. Verify the helper configuration. On the router or switch SVI, confirm the DHCP relay points to the correct server and that PXE-related relay behavior is enabled where your platform requires it.
  2. Inspect the first hop packets. You should see the discover reach the relay and the offer return across the same path. If the capture on the client VLAN shows discover packets but no PXE reply, the relay is the next place to check.
  3. Test with a known filename. Serve a simple, valid UEFI file path and confirm the client reaches TFTP. If the VLAN path works only after that change, the issue was relay or helper logic, not firmware.

Suppose the client boots on the local subnet but fails from a remote VLAN. That points to the relay or proxy layer, not the firmware, because the UEFI client already proved it can talk to the server when the path is direct.

How do I troubleshoot UEFI PXE when Secure Boot is disabled?

Disabled Secure Boot does not clear every PXE failure. UEFI can still fail to boot from network even when Secure Boot is off, so treat Secure Boot as a later check, not the first diagnosis. If DHCP, option 67, next-server, or TFTP are wrong, the loader never gets far enough for Secure Boot to matter.

Move Secure Boot later in the chain

  1. Fix DHCP first. Confirm the UEFI client gets the right vendor-class match, option 67, and next-server. If that is wrong, changing Secure Boot will not change the packet flow.
  2. Check TFTP or alternate delivery. If the server uses TFTP, confirm the RRQ reaches the server and the file name exists. Some UEFI environments use HTTP Boot or vendor-specific paths, but do not switch to that until the standard PXE path is verified.
  3. Test a signed loader path. If the file transfers and the firmware still returns to setup or halts, test a known signed boot loader for that platform. That is the point where Secure Boot becomes relevant.

Common mistakes

  • Changing Secure Boot before checking DHCP logs.
  • Serving the BIOS boot file to a UEFI client.
  • Setting option 67 without fixing next-server.
  • Ignoring the UEFI arch code and matching only a generic PXE string.
  • Forgetting that a second DHCP server can answer first.
  • Assuming a VLAN problem is firmware when the relay is blocking PXE replies.
  • Serving ipxe.efi without a short script or handoff rule, which can create a loop back to PXE.

Keep the boot path simple. If you use iPXE, point UEFI clients to ipxe.efi and give it a short script that chooses the next loader once. That avoids boot loops and makes the capture easier to read.

Keep reading

Frequently asked questions

What DHCP options are required for UEFI PXE boot?

At minimum, the server needs to hand out a lease, the correct UEFI boot filename in option 67, and the right next-server address. For UEFI matching, the vendor-class string and arch code should also be used so the client receives the UEFI loader instead of the BIOS file.

What vendor-class identifier should I match for UEFI PXE?

Match the UEFI vendor-class prefix PXEClient:Arch:00007 for the common UEFI client case in the forum example. Pair that with the client’s boot architecture match, then confirm the DHCP reply sends the UEFI filename and next-server for that class.

What boot file should I serve for UEFI PXE clients?

Serve the UEFI loader your platform expects, such as a UEFI NBP or ipxe.efi if you are using iPXE. Confirm the exact filename on the server side before changing the client, because the wrong file name in option 67 is enough to stop the chain.

Can iPXE help fix UEFI network boot problems?

iPXE can help when the native PXE path is fragile or needs more control. Use ipxe.efi as the UEFI loader and a short script that points once to the real install or boot target. That keeps the firmware from looping back into the same PXE request.

Why does the client say it cannot resolve the hardware address during PXE?

That message often means the client cannot complete the naming or address step needed to continue booting. Check the DHCP reply, option 67, next-server, and the relay path first. If the client gets an IP but then stalls, the failure is usually after discovery, not before it.