
60
There needs to be one entry for each MAC address in the "group" section of the file. A
sample
dhcpd.conf
configuration file is shown here:
authoritative;
ddns-update-style interim;
option domain-name "ammasso.com";
shared-network lab {
# cn0 subnet
subnet 10.40.48.0 netmask 255.255.240.0 {
option routers 10.40.48.1;
option broadcast-address 10.40.63.255;
option domain-name-servers 10.40.48.1;
option subnet-mask 255.255.240.0;
use-host-decl-names true;
host sqa-14-cn0 {
fixed-address 10.40.48.171;
hardware ethernet 00:0D:B2:00:06:72;
filename "/pxelinux.0";
}
}
}
7.6 Installing and Configuring a TFTP Server
You will need a TFTP (Trivial File Transfer Protocol) server that supports the "
tsize
"
option. The one we used is Peter Anvin's tftp server:
http://www.kernel.org/pub/software/network/tftp/tftp-hpa-
0.36.tar.gz
We recommend that you ensure that your external firewall blocks port 69 for both UDP and
TCP since tftp has no security.
We made a world readable directory
/tftpboot
for the TFTP daemon to serve files from.
To enable it on RedHat, which uses
xinetd
, we created
/etc/xinetd.d/tftpd
, with
the following contents:
service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/local/sbin/in.tftpd
server_args = -s /tftpboot
port = 69
}
Restart
xinetd
after adding the daemon.