TechnitiumSoftware / DnsServer

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

Error allocating DHCP Addresses #908

Closed rednus closed 3 months ago

rednus commented 5 months ago

I have couple of devices that restart every night, and the next morning they are not on the network (ping fails) with below error repeating on the logs. Not sure if this is an issue with the device, router (I use Nest Wifi Pro) or Technitium. Help please.

[2024-04-22 11:45:59 Local] [0.0.0.0:68] DHCP Server offered IP address [192.168.1.33] to CAMERA [XX-XX-XX-XX-XX-XX] for scope: Default [2024-04-22 11:46:00 Local] DHCP Server cannot allocate reserved lease [192.168.1.33] to XX-XX-XX-XX-XX-XX for scope 'Default': The IP address is already allocated. [2024-04-22 11:46:00 Local] DHCP Server cannot allocate reserved lease [192.168.1.33] to XX-XX-XX-XX-XX-XX for scope 'Default': The IP address is already allocated. [2024-04-22 11:46:00 Local] DHCP Server cannot allocate reserved lease [192.168.1.33] to XX-XX-XX-XX-XX-XX for scope 'Default': The IP address is already allocated.

Additional info:

ShreyasZare commented 5 months ago

Thanks for the post. I am assuming that the MAC addresses in these log entries are all same. Do you have the "Ignore Client Identifier (Option 61)" option enabled in your Default scope? Usually this issue comes up since some devices generate a new client identifier when they reboot and thus making it not possible to assign same IP address to them. Enabling the "Ignore Client Identifier (Option 61)" option fixes these kind of issues.

rednus commented 5 months ago

Hi Shreyas,

I have enabled this option now. Will let you know if this has been resolved.

Thanks

ShreyasZare commented 5 months ago

I have enabled this option now. Will let you know if this has been resolved.

Since it was not enabled earlier, the existing reserved leases will need to be deleted manually otherwise existing clients wont receive these lease until they expire and would get a dynamic lease assigned till then.

rednus commented 5 months ago

Thanks. I only have 1 or 2 dynamic leases in the network all others are Reserved leases.

I will restart the network when I get a chance.