How to boot from a PXE server that's on a different network

Applies to: System Center Configuration Manager

Summary


Generally, a client computer boots from the network by using the PXE protocol according to the following process, which involve three parties (the DHCP server, the PXE server, and the client):

  1. The client computer broadcasts a DHCP packet that asks for the address of the DHCP and PXE servers.
  2. The DHCP server responds, sending a broadcast packet that tells the client it is an address server.
  3. The PXE server responds to the client and reports that it's a boot server.
  4. The client sends a request to the DHCP server to ask for the IP address.
  5. The DHCP server sends the IP address to the client.
  6. The client sends a request to the PXE server to ask for the path to the Network Boot Program (NBP).
  7. The PXE server responds, sending the NBP path.
  8. The client downloads and runs the NBP.

After this process, the basic PXE boot is completed, but there will be additional interaction between the client and the PXE server. This is controlled by the NBP implementation. For example, the Windows Deployment Services (WDS) NBP implementation will require the path of a custom boot file (pxeboot.com or bootmgfw.efi). The implementation will download and run the custom boot file. Then, the Windows Imaging Format (WIM) file and other files that Windows PE needs will be downloaded.

The eight steps that were mentioned earlier usually work if the client and the servers are on the same network. However, when the client and servers are on different networks, the recommended method to make sure the client can boot from the network without using DHCP options is to configure the routers. 

Recommended method - the IP helper

The routers have to be able to route the client requests from the network of the client to the network of the DHCP server. One such simple router rule is the "IP helper." The helper just tells the router to forward the DHCP requests to the known IP address of the DHP server. 

For PXE requests, you just need to configure the routers to forward the client request to the PXE server, just like you do with the DHCP server. Locate your router, find the DHCP IP helper entry, and add another entry that looks exactly like the first one but uses the IP address of the PXE server. For more information, see the blog post You want to PXE Boot? Don't use DHCP options.

In addition, you can add an IP helper entry for each PXE server. In a load-balancing scenario (multiple PXE servers), PXE servers can be up or down in a group, and you don't have to do any additional configuration. In diverse environments (Windows, Linux, and Router PXE servers all co-existing), the different PXE servers can selectively respond to the clients that they recognize.

More information


To configure the DHCP server to respond to PXE requests, you might try to add PXE options to the DHCP replies, which results in the client always downloading the network boot file (as specified in the DHCP reply) and running it.

This is problematic in some UEFI settings scenarios. The client may not try to boot from the hard drive after the client was configured to start from a network boot but the network boot failed (for example, there's no task sequence deployment for the client). This is also problematic for mixed-OS environments. Your Linux computer would be instructed by the DHCP server to download and run the Windows network boot program.

So, letting the DHCP server masquerade as a PXE server doesn't work as expected in some scenarios. The true PXE server decides whether it will respond and serve a network boot file. In the Configuration Manager case, the server will only respond if there's a task sequence deployed to the client.