LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   dhcpd - keep lease even if device sends expiration packet (https://www.linuxquestions.org/questions/linux-server-73/dhcpd-keep-lease-even-if-device-sends-expiration-packet-891509/)

mpmackenna 07-13-2011 11:12 AM

dhcpd - keep lease even if device sends expiration packet
 
1 Attachment(s)
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

chrism01 07-14-2011 07:55 PM

How about just giving it a perm entry in DHCP ?
http://www.linuxtopia.org/online_boo...ml#config-file

mpmackenna 07-15-2011 07:48 AM

Static reservation
 
Quote:

Originally Posted by chrism01 (Post 4415205)
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.

chrism01 07-17-2011 08:38 PM

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

mpmackenna 08-04-2011 08:50 AM

Thanks.
 
Quote:

Originally Posted by chrism01 (Post 4417677)
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.


All times are GMT -5. The time now is 10:02 PM.