[Kea-users] Subnet-specific lease times

Darren Ankney darren.ankney at gmail.com
Thu Aug 10 14:50:46 UTC 2023


Hi Mary,

Yes, it is possible.  See below simple configuration where globally
the lease length is set to 28800 and in the subnet 10.1.2.0/24, the
lease length is set to 600.

{
    "Dhcp4": {
        "interfaces-config": {
            "interfaces": [
                "ens256"
            ]
        },
        "lease-database": {
            "type": "memfile",
            "persist": false
        },
        "valid-lifetime": 28800,
        "calculate-tee-times": true,
        "subnet4": [
            {
                "subnet": "10.1.2.0/24",
                "id": 1,
                "valid-lifetime": 600,
                "option-data": [
                    {
                        "name": "routers",
                        "data": "10.1.2.1"
                    }
                ],
                "pools": [
                    {
                        "pool": "10.1.2.100-10.1.2.200"
                    }
                ]
            }
        ],
        "loggers": [
            {
                "name": "kea-dhcp4",
                "severity": "INFO",
                "output_options": [
                    {
                        "output": "stdout"
                    }
                ]
            }
        ]
    }
}

On Thu, Aug 10, 2023 at 10:09 AM Bull, Mary <mbull at wm.edu> wrote:
>
> Can lease times be set per subnet? The documentation only mentions global settings but I wanted to verify.
>
>
>
> Mary Bull
>
> 757-221-2491
>
> Network Infrastructure
>
> W&M
>
>
>
> --
> 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


More information about the Kea-users mailing list