Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-21-2006, 04:33 AM   #1
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
DHCP leases till 2038! abandoned.

I've got a very old dhcp server which is behaving weirdly.

In the dhcp.leases file I see loads of the following:
lease {
        starts 2 2006/09/19 15:31:36;
        ends 2 2038/01/19 03:14:07;
        client-hostname "somename";
but the lease time is set for 1 hour in dhcpd.conf (always has been) and this is verified by the fact that other leases in the same dhcpd.leases file show
lease {
        starts 4 2006/09/21 08:33:51;
        ends 4 2006/09/21 09:33:51;
        client-hostname "someothername";
Does anybody understand this? Is this a known problem or something?

I have manually deleted all the abandoned leases from dhcpd.leases before but they do reappear over time.

Why is it giving out leases till 2038??!

(server is dhcpd-2.0b1pl0-1 on Red Hat Linux release 6.1 - Yes you don't have to tell me, I will replace this)
Old 09-21-2006, 09:05 PM   #2
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Rep: Reputation: 31
I think if you replace the OS you'll stop having this problem.

03:14:07 on Jan 19, 2038 is the end of the UNIX epoch. It's basically linux's own Y2K problem, aptly named Y2K38. Once it gets there the date rolls over much like how windows machines would have rolled from 1999 to 1900.

Essentially your DHCP server is giving out leases till the end of time! Though it's a problem I think it's worth it to take a brief second and admire the subtle humor.

Maybe you could just upgrade dhcpd for now? Your DHCP problem is probably a bug that an OS upgrade should fix but as far as a temporary patch I'm not sure exactly how you'd tackle that if a bugfix doesn't work.

EDIT: I did look this up further but I couldn't find a solution nor can I figure out why it would do something like this. Good luck.

Last edited by zetabill; 09-21-2006 at 09:20 PM.
Old 09-22-2006, 03:50 AM   #3
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
well, I've moved it to another server and stopped having that problem.

In fact that server is too new and unreliable to leave it on, but the original server I moved it to was the same server I run all the monitoring checks for my network on and when it was on there I ended up not being able to check the damn thing because it didn't return a DHCP offer for me to know that the DHCP service is OK.

How annoying. If you know of a way of making the isc dhcpd server give a dhcp offer to itself then I can move it back to that more stable server and have it tested as normal.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Resolv.conf updated every time DHCP leases? jon_k Linux - Software 2 08-01-2006 04:32 PM
DHCP SERVER ... no free leases!!!!! eder_michael11 Linux - General 2 04-25-2006 05:47 PM
dhcp not writing leases oberon-ken-obi Linux - Newbie 8 04-14-2005 01:44 PM
hostname not showing up in DHCP leases table! halo14 Debian 0 03-24-2005 09:37 AM
DHCP leases file not being generated. abhijeetudas Linux - Networking 1 09-25-2004 10:31 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration