Closed Lausterwork closed 1 year ago
Thanks for the post. The reserved lease are allocated based on the MAC address in the DHCP request but, during renewing lease its the DHCP Client Identifier that is matched with the reserved lease.
The issue you are seeing is due to the DHCP client changing its Client Identifier. You need to edit your DHCP client config to set it to use the Client Identifier based on MAC address.
Check this issue on StackExchange on how to configure it for Ubuntu.
sigh yet another thing on My list of grievances towards systemd. Thanks for the prompt answer 👍 I'll add it to My list of things that need doing on new machines.
For anyone else using systemd-network, just add this to your device config
[DHCP]
ClientIdentifier=mac
I am having a reoccurring issue of my servers not getting their reserved IP, even if the lease is not expired (or maybe because the lease is not expired?) Instead a new lease is added to the db and the client is assigned that.
Attached is a screenshot to show what I mean: