System information
Chapter 3. Installation of Red Hat Linux 7.3 and IBM Director Agent 43
3. Install the DHCP server using rpm -ivh dhcp-2.0pl5-8.i386.rpm.
4. Copy the sample DHCP server configuration file to the /etc directory using cp
/usr/share/doc/dhcp-2.0pl5/dhcpd.conf.sample /etc/dhcpd.conf
5. Edit the /etc/dhcpd.conf file to make it look like Example 3-10.
Example 3-10 /etc/dhcpd.conf file for PXE boot
subnet 192.168.0.0 netmask 255.255.255.0 {
# --- default gateway
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option nis-domain "itso.ral.ibm.com";
option domain-name "itso.ral.ibm.com";
option domain-name-servers 192.168.0.1;
option time-offset -18000; # Eastern Standard Time
option dhcp-class-identifier "PXEClient";
option vendor-encapsulated-options ff;
range dynamic-bootp 192.168.0.128 192.168.0.255;
default-lease-time 21600;
max-lease-time 43200;
}
}
Replace the IP addresses of the default gateway (option routers) and
domain-name-servers, and the domain-names with the correct value for your network.
6. Start the DHCP server using service dhcpd start. If you want, test to verify that the
DHCP server is working.
7. Download from the updates section on the Red Hat FTP site or any of its mirrors the latest
version of the PXE package. In our case it is pxe-0.1-31.99.7.3.i386.rpm.
8. Install the PXE using rpm -ivh pxe-0.1-31.99.7.3.i386.rpm.
9. Add the following lines to the end of the /etc/services file:
Example 3-11 Lines required in /etc/services for PXE boot
mtftp 1759/udp
pxe 67/udp
pxe 4011/udp
10.Add the following lines to /etc/xinetd.conf before the includedir /etc/xinetd.d line:
Example 3-12 Configuration of the PXE FTP server in /etc/xinetd.conf
service mtftp
{
socket_type = dgram
wait = yes
user = root
server = /usr/sbin/in.mtftpd
server_args = /tftpboot
}