[Kea-users] Adding a lease via lease4-add API call

Marek Greško marek.gresko at protonmail.com
Fri Jan 12 09:30:53 UTC 2024


Hello,

- can I add a lease with an IP of a given subnet but outside of a particular pool?

Yes for sure. If the lease exists it takes precedence even before an existing reservation which makes a headache for me.

- does kea actually use the lease to assign the IP? I mean, can this feature be used as a poor man's alternative to the JSON/DB based concept of host reservation?

Yes it does and no, it cannot be used. The lease is time limited and then disappears if the device is off for some time. Your pseudo reservation will then be gone.

Marek

Sent with [Proton Mail](https://proton.me/) secure email.

On Wednesday, January 10th, 2024 at 9:17, Nicolò Borghi <borghi.nicolo at gmail.com> wrote:

> Dear Kea users,
>
> I'm exploring potentially useful features for my use case. I'm running Kea 2.4.0.
>
> Section 16.15.1 of the manual reads:
>
> "The lease4-add and lease6-add commands allow a new lease to be created. Typically Kea creates a lease when it first sees a new device; however, sometimes it may be convenient to create the lease manually."
>
> I have several questions about these two lines:
>
> - what would be one of those cases when it is convenient to create the lease manually?
> - can I add a lease with an IP of a given subnet but outside of a particular pool?
> - does kea actually use the lease to assign the IP? I mean, can this feature be used as a poor man's alternative to the JSON/DB based concept of host reservation?
>
> Thank you for your support.
>
> Best regards,
> Nicolò.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20240112/f3a7b60b/attachment-0001.htm>


More information about the Kea-users mailing list