Software⏱️ 3 min read📅 2026-06-19

How to Fix: "dhcpd failed" error when starting DHCP server

Debian DHCP server configuration issue fix.

Quick Answer: The issue is caused by the missing 'dhcpd' service in the /etc/init.d/isc-dhcp-server file. Add 'dhcpd' to the list of services in the file and restart the service for it to work.

The "dhcpd failed" error occurs when the ISC DHCP server is unable to start due to a configuration issue. This affects Debian-based systems running Ubuntu 12.04, specifically those with a virtual machine setup.

This error can be frustrating as it prevents the system from functioning correctly and makes it difficult to assign IP addresses to clients. The goal of this troubleshooting guide is to help resolve the issue by identifying the root cause and providing steps for a successful fix.

🔍 Why This Happens

  • The primary reason for the "dhcpd failed" error is that the interface specified in the /etc/default/isc-dhcp-server file does not exist or is not properly configured. The 'INTERFACES' variable should point to an existing network interface on the system.
  • An alternative cause could be a misconfigured 'subnet' statement in the dhcpd.conf file, which may indicate an incorrect subnet mask or broadcast address.

🔧 Proven Troubleshooting Steps

Correcting the Interface Configuration

  1. Step 1: Check if the interface specified in the /etc/default/isc-dhcp-server file exists by running the 'ip link' command. Ensure that the interface is properly configured and has a valid IP address.
  2. Step 2: Update the '/etc/default/isc-dhcp-server' file to reflect the correct interface name, for example: INTERFACES='eth2'. Restart the isc-dhcp-server service to apply the changes.

Validating DHCP Configuration

  1. Step 1: Review the dhcpd.conf file to ensure that it is correctly configured. Verify that the 'subnet' statement matches the actual subnet being used on the system.
  2. Step 2: Check for any syntax errors or inconsistencies in the configuration file by running the 'dhcp-check' command, which can be installed using the 'apt-get install isc-dhcp-client' package.

💡 Conclusion

To resolve the "dhcpd failed" error, first ensure that the interface specified in the /etc/default/isc-dhcp-server file exists and is properly configured. If the issue persists, validate the DHCP configuration to detect any syntax errors or inconsistencies.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions