LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-21-2006, 04:33 AM   #1
humbletech99
Member
 
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:
Code:
lease 192.168.1.245 {
        starts 2 2006/09/19 15:31:36;
        ends 2 2038/01/19 03:14:07;
        abandoned;
        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
Code:
lease 192.168.1.223 {
        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
zetabill
Member
 
Registered: Oct 2005
Location: Rhode Island, USA
Distribution: Slackware, Xubuntu
Posts: 348

Rep: Reputation: 30
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
humbletech99
Member
 
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.
 
  


Reply


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


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

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