Contents
What do you need to know about the dhcpd conf file?
Description. The dhcpd.conf file contains configuration information for dhcpd, the Internet Systems Consortium DHCP Server. The dhcpd.conf file is a free-form ASCII text file. It is parsed by the recursive-descent parser built into dhcpd. The file may contain extra tabs and newlines for formatting purposes.
Where can I find the DHCP configuration file?
The sample configuration file can be found at /usr/share/doc/dhcp-version/dhcpd.conf.sample. You should use this file to help you configure /etc/dhcp/dhcpd.conf, which is explained in detail below. DHCP also uses the file /var/lib/dhcpd/dhcpd.leases to store the client lease database.
When does address allocation in dhcpd take place?
Address allocation is actually only done when a client is in the INIT state and has sent a DHCPDISCOVER message.
Where does range declaration appear in dhcpd conf?
If clients on a subnet are to be assigned addresses dynamically, a range declaration must appear within the subnet declaration. For clients with statically assigned addresses, or for installations where only known clients will be served, each such client must have a host declaration.
Where do I find the name of the DHCP server?
Name should be the name of the DHCP server’s process ID file. This is the file in which the DHCP server’s process ID is stored when the server starts. By default, this is /var/run/dhcpd.pid. Like the lease-file-name statement, this statement must appear in the outer scope of the configuration file.
Can a scope be declared more than once in dhcpd?
Scopes are never considered twice, and if parameters are declared in more than one scope, the parameter declared in the most specific scope is the one that is used.
Where does range declaration appear in dhcpd conf-man?
If clients on a subnet are to be assigned addresses dynamically, a range declaration must appear within the sub- net declaration. For clients with statically assigned addresses, or for installations where only known clients will be served, each such client must have a host declaration.