this is obsolete doc -- see http://doc.nethence.com/ instead
Configuring a DHCP server on RHEL5/6
Make sure you've got this package installed,
rpm -q dhcp
Configure your daemon,
cd /etc/
mv dhcpd.conf dhcpd.conf.dist
cat > dhcpd.conf <<EOF9
allow bootp;
ddns-update-style none;
allow unknown-clients;
subnet 192.168.X.0 netmask 255.255.255.0 {
option domain-name "example.local";
range 192.168.X.10 192.168.X.50;
option subnet-mask 255.255.255.0;
option routers 192.168.X.254;
option domain-name-servers DNS1, 212.27.40.240, 212.27.40.241;
option ntp-servers ntp.obspm.fr;
next-server PXE_SERVER;
filename "pxelinux.0";
#option root-path "/tftpboot";
#filename "/pxeboot_ia32.bin";
}
EOF9
apply,
service dhcpd restart
chkconfig dhcpd on