DHCP not working
Posted: Fri Oct 02, 2009 3:02 am
The DHCP server has stopped working. I have tried multiple reboots and get the same result. The log message is:
[BST Oct 2 10:53:29] info : 'dhcpd' trying to restart
[BST Oct 2 10:53:29] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:53:59] error : 'dhcpd' process is not running
[BST Oct 2 10:53:59] error : 'dhcpd' failed to start
[BST Oct 2 10:53:59] info : 'dhcpd' trying to restart
[BST Oct 2 10:53:59] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:54:29] error : 'dhcpd' failed to start
[BST Oct 2 10:54:29] error : 'dhcpd' process is not running
[BST Oct 2 10:54:29] info : 'dhcpd' trying to restart
[BST Oct 2 10:54:29] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:54:59] error : 'dhcpd' failed to start
[BST Oct 2 10:54:59] error : 'dhcpd' process is not running
[BST Oct 2 10:54:59] info : 'dhcpd' trying to restart
[BST Oct 2 10:54:59] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:55:29] error : 'dhcpd' failed to start
[BST Oct 2 10:55:29] error : 'dhcpd' process is not running
[BST Oct 2 10:55:29] info : 'dhcpd' trying to restart
[BST Oct 2 10:55:29] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:55:59] error : 'dhcpd' failed to start
[BST Oct 2 10:55:59] error : 'dhcpd' process is not running
[BST Oct 2 10:55:59] info : 'dhcpd' trying to restart
[BST Oct 2 10:55:59] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:56:29] error : 'dhcpd' failed to start
[BST Oct 2 10:56:29] error : 'dhcpd' process is not running
[BST Oct 2 10:56:29] info : 'dhcpd' trying to restart
[BST Oct 2 10:56:29] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:56:59] error : 'dhcpd' failed to start
[BST Oct 2 10:56:59] error : 'dhcpd' process is not running
[BST Oct 2 10:56:59] info : 'dhcpd' trying to restart
[BST Oct 2 10:56:59] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:57:29] error : 'dhcpd' failed to start
[BST Oct 2 10:57:29] error : 'dhcpd' process is not running
[BST Oct 2 10:57:29] info : 'dhcpd' trying to restart
[BST Oct 2 10:57:29] info : 'dhcpd' start: /etc/init.d/dhcpd
Any ideas?
When I run /etc/init.d/dhcpd configtest I get the following error message:
/etc/dhcpd.conf line 20: semicolon expected.
max-lease-time
^
/etc/dhcpd.conf line 20: expecting a parameter or declaration
max-lease-time ;
^
Configuration file errors encountered -- exiting
Further investigation shows that the leas times in the /etc/dhcpd.conf file are:
option domain-name-servers 192.168.1.10;
option time-offset 3600;
range 192.168.1.100 192.168.1.254;
default-lease-time ;
max-lease-time ;
filename "pxelinux.0";
next-server 192.168.1.10;
I guess the question is what should the values in the lease time fields be? I want to have infinite values, ie the leases do not expire except on reboot.
[BST Oct 2 10:53:29] info : 'dhcpd' trying to restart
[BST Oct 2 10:53:29] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:53:59] error : 'dhcpd' process is not running
[BST Oct 2 10:53:59] error : 'dhcpd' failed to start
[BST Oct 2 10:53:59] info : 'dhcpd' trying to restart
[BST Oct 2 10:53:59] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:54:29] error : 'dhcpd' failed to start
[BST Oct 2 10:54:29] error : 'dhcpd' process is not running
[BST Oct 2 10:54:29] info : 'dhcpd' trying to restart
[BST Oct 2 10:54:29] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:54:59] error : 'dhcpd' failed to start
[BST Oct 2 10:54:59] error : 'dhcpd' process is not running
[BST Oct 2 10:54:59] info : 'dhcpd' trying to restart
[BST Oct 2 10:54:59] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:55:29] error : 'dhcpd' failed to start
[BST Oct 2 10:55:29] error : 'dhcpd' process is not running
[BST Oct 2 10:55:29] info : 'dhcpd' trying to restart
[BST Oct 2 10:55:29] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:55:59] error : 'dhcpd' failed to start
[BST Oct 2 10:55:59] error : 'dhcpd' process is not running
[BST Oct 2 10:55:59] info : 'dhcpd' trying to restart
[BST Oct 2 10:55:59] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:56:29] error : 'dhcpd' failed to start
[BST Oct 2 10:56:29] error : 'dhcpd' process is not running
[BST Oct 2 10:56:29] info : 'dhcpd' trying to restart
[BST Oct 2 10:56:29] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:56:59] error : 'dhcpd' failed to start
[BST Oct 2 10:56:59] error : 'dhcpd' process is not running
[BST Oct 2 10:56:59] info : 'dhcpd' trying to restart
[BST Oct 2 10:56:59] info : 'dhcpd' start: /etc/init.d/dhcpd
[BST Oct 2 10:57:29] error : 'dhcpd' failed to start
[BST Oct 2 10:57:29] error : 'dhcpd' process is not running
[BST Oct 2 10:57:29] info : 'dhcpd' trying to restart
[BST Oct 2 10:57:29] info : 'dhcpd' start: /etc/init.d/dhcpd
Any ideas?
When I run /etc/init.d/dhcpd configtest I get the following error message:
/etc/dhcpd.conf line 20: semicolon expected.
max-lease-time
^
/etc/dhcpd.conf line 20: expecting a parameter or declaration
max-lease-time ;
^
Configuration file errors encountered -- exiting
Further investigation shows that the leas times in the /etc/dhcpd.conf file are:
option domain-name-servers 192.168.1.10;
option time-offset 3600;
range 192.168.1.100 192.168.1.254;
default-lease-time ;
max-lease-time ;
filename "pxelinux.0";
next-server 192.168.1.10;
I guess the question is what should the values in the lease time fields be? I want to have infinite values, ie the leases do not expire except on reboot.