Home

Setting up DHCPd to work with PXE

The dhcpd.conf should look something like this:

 option routers 192.168.0.1;
 server-identifier 192.168.0.1;
 next-server 192.168.0.1;

 default-lease-time 600;
 max-lease-time 7200;

 subnet 192.168.0.0 netmask 255.255.255.0 {
        range 192.168.0.10 192.168.0.254;
        option root-path "/usr/local/export/pxe";
        filename "pxeboot";
 }

This is using the 192.168.0.0/24 subnet but only leaseing 192.168.0.10-254. There are 3 thing that are important here. The next-server line tells the PXE boot loader the IP of the NFS mount. The option root-path statement is the NFS mount path. And last but not least the filename statment tells the PXE loader the name of the boot loader to use.

This is designed to be on a dedicated network interface that only connects to the network that will be used for the PXE loading of servers or a network that doesn't already have a DHCP server.

This assumes that you aren't alreadying using 192.168.0.0/24 for something and that the PXE Boot server will also be the optional gateway to the internet.

PXE:DHCPd (last edited 2008-06-17 21:38:23 by localhost)