You are on page 1of 1

Creating a dhcpd.

conf File
dhcpd reads its configuration from the /etc/dhcpd.conf file. The dhcpd.conf file identifies the
clients to the server, and defines the configuration that the server provides each client. The
sample dhcpd.conf file shown in Listing 8.1 dynamically assigns IP addresses to the DHCP
clients on a subnet, and supports a few clients that require static addresses.
Listing 8.1: A Sample dhcpd.conf File
# Define global values that apply to all systems.
maxleasetime 604800;
defaultleasetime 86400;
option subnetmask 255.255.255.0;
option domain "foobirds.org";
option domainnameservers 172.16.55.1, 172.16.5.1;
option popserver 172.16.18.1;
# Define the dynamic address range for the subnet.
subnet 172.16.55.0 netmask 255.255.255.0 {
option routers 172.16.55.1;
option broadcastaddress 172.16.55.255;
range 172.16.55.64 172.16.55.192;
range 172.16.55.200 172.16.55.250;
}
# Use host statements for clients that get static addresses
group {
usehostdeclnames true;
host kestrel {
hardware ethernet 00:80:c7:aa:a8:04;
fixedaddress 172.16.55.4;
}
host ibis {
hardware ethernet 00:00:c0:a1:5e:10;
fixedaddress 172.16.55.16;
}

You might also like