OPNsense Forum

English Forums => General Discussion => Topic started by: cory1768 on June 01, 2018, 12:02:57 am

Title: DHCP Lease Duration
Post by: cory1768 on June 01, 2018, 12:02:57 am
I tried searching for the answer before hand and I couldn't find anything. Does anyone know how to set a lease to unlimited? I tried setting it to 0 and after a save the value was cleared.

Thanks in advance.
Title: Re: DHCP Lease Duration
Post by: franco on June 01, 2018, 08:19:11 am
For the DHCP server? A static mapping is more appropriate than a near unlimited lease time. Not sure DHCP was built with unlimited lease time in mind. ;)


Cheers,
Franco
Title: Re: DHCP Lease Duration
Post by: marjohn56 on June 01, 2018, 08:32:14 am
Yes, it's called a static address.  8)


If I have my maths correct, the maximum lease time is 1099511627286 seconds which is a very long time, there is no such thing as infinity, however a lease of that length will almost certainly outlive you... I say almost because you may not be a human. :P
Title: Re: DHCP Lease Duration
Post by: franco on June 01, 2018, 08:55:55 am
Hehe, I said "near".


Cheers,
Franco