1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

dhcp daemon crashes -> here's a solution

Discussion in 'DD-WRT Firmware' started by meuh, Aug 21, 2005.

  1. meuh

    meuh Network Guru Member

    While running v23 I had some troubles with the dhcp daemon.
    After about 2 days it stops running on my box.

    I made a script which checks if the service is running, if it aint, it starts it up. (every 5 minutes)

    First you need to enable cron and jffs on your router
    then login to your box with telnet or ssh
    and type: cd /jffs
    then type:
    wget http://www.angelfire.com/ar3/udhcp/check.udhcp
    then type: chmod u+x check.udhcp

    then copy the 4 lines from:

    paste those lines into your telnet or ssh session
    and press enter
    then type: reboot
    this should be it.
  2. jagboy

    jagboy Network Guru Member

    mybe you should have brianslyer intergrate this into dd-wrt.
  3. WisdomWolf

    WisdomWolf Network Guru Member

    I have been having trouble with the dhcp daemon shutting down on me as well. If this works then I will be forever endebtitted to you. If it doesn't work, well at least you came up with some kind of solution and that's more than most can say. :clap:
  4. meuh

    meuh Network Guru Member

    If you press the "Save Settings" button, the file /tmp/crontab is empty again. This means that the script does not work anymore.

    To prevent this, you have to reboot the router after pressing this button.

    I wonder if there is an editable file which runs after pressing "Save Settings". Anyone ?

    The script seems to work fine for me, except for this little "can live with it" issue. Normaly you won't change settings every day.

    @ BrainSlayer: Are you aware that the dhcpd daemon stops sometimes ?
    I have it on both my wrt's (G2.0 and GS1.1).
    It stops after 2 to 4 days.

  5. phatrabt

    phatrabt Network Guru Member

    When you say the DHCP daemon is shutting down, are there any symptoms besides not being able to renew your lease?
  6. trekuhl

    trekuhl Network Guru Member

    not that i have noticed. it just quits giving new leases. i can still manually configure and then ping/access the router.

    I just added a nice netgear dual-wan gigabit VPN router so im lettign that assume dhcp responibilities.

    i did load this version to another wrt54gs and that person hasnt complained about not getting a lease (and she would if it was a prob, she couldnt fix it herself)

  7. BrainSlayer

    BrainSlayer Network Guru Member

    this script would not resolve this issue. the dhcpd is restarted if its crashed, but the dhcpd somtimes also stops responding, but the process is alive
  8. knight14th

    knight14th Network Guru Member

    @ Brianslayer: Please change from udhcpd to dnsmaq. It is quite easy to run dnsmasq als dhcp. The static dhcp infos should be in /etc/ethers
    and it is only one configline to enable dhcpd. Could you make a symlink from /etc/ethers to /tmp/ethers in your next beta-release?
  9. phatrabt

    phatrabt Network Guru Member

    OK, I'm having the same issue as the others (at least it appears so). About once a day I come in to find my machine saying "Local Area Connection has been restored", and when I check the Event Log I see

    Your computer was not able to renew its address from the network (from the DHCP Server) for the Network Card with network address 0020xxxxxxxx. The following error occurred:
    The semaphore timeout period has expired. . Your computer will continue to try and obtain an address on its own from the network address (DHCP) server.

    Usually I don't have to release\renew as it has already managed to get an address but not always.

    This problem only started approx 3 weeks ago and since it hasn't turned into a big deal I haven't done anything about it.

    Firmware is v22r2 on a WRT54Gv2.

  10. knight14th

    knight14th Network Guru Member

  11. phatrabt

    phatrabt Network Guru Member

    Thanks Knight14th! Actually, I did a soft reset (holding down the reset button for 20 secs) and then re-setup the router. So far I haven't had any issues but I'll keep you posted.
  12. il_mostro

    il_mostro Network Guru Member

    After running the 26/9-beta of v23 for a little more that 1 day dhcp stopped working. Logging on to the router showed no running udhcpd process.

Share This Page