Send dhcp-users mailing list submissions to dhcp-users@lists.isc.org
To subscribe or unsubscribe via the World Wide Web, visit https://lists.isc.org/mailman/listinfo/dhcp-users or, via email, send a message with subject or body 'help' to dhcp-users-requ...@lists.isc.org You can reach the person managing the list at dhcp-users-ow...@lists.isc.org When replying, please edit your Subject line so it is more specific than "Re: Contents of dhcp-users digest..." Today's Topics: 1. dhcp-client and IPv4 lease times (Mike) 2. Re: dhcp-client and IPv4 lease times (Bob Harold) 3. Re: dhcp-client and IPv4 lease times (Mike) ---------------------------------------------------------------------- Message: 1 Date: Tue, 7 Dec 2021 12:45:25 -0500 From: Mike <the.li...@mgm51.com> To: dhcp-users@lists.isc.org Subject: dhcp-client and IPv4 lease times Message-ID: <53bd9701-b996-01da-7ccf-67ca5d436...@mgm51.com> Content-Type: text/plain; charset=utf-8 I'm running dhcp-client-4.4.2.P1 from packages on OpenBSD 7.0, amd64.. The IPv4 lease renewal times seem odd to me. >From the environment passed to the script specified in dhclient4.conf, I see, among others, the following variables: new_dhcp_lease_time=45605 new_dhcp_rebinding_time=34805 new_dhcp_renewal_time=2405 In the log for the dhclient daemon I see the following entry (sanitized): dhclient: ... -- renewal in 2121 seconds. I have two questions: 1) Why is the renewal time specified in the log different than any of the renewal times passed in the environment? 2) Why is not the renewal time taken to be half the lease time? Thanks. ------------------------------ Message: 2 Date: Tue, 7 Dec 2021 14:57:46 -0500 From: Bob Harold <rharo...@umich.edu> To: Users of ISC DHCP <dhcp-users@lists.isc.org> Subject: Re: dhcp-client and IPv4 lease times Message-ID: <ca+nkc8b6pquoo8aczzupursufhkdkzhcdwi8cq8pjgxqtrs...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" On Tue, Dec 7, 2021 at 12:52 PM Mike <the.li...@mgm51.com> wrote: > I'm running dhcp-client-4.4.2.P1 from packages on OpenBSD 7.0, amd64.. > > The IPv4 lease renewal times seem odd to me. > > From the environment passed to the script specified in dhclient4.conf, I > see, among others, the following variables: > > new_dhcp_lease_time=45605 > new_dhcp_rebinding_time=34805 > new_dhcp_renewal_time=2405 > > > In the log for the dhclient daemon I see the following entry (sanitized): > > dhclient: ... -- renewal in 2121 seconds. > > > I have two questions: > > 1) Why is the renewal time specified in the log different than any of > the renewal times passed in the environment? > > 2) Why is not the renewal time taken to be half the lease time? > > Thanks. If you are using failover, then the initial lease time is "mclt". Are you using failover? There is also a setting " dhcp-cache-threshold" that can affect lease times. Do you have that set? -- Bob Harold -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20211207/f9ad2b21/attachment-0001.htm> ------------------------------ Message: 3 Date: Tue, 7 Dec 2021 16:08:34 -0500 From: Mike <the.li...@mgm51.com> To: dhcp-users@lists.isc.org Subject: Re: dhcp-client and IPv4 lease times Message-ID: <2354168f-f83c-b178-3b46-627645ab4...@mgm51.com> Content-Type: text/plain; charset=utf-8 On 12/7/2021 2:57 PM, Bob Harold wrote: > If you are using failover, then the initial lease time is "mclt".? Are > you using failover? > > There is also a setting "?dhcp-cache-threshold" that can affect lease > times.? Do you have that set? Thanks for the reply. I'm not using failover, and dhcp-cache-threshold is not set. This instance of dhclient is running on the box I use as a firewall/router for the service from my ISP (Comcast). Here's my dhclient4.conf: (apologies, I should have included it with my initial query) script "/usr/local/sbin/dhclient-script"; initial-interval 1; send dhcp-lease-time 345600; supersede domain-name-servers 127.0.0.1; supersede domain-name "example.home"; ------------------------------ Subject: Digest Footer _______________________________________________ ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information. dhcp-users mailing list dhcp-users@lists.isc.org https://lists.isc.org/mailman/listinfo/dhcp-users ------------------------------ End of dhcp-users Digest, Vol 158, Issue 1 ******************************************