Regarding the dhcp lease time
Sten Carlsen
stenc at s-carlsen.dk
Tue Apr 16 07:17:12 UTC 2019
On 16/04/2019 06.10, Murali Krishna wrote:
> Hi,
>
> Thanks for your inputs.
>
> I quickly checked in my system.
> From "/etc/dhcpd.conf", i could clearly see that 600 is set to both
> max and default. This output is from server side.
> max-lease-time 600;
> default-lease-time 600;
In this case the only other explanation I can think of is a rogue server
on your network. This would require a closer study of the actual packet
capture.
> On the client side, "/etc/dhclient.conf" says:
> send dhcp-lease-time 3600;
>
> Thanks & Regards,
> Muralikrishna CH
>
> On Tue, Apr 16, 2019 at 12:25 AM Sten Carlsen <stenc at s-carlsen.dk
> <mailto:stenc at s-carlsen.dk>> wrote:
>
>
>
> On 15/04/2019 18.48, Murali Krishna wrote:
>> Hi,
>>
>> Im facing issue with the dhcp lease time.
>> Im having two different DHCP versions in server and client side.
>> I could see that the lease file at the client had very huge value
>> of the dhcp lease.
>>
>> version on the server side:
>> isc-dhcpd-4.3.6-P1
>>
>> Version on the client side:
>> isc-dhcpd-4.2.1-P1
>>
>> Content(part) of the lease file at the client side:
>> dhcp-lease-time 152292816;
>>
>> Output of pcap file used for debugging:
>>
>> * #28 <https://gordon.advantech.com.tw/issues/28>: Client sends
>> "DHCP Request" to server and asks the lease time 3600s.
>> * #29 <https://gordon.advantech.com.tw/issues/29>: The server
>> replies the "DHCP ACK" to client, but the lease time is
>> 152292816s.
>>
> The server is configured with two times, max-lease-time and
> default-lease-time. It will send those times to the client, in
> this case it looks like the server is configured to send very long
> times (4.8 years). It is up to the client when it wants to renew
> the lease, the 3600s is clearly within the bounds of what it is given.
>
> If you want shorter lease times, the server needs to be configured
> to hand out those times instead.
>>
>>
>> Please help in getting this resolved. Also please share in what
>> kind of situations the server will respond to the client with a
>> huge lease value.
>>
>> Thanks & Regards,
>> Muralikrishna CH
>>
>>
>> _______________________________________________
>> dhcp-users mailing list
>> dhcp-users at lists.isc.org <mailto:dhcp-users at lists.isc.org>
>> https://lists.isc.org/mailman/listinfo/dhcp-users
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org <mailto:dhcp-users at lists.isc.org>
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
>
>
> --
>
>
>
>
> Thanks & Regards,
> Muralikrishna CH
>
>
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20190416/6870d432/attachment.html>
More information about the dhcp-users
mailing list