DHCP just doesn't want to stay on

I'm having a bit of an issue with my Pi. I've got RaspberryPi 4 running ONLY Pi-Hole. (No Docker or anything) I did a fresh install around 30 mins ago. It does have a static IP 192.168.1.30. I need to use DHCP on it as I have a router that comes from ISP and it does not allow to do many changes. I did turned off the DHCP on the router


and enabled DHCP on PiHole:

Expected Behaviour:

I want to DHCP on Raspberry being turned on and staying on.

Actual Behaviour:

After around 30 mins DHCP turns off on Raspberry for some reason and just doesn't work.

Debug Token:

https://tricorder.pi-hole.net/r6G6BklU/

I trust you set a static IP address on the OS of the machine that runs Pi-hole?

If you didn't, your machine would have lost its IPv4 as soon as its DHCP lease as acquired through your router's DHCP server had expired.
A DHCP server can't operate without an IP, so as soon as your other client DHC leases would have expired, they also wouldn't have been able to acquire a new DHCP lease, which would perfectly explain your observation.


That's the setup, it should stay as static, isn't it?

You don't want the DHCP server to have an IP address inside the pool of addresses to give to clients. You run the risk of having the DHCP's server address assigned to a client.

Your pool is set for 192.168.1.10 through 192.168.1.240 so your static IP of 192.168.1.30 should be set to a value that is less than .10 or greater than .240.

1 Like

Could I just make a pool starting from 31? Most of devices start at around 100 anyway, that would make it easier really.

Yes.

You can keep the range and change the static IP (like suggested above) or you can keep the static IP and change the DHCP range. It's your choice.

1 Like

Hi! I've tried changing pool from 40, it still turned off. The fun thing is, that before I actually updated and installed with fresh install, everything was working fine. Any other ideas?

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