DHCP listing duplicate IP's for same device
Prerequisites
-
[x] I have checked the Wiki and Discussions and found no answer
-
[x] I have searched other issues and found no duplicates
-
[x] I want to report a bug and not ask a question or ask for help
-
[x] I have set up AdGuard Home correctly and configured clients to use it. (Use the Discussions for help with installing and configuring clients.)
Platform (OS and CPU architecture)
Custom (please mention in the description)
Installation
Custom package (OpenWrt, HomeAssistant, etc; please mention in the description)
Setup
On a router, DHCP is handled by AdGuard Home
AdGuard Home version
Version: 0.107.71
Action
DHCP should assign a IP only once to a MAC.
Expected result
No IP conflict and single IP assignment
Actual result
Additional information and/or screenshots
My setup is ISP (192.168.1.1) -> Raspberry PI 5 (192.168.1.5 [wan] & 192.168.3.1 [lan]) -> eero mesh (bridge mode: 1 main and 2 extenders). Adguardhome runs on Openwrt installed on Raspberry pi 5. DHCP runs on 192.168.3.1 and is supposed to assign IP's to all devices.
I don't see any duplicates there? They're the same MAC address assigned to the same IP. Yes, the hostname has changed but there's no IP Address conflict or actual problem here, is there? Or do I miss something?
This throws error on device trying to connect. It throws IP already assigned message. Don't have a screenshot of that.
I have switched to dnsmasq dhcp for now.
What is throwing the error? If AdGuardHome can you upload the log file please?
This is what I see on my mac.
Will try to capture adguardhome logs and share.
This sounds like you have some other device handing out DHCP addresses. What does your routers arp table show? Are you sure you didn't statically set an IP address somewhere?
I am almost certain this is a local network problem and not an AdGuardHome issue.
Did you just turn off one DHCP server and then turn on AdguardHomes? That would cause this.
Hi - any progress on this one?
I switched the dhcp to adguardhome and faced same issue. I could not figure out how to enable dhcp logging in adguardhome. So I found a work around for this problem.
I am running this on openwrt, where the data directory is in /tmp, and it gets wiped after every reboot.
- I changed adguardhome's data directory to /adguardhome by editting /etc/config/adguardhome. option work_dir '/adguardhome'
- Added /adguardhome/data/leases.json to backup config.
- Configured static leases to all the devices.
- This works even after unattended upgrade.
And things seems to be stable.
Hi @nishikant, it's been a while you mentioned things are stable with your workaround. Do you have any remaining questions, or can I close this issue?
Closing due to inactivity. If the issue persists, please leave a comment and we'll be happy to reopen the issue.