Wednesday, 5 March 2008

dhcpd error

Recently I had to set up a DHCP server. I installed dchp, configured it and ran it using the command:
dhcpd

This ran successfully and assigned IP addresses as expected. However, when I tried to start the service on boot up I got the error message:
root@computer:~>service dhcpd start
Starting DHCP server … cannot… DHCPD_INTERFACE in /etc/sysconfig/dskipped empty!
This was due to the computer having 2 network cards and dhcpd not knowing which interface to listen on for DHCP requests.

To solve this problem I had to edit /etc/sysconfig/dhcpd and modify the line:

DHCPD_INTERFACE=""

to point to the Ethernet device you want to use (generally eth0 or eth1). Once I set this to eth0 the DHCP server started on boot up and ran successfully
DHCPD_INTERFACE="eth0"

No comments:

Post a Comment