TechnitiumSoftware / DnsServer

Technitium DNS Server
https://technitium.com/dns/
GNU General Public License v3.0
4.48k stars 431 forks source link

Clients do not get DHCP reserved IP. #606

Closed Lausterwork closed 1 year ago

Lausterwork commented 1 year ago

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:

image
ShreyasZare commented 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.

Lausterwork commented 1 year ago

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.

ackstorm23 commented 1 year ago

For anyone else using systemd-network, just add this to your device config

[DHCP]
ClientIdentifier=mac