Hello,
Ive got a raspberry pi one that runs pi-hole only, I've enabled dhcp on it and now my network doesn't work.
I cannot get to the web interface, is there a way to disable the dhcp option via the command line on the pi? I have a keyboard and screen connected to it directly so have access to the os but the hardware doesn't support it's own browser (hardware lacks support for neon simd extensions) so I'm trying to figure out how to disable the dhcp through the command line
Core: v6.4.1
Web: v6.5
FTL: v6.6
Did you try to access Pi-hole's web UI via its IPv4 address, as shown e.g. by ip -4 address?
I've tried from my LAN through my PC and through my phone over WiFi but I cannot get to it “This site can't be reached - took too long to respond”
Run from your Pi-hole machine, please share the output of
ip -4 address
I dont think your main issue is related to the DHCP service being active on Pi-hole but here you go:
sudo pihole-FTL --config dhcp.active false
The main issue is, have you configured static IP details manually on the Pi itself which is a requirement?
Ip -4 address - 192.168.1.5
I set it as static many moons ago.
I changed my router and PC to use 8.8.8.8 as my dns instead of pi-hole, then I was able to access the webgui, unticked the dhcp option.
Re-enabled dhcp on my router, and changed the dns from 8.8.8.8 back to 192.168.1.5 and all is back to normal.
Bucking_Horn Thanks for your time trying to help me.
deHakkelaar: If I run into this problem again I'll use that CLI command.
I tried searching for cli commands before posting here but all I could find was posts from way-back-when using “sudo pihole -a disabledhcp” and that didn't work.
Cheers.
How and where?
It strongly depends on what distro and release version you're running.
Maybe you've configured it in the wrong spot.
You can check your distro release with below one (for systemd distros):
hostnamectl | grep Operating
Disabling dhcp through the Pi-hole CLI only turns off the DHCP server that Pi-hole includes. It has no effect on the IP addressing of the Pi-hole server itself.
Are you using both the router as a DHCP server and Pi-hole as a DHCP server?
Is the 192.168.1.5 address inside of any pool of addresses that your DHCP server may hand out? It is good to set the Pi-hole server's IP address as static but then you need to make sure that no other client or computer on the network can also get that same IP address.