Closed FabioEight closed 8 months ago
Thanks for the post. This issue is related to #850.
The root problem in your scenario is that the reserved lease was allocated to the client based on the Client Identifier (option 61) in the original request. So the lease is owned by the device which used the Client Identifier in the request.
Now, the same client requests lease without the same Client Identifier option in the request (probably due to a manual lease renewal command). The DHCP server sees that the reserved leased is already assigned to a specific Client Identifier and thus allocates a dynamic lease instead.
The fix for this is to configure the dhcp client to use hardware
or mac
as the client identifier as answered here.
The next update for Technitium DNS server will have an "Ignore Client Identifier" option in DHCP scope which will fix this issue when enabled.
Technitium DNS Server v12.1 is now available which adds Ignore Client Identifier Option in DHCP scopes that fixes this issue. Do update and let me know your feedback.
Hello, I'm running Technitium in a VyOS container with host network capabilities, but I faced this issue also on a dedicated LXC with only Technitium. It seems that after some time, if a device request a new IP address or if I manually trigger a DHCP request, Technitium provides a different IP and not the previous/statically reserved IP. This happens with multiple devices so it's not OS related.
IP reservation set on Technitium:
You can see that the new/wrong lease is present on the DHCP client list:
For the time being, I had this issue only with LXC or VM configured in Proxmox, using standard configurations (virtio, different MAC addresses) as always did flawlessly. I had no similar issues with other DHCP servers so far.