How To: Debugging DHCP Server Settings



How to debug DHCP server settings

On Univention Corporate Server (UCS) the DHCP service stores its configuration in the LDAP database.

In case you want to verify your settings by reading the configuration you have to enable the debug file.

Step 1

Edit the file /etc/dhcp/dhcpd.conf and remove the # before ldap-debug-file
Before edit:
# ldap-debug-file "/var/log/dhcp-ldap-startup.log";

After edit:
ldap-debug-file "/var/log/dhcp-ldap-startup.log";

Step 2

Restart the daemon.
systemctl restart univention-dhcp

Step 3

Read configuration from file /var/log/dhcp-ldap-startup.log which should help to identify the issue.

For further troubleshooting you might use the tool dhcpdump.