[Kea-users] different lease times
Jason Keltz
jas at yorku.ca
Tue Apr 2 14:00:53 UTC 2024
Hi Darren,
Thanks for your help .. a few questions...
1.
would it be valid syntax to also set lease-lifetime in the pool instead of using the class?
"pools": [
{
"pool": "10.1.2.100-10.1.2.200",
"lease-lifetime": "300"
}
]
1.
I already assign the pools to "client-class": "KNOWN" - can I specify multiple classes? "client-class": "KNOWN", "short-lease"?
2.
If I use a class to do this, is the "valid-lifetime": 300 inside the subnet definition necesary? It is repeated in both the subnet and the client-class short-lease.
Jason.
________________________________
From: Kea-users <kea-users-bounces at lists.isc.org> on behalf of Darren Ankney <darren.ankney at gmail.com>
Sent: Tuesday, April 2, 2024 9:17 AM
To: Kea user's list <kea-users at lists.isc.org>
Subject: Re: [Kea-users] different lease times
Hi Jason,
Something like this should do:
{
"Dhcp4": {
"interfaces-config": {
"interfaces": [
"ens256"
]
},
"lease-database": {
"type": "memfile",
"persist": false
},
"calculate-tee-times": true,
"option-data": [
{
"name": "domain-name-servers",
"data": "10.0.0.1"
}
],
"client-classes": [
{
"name": "short-lease",
"only-if-required": true,
"valid-lifetime": 300
}
],
"valid-lifetime": 604800,
"reservations": [
{
"hw-address": "00:00:00:11:11:11",
"ip-address": "10.1.2.12"
}
],
"subnet4": [
{
"subnet": "10.1.2.0/24",
"id": 1,
"option-data": [
{
"name": "routers",
"data": "10.1.2.1"
}
],
"valid-lifetime": 300,
"pools": [
{
"pool": "10.1.2.100-10.1.2.200",
"require-client-classes": [ "short-lease" ]
}
]
}
],
"loggers": [
{
"name": "kea-dhcp4",
"severity": "DEBUG",
"debuglevel": 99,
"output_options": [
{
"output": "stdout"
}
]
}
]
}
}
Thank you,
Darren Ankney
On Mon, Apr 1, 2024 at 3:05 PM Jason Keltz <jas at yorku.ca> wrote:
>
> Hi..
>
> At the top of my KEA configuration file, I specify "valid-lifetime" for
> leases. Most of my hosts have a static IP which is allocated via Kea.
> Those leases can be quite lengthy. On the other hand, each subnet has a
> dynamic pool as well. How can I define a much lower lease time for the
> hosts that are being allocated dynamic IP?
>
> Would this be an option in "reservations"? Can I avoid duplicating for
> every host?
>
> reservations": [
> {
> "hw-address": "ab:cd:ef:gh:ij:kl",
> "hostname": "myhost",
> "option-data": [
> {
> "name": "log-servers",
> "data": "w.x.y.z"
> },
> {
> "name": "domain-name-servers",
> "data": "a.b.c.d,e.f.g.h"
> },
> {
> "name": "domain-name",
> "data": "mydomain.com"
> }
> ]
> },
> ...
>
> ]
>
> Jason.
>
> --
> ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
>
> To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
>
> Kea-users mailing list
> Kea-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/kea-users
--
ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.
Kea-users mailing list
Kea-users at lists.isc.org
https://lists.isc.org/mailman/listinfo/kea-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/kea-users/attachments/20240402/50f01e58/attachment-0001.htm>
More information about the Kea-users
mailing list