Expected Behaviour:
Working DHCP for the Clients from PiHole, after restarting the router or reconnecting Pihole
Actual Behaviour:
I have a 5G Huawei router. Not much configurable, but I can turn off DHCP.
I followed the instructions for DHCP setup.
But after restarting the PiHole, the following problems occur::
- Error from Router LOG: pihole dhcp Wan ip address 192...* network conflicts with lan ip address 192.168.8.1
- My Router got a new Adress (from .8.1 to .9.1) to login (the gateway right?).
- Internet is down - because the router sets the PiHole as gateway (maybe the router uses the DHCP from the PiHole?? don't know if this is true, but it looks like it)
- Also interesting: the router has a local WAN IP address (leased from PiHole itself). But it must be a public one.
I also tried to set a static IP lease in Pi-Hole for the router, but that doesn't work.
My workaround when I have to reboot or when it automatically reboots is:
- I manually set my IP and can connect to the new router IP (.9.1).
- And in the routerpage, I set the gateway for the router back to .8.1 and everything works.
The funny thing is, when my pihole is connected, I can't reset the IP of the router to 192.168.8.1. It only works when the pihole is disconnected from my router (it is somehow reserved?).
If I do not reboot either the router or the pihole, everything works as expected.
I hope you can give me a hint or tip to get around this. Thanks in advance.