Pi hole assigns incorrect IP to client

Hello,

I'm using pihole as a dhcp server, I assigned some static leases to some clients because those devices should always use the same ip. Those static leases are outside the range of my DHCP server,
but 1 device keeps getting an incorrect IP.


as you can see, the mac address matches.
.233 was the address originally issagned, but I removed that, reset the device.
the leasetime is 24hours.
but after 3 days, the ip is still incorrect.

I think I need to flush some cache, but not sure, what can I do?

Have you verified that the MAC ID is current for that client? Some operating systems change the MAC ID for each network to which the client connects.

yes, it's accurate
if the mac was different, it wouldn't be in the list with active leases.
first I thought the device itself remembered for to long, but then the address wouldn't re appear in the list.

What the relevant lines for that client in

cat /etc/pihole/dhcp.leases 
          
cat /etc/dnsmasq.d/04-pihole-static-dhcp.conf
1681578012 84:d6:c5:03:6b:cf 192.168.180.233 * 01:84:d6:c5:03:6b:cf

and

dhcp-host=84:D6:C5:03:6B:CF,192.168.180.24,SolarEdge-Lan

Try manually removing the first entry and reconnect that device to the network.

strange, I already tried that, then it didn't work, but now it does,
the only difference now was that I now unplugged the network cable, then removed the entry(using the interface) and then plugged it back in, where earlier I removed the entry, then restarted the device.

Thanks , because it works.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.