socallinuxexpo / scale-network

SCaLE's on-site expo network configurations, wifi, tooling, and scripts
https://www.socallinuxexpo.org/
BSD 3-Clause "New" or "Revised" License
46 stars 19 forks source link

kea dhcp client lease affinity #674

Open sarcasticadmin opened 7 months ago

sarcasticadmin commented 7 months ago

Description

What is lease affinity?:

Suppose that a laptop goes into sleep mode after a period of user inactivity. While the laptop is in sleep mode, its DHCP client does not renew leases obtained from the server and these leases will eventually expire. When the laptop wakes up, it is often desirable for it to continue using its previous assigned IP addresses. To facilitate this, the server needs to correlate returning clients with their expired leases. When the client returns, the server first checks for those leases and reassigns them if they have not been assigned to another client. The ability of the server to reassign the same lease to a returning client is referred to as "lease affinity."

There are some interesting knobs we can tweak with regards to the things like client lease affinity: https://kea.readthedocs.io/en/kea-2.3.0/arm/lease-expiration.html#configuring-lease-affinity

Acceptance Criteria