LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-13-2011, 11:12 AM   #1
mpmackenna
Member
 
Registered: May 2006
Posts: 69

Rep: Reputation: 15
dhcpd - keep lease even if device sends expiration packet


I have a dhcpd server running CentOS and Webmin. I noticed in my lists of expired leases some of the lease times are only a few hours even thought I have lease length set to 1 week. I want to keep a lease for a week even if the device requests that it be expired. Is there some way I can do this in dhcpd?
I am attaching a screenshot of some of my lease times listed in Webmin.
Thanks,
Mike
Attached Images
File Type: jpg leases.jpg (59.7 KB, 9 views)
 
Old 07-14-2011, 07:55 PM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,251

Rep: Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026
How about just giving it a perm entry in DHCP ?
http://www.linuxtopia.org/online_boo...ml#config-file
 
Old 07-15-2011, 07:48 AM   #3
mpmackenna
Member
 
Registered: May 2006
Posts: 69

Original Poster
Rep: Reputation: 15
Static reservation

Quote:
Originally Posted by chrism01 View Post
How about just giving it a perm entry in DHCP ?
http://www.linuxtopia.org/online_boo...ml#config-file
That won't work. I am not concerned with a particular client. Clients come and go. I want to be able to say for certain that a certain client had a certain address three days ago. If a client is able to expire his lease then I can't say whether or not someone else picked up that lease shortly there after and expired it as well.
 
Old 07-17-2011, 08:38 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,251

Rep: Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026Reputation: 2026
In that case, it looks like you should be able to get syslog to log the lease changes http://linux.die.net/man/8/dhcpd and/or use the -d flag for dhcpd
 
1 members found this post helpful.
Old 08-04-2011, 08:50 AM   #5
mpmackenna
Member
 
Registered: May 2006
Posts: 69

Original Poster
Rep: Reputation: 15
Thanks.

Quote:
Originally Posted by chrism01 View Post
In that case, it looks like you should be able to get syslog to log the lease changes http://linux.die.net/man/8/dhcpd and/or use the -d flag for dhcpd
Hmm... Yes, that makes a lot of sense. I will look in to that.
 
  


Reply

Tags
dhcp, dhcpd


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
DHCPD failing to serve correct lease expiration TheGorf Linux - Server 1 02-18-2009 11:16 AM
dhcpd wrong ip lease? del_gr Linux - Newbie 6 10-24-2006 10:58 AM
dhcpd non-sequential client lease cooljimwhy Linux - Server 2 10-18-2006 03:02 PM
dhcpd - new lease every second on M$ box charon79m Linux - Networking 4 06-02-2004 09:31 AM
dhcpd lease question Jase Linux - Networking 2 01-31-2002 10:42 AM


All times are GMT -5. The time now is 09:42 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