Skip to end of metadata
Go to start of metadata

Problem

The ISC DHCP configuration file (dhcpd.conf) can easily grow complex. It might then not be obvious in which order the declarations (host, subnet, shared-network, group, pool) are evaluated and used when looking for a free lease.

Solution

The ISC DHCP Server comes with a log function that can be used for debugging purposes. The log function is documented in the dhcp-eval man page:

The log function can be used in any scope level and will be executed every time the DHCP server evaluates the scope for finding a free lease. Below is an example of the log function in a subnet declaration:

The log output in the syslog files for this example look like this:

 

1 Comment

  1. This article has been refreshed with the more stylish version from David