My set up is:
- PiHole running BookWorm OS
- TP-Link Router Archer AXE5400
I also had issues running DHCP from the PiHole using a TP-Link router. The problem is that if you reserve an IP for your PiHole, like 192.168.0.2, in the router but then turn off DHCP, the PiHole will not get assigned to 192.168.0.2 because reservations need DHCP running on the TP-Link router for the assignment to work.
One way of solving this is to set the DHCP IP address pool on the router from 192.168.0.2 to 192.168.0.2 while keeping the DHCP on. This will essentially only lease IP to the router and nothing else. Then, turn on DHCP on the PiHole. That should work.
I ended up setting a static IP on the PiHole to 192.168.1.2. Then you can turn off DHCP on the router and turn it on in the PiHole, and walla, everything seems to be working. I also disabled the WiFi on the PiHole because it’s hard to connect to the router. I am using BookWork OS on the PiHole.
Remember to restart your modem, router, and PiHole. I noticed issues if the devices were not restarted.
Here is a post I wrote on how to set a static IP on the PiHole that has BookWork OS:
https://www.helplessautomation.com/set-static-ip-with-pi-hole-dns-on-raspberry-pi/
For both solutions above, remember to set the router’s primary and secondary DNS servers to point to the PiHole IP.
I hope this helps. Let me know if anyone has any questions.
HLC