AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

DHCP listing duplicate IP's for same device

Open nishikant opened this issue 10 months ago • 9 comments

Prerequisites

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

Image

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.

nishikant avatar Jan 17 '26 12:01 nishikant

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?

Image

tjharman avatar Jan 18 '26 01:01 tjharman

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.

nishikant avatar Jan 18 '26 03:01 nishikant

What is throwing the error? If AdGuardHome can you upload the log file please?

tjharman avatar Jan 18 '26 04:01 tjharman

Image This is what I see on my mac.

Will try to capture adguardhome logs and share.

nishikant avatar Jan 19 '26 07:01 nishikant

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.

tjharman avatar Jan 19 '26 07:01 tjharman

Hi - any progress on this one?

tjharman avatar Jan 29 '26 18:01 tjharman

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.

  1. I changed adguardhome's data directory to /adguardhome by editting /etc/config/adguardhome. option work_dir '/adguardhome'
  2. Added /adguardhome/data/leases.json to backup config.
  3. Configured static leases to all the devices.
  4. This works even after unattended upgrade.

And things seems to be stable.

nishikant avatar Jan 30 '26 06:01 nishikant

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?

GulnazSalakhova avatar Jun 17 '26 10:06 GulnazSalakhova

Closing due to inactivity.
If the issue persists, please leave a comment and we'll be happy to reopen the issue.

VsevolodNaumov avatar Jul 21 '26 13:07 VsevolodNaumov