OPNsense Forum

English Forums => 24.7, 24.10 Legacy Series => Topic started by: hushcoden on November 24, 2024, 08:49:54 PM

Title: Question about Kea DHCP
Post by: hushcoden on November 24, 2024, 08:49:54 PM
I've decided to test the (new) Kea DHCP service and I've added 10 hosts an in the 'Reservations' section, so far so good.

What I don't understand is that if I click on 'Leases DHCPv4' menu, I see all those hosts with a Lifetime of 86400 (which is the default value for hosts with no reservation), and they actually expire within 24 hrs, hence I'm confused, why is that?

Tia.
Title: Re: Question about Kea DHCP
Post by: dseven on November 24, 2024, 08:56:24 PM
A reservation just means that the IP address is reserved for a given client - the client still needs to use DHCP to get a lease, renew it, etc.
Title: Re: Question about Kea DHCP
Post by: hushcoden on November 24, 2024, 09:06:40 PM
Quote from: dseven on November 24, 2024, 08:56:24 PM
A reservation just means that the IP address is reserved for a given client - the client still needs to use DHCP to get a lease, renew it, etc.
Does it mean that every 24 hrs the Kea DHCP server releases the IP address and then reassigns that same IP address to the same very host?  :o

With ISC DHCPv4 if I assign a static IP address to a device then job done, right?
Title: Re: Question about Kea DHCP
Post by: Patrick M. Hausen on November 24, 2024, 09:09:47 PM
No, that means that the client is leased that address for 24 hours and when the time expires is supposed to renew it. A DHCP server cannot actively revoke an address. But every lease has a lifetime, hence the term lease.

A static reservation means to the server "please give this particular address to this particular client - identified by MAC address - whenever it asks.
Title: Re: Question about Kea DHCP
Post by: hushcoden on November 24, 2024, 09:13:19 PM
Thank you both!