TechnitiumSoftware / DnsServer

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

DHCP Reserved #701

Closed dhenry123 closed 5 months ago

dhenry123 commented 10 months ago

Hi I m working on raspberry pi with debian. I 've set Reserved address 10.1.10.2 for the mac XX-XX-XX-XX-XX and server got this ip address.

I reboot the server and dhcp log tells (server is rebooting) :

[2023-08-14 07:25:01 UTC] DHCP Server cannot allocate reserved lease [10.1.10.2] to XX-XX-XX-XX-XX for scope 'MyDHCPSCOPE': The IP address is already allocated.
[2023-08-14 07:25:01 UTC] DHCP Server cannot allocate reserved lease [10.1.10.2] to XX-XX-XX-XX-XX for scope 'MyDHCPSCOPE': The IP address is already allocated.
[2023-08-14 07:25:04 UTC] DHCP Server cannot allocate reserved lease [10.1.10.2] to XX-XX-XX-XX-XX for scope 'MyDHCPSCOPE': The IP address is already allocated.

And finally give me a non reserved IP 10.1.10.5, the mac adress is correct, and the same as set in reserved ip.

[2023-08-14 07:25:04 UTC] [0.0.0.0:68] DHCP Server offered IP address [10.1.10.5] to ServerHostname [XX-XX-XX-XX-XX] for scope: MyDHCPSCOPE
[2023-08-14 07:25:04 UTC] DHCP Server cannot allocate reserved lease [10.1.10.2] to XX-XX-XX-XX-XX for scope 'MyDHCPSCOPE': The IP address is already allocated.
[2023-08-14 07:25:04 UTC] DHCP Server cannot allocate reserved lease [10.1.10.2] to XX-XX-XX-XX-XX for scope 'MyDHCPSCOPE': The IP address is already allocated.
[2023-08-14 07:25:04 UTC] [0.0.0.0:68] DHCP Server leased IP address [10.1.10.5] to ServerHostname [XX-XX-XX-XX-XX] for scope: MyDHCPSCOPE

Thank for your software...

ShreyasZare commented 10 months ago

Thanks for the post. Check this issue for the solution. You just need to edit your client to use MAC address as the DHCP Client Identifier.

dhenry123 commented 1 month ago

Sorry for the delay, my problem has been solved since I used the "Ignore Client Identifier (Option 61)" option. Thank you very much for your amazing work

ShreyasZare commented 1 month ago

Thanks for the feedback!