loss of internet after configuring raspberry pi as dhcp server

Please follow the below template, it will help us to help you!

If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx, apache2 or another reverse proxy, or there is some other aspect of your install that is customised) - please use the Community Help category.

Expected Behaviour:

I just installed the latest version of pihole on my raspberrypi 3. The plan was to use Pi-hole to control the internet access in my house.

Actual Behaviour:

From the router admin webpage, I assigned a static IP address to the raspberrypi. Then I disabled the router as a DHCP server, and enabled the raspberrypi as the DHCP server. It works fine at this step. I was able to see all the device wifi connection from Pi-hole UI.

But after I assigned static IP address to one of the connected devices from Pi-hole, the failure happened. All the wifi connections were lost. The raspberrypi lost its ip address. I had to reset the router to the factory default to recover the internet connections.

Can you let me know if there is anything wrong about what I did or a bug with Pi-hole?

Thanks.

When you disable the router DHCP server, the assigned static IP will be lost.

It works fine at this step.

This may temporarily work, but it will fail when the router's DHCP lease expires.
The correct way to do it is to configure an static IP directly on the Raspberry Pi OS.

Thanks for the reply. My goal is to control the internet access time from a few devices. Is it possible to achieve using Pi hole? If yes, how? My router doesn’t allow change of DNS so I can only do it through dhcp erver

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