HDA not serving IP addresses
Posted: Fri Oct 02, 2009 3:49 am
Had some weird power issues (cutting out) in my neighbourhood last night. I said "At this rate we'll be lucky if the server lasts until morning," after bringing it back up for the fourth time (yeah, yeah UPS FTW).
This morning my Windows PC was getting an autoconfig (169...) address and after going through the usual troubleshooting steps I gave it a static IP in the HDA range and VNC'ed on to my server. OK, the server works fine and can browse in web...so this is DHCP related.
Right, first things first:
GAH. So second things second I checked /var/log/messages.
Wow, that's long and usually changes on the disk before it all loads.
Right down at the bottom it reported an error on line 20 of /etc/dhcpd.conf:
OK, when in doubt stick in a valid parameter where there is none and see if you're fixed. So I inserted 86400 (why not?) and this *appears* to have fixed the issue. I have DHCP served IPs anyway.
Wasn't sure where to post this advice, so it's here. Maybe someone will find it useful.
This morning my Windows PC was getting an autoconfig (169...) address and after going through the usual troubleshooting steps I gave it a static IP in the HDA range and VNC'ed on to my server. OK, the server works fine and can browse in web...so this is DHCP related.
Right, first things first:
Code: Select all
# service dhcpd stop
# service dhcpd stop
Starting dhcpd: [FAILED]
Wow, that's long and usually changes on the disk before it all loads.

Code: Select all
...
/etc/dhcpd.conf line 20: expecting a parameter or declaration
#011max-lease-time ;
Wasn't sure where to post this advice, so it's here. Maybe someone will find it useful.