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 <j...@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@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@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users