LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Lost DHCP Lease when putting computer in "Standby" mode for a "long" time (https://www.linuxquestions.org/questions/linux-networking-3/lost-dhcp-lease-when-putting-computer-in-standby-mode-for-a-long-time-274870/)

pnellesen 01-06-2005 11:03 PM

Lost DHCP Lease when putting computer in "Standby" mode for a "long" time
 
I'm running Slackware 10, connected via DHCP to a wired port on a Linksys 4-port/Wireless router. I've noticed that if I put my machine into standby mode (by hitting the power button) and I don't come back for "a while" (say 24 hours or so), when I try to access any network resources or the internet, I get "no connection to blah". It seems that the length of time over which this happens varies - I haven't timed it exactly by any means, but if I come back after 8-12 hours I don't have a problem. I've attempted trying some of the "dhcpclient" commands with no luck. Is there a way to set up the initial boot dhcpclient lease time to be "forever", or is there a way to renew the lease? I have seen another post in this forum regarding DHCP leases, and if this happens again I'm going to try a couple of the suggestions there, but if anyone has any further suggestions I'd love to hear them... (I apologize for the lack of detail here. ;) )

Thanks in advance

not_an_expert 01-06-2005 11:44 PM

Try setting the client lease time on the Linksys to 10080 minutes (1 Week) or so. Also make sure that the lease time on the dhcpcd daemon is set to match that value. If it follows standards, the daemon should not do anything until the lease is 50% up. That would give you plenty of time to resume without hanging something up.

You might also consider putting a "killall dhcpcd" in the sleep script and restarting it in the wakeup script.


All times are GMT -5. The time now is 10:15 AM.