Static bindings in DHCP server

dhcpdhcp-server

I'd like to enable static binding in the DHCP server (I'm using KEA Dhcp https://www.isc.org/kea) but I think it is applicable to other implementations as well.

What exactly I want to achieve is to ensure that a client identified by its hardware address will be re-allocated the same IP address, after the client has reset. I know this can be configured on dhcp server's config file by mapping MAC address with assigned IP address.

However, can the same be done in an automatic mode? Can the server automatically build such mappings, is it available in Kea Dhcp for instance?

Thanks.

Best Answer

Just configure the lease duration as -1 (infinite). This will make sure the client will get back the IP address it was assigned upon first contact no matter how much later it comes back.