Determine whether the DHCP server package is already installed on the server.
# rpm -qa | grep dhcp-
If the DHCP server package is not listed, install the DHCP server.
a. Mount the CD/DVD drive. Type the command:
# mount /dev/cdrom /mnt/cdrom
b. Install the DHCP server.
■
For RHEL 4.8, insert the DVD or CD5 and type:
# rpm -Uvh /mnt/cdrom/RedHat/RPMS/dhcp-*.rpm
■
For RHEL 5.3, insert the DVD or CD4 and type:
# rpm -Uvh /mnt/cdrom/Server/dchp*
■
For SLES10 SP2, insert DVD1 or CD2 and type:
# rpm -Uvh /mnt/cdrom/suse/x86_64/dhcp*
■
For SLES11, insert DVD1 and type:
# rpm -Uvh /mnt/cdrom/suse/x86_64/dhcp*
c. Unmount the CD/DVD drive.Type:
# umount /dev/cdrom /mnt/cdrom
d. Remove the CD or DVD from the CD/DVD drive.
Set up your DHCP conguration le (for example, /etc/dhcpd.conf) so that only PXEClient
requests receive PXEClient responses.
Note – If the server does not already have a dhcpd.conf le in its /etc directory, you can copy
the dhcpd.conf le from the sample DHCP conguration le in the /tmp/rhel4u3-pxefiles
directory.
Add the following entry to the DHCP conguration le (refer to the dhcpd.conf man page for
more information):
class "PXE" {match if substring(option vendor-class-identifier, 0, 9) ="PXEClient";
option vendor-class-identifier "PXEClient"; vendor-option-space PXE; next-server
n.n.n.n}
where n.n.n.n is the PXE server’s IP address.
In the DHCP conguration le, edit the server-identifier entry:
server-identifier n.n.n.n
2
3
4
5
Overview of PXE Servers
43