Friday 24 June 2011

Basic DHCP configuration for PXE

Setup DHCP for others network and let client boot the image from the PXE boot server.

# vi /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
authoritative;

subnet 192.168.8.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.8.254;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.8.255;
# --- NIS configuration
option nis-domain "RFAQANIS";
option nis-servers 192.168.8.150;
# --- Domain name configuration
option domain-name "RFAQANIS";
option domain-name-servers 10.42.33.25;
# --- Other configuration
option time-offset -18000; # Eastern Standard Time
# --- Dynamic ip provided only for diskless server
range dynamic-bootp 192.168.8.86 192.168.8.91;
default-lease-time 21600;
max-lease-time 43200;
}

allow booting;
allow bootp;

# PXE-spcecific configuration directories...
next-server [PXE-server-IP];
filename "pxelinux.0";