hello, I am unable to get the dhcp server running properly on my pihole. It seems like it is not assigning any ip to newly connected devices
Here is my router configuraion:
And this is my pihole configuration:
What is the IP of your pi-hole please?
it is 192.168.1.2 i set it as static, you can see at the bottom of the router config
Your pi-hole is set with a static dhcp lease from your router. When you disable the dhcp server on your router, your pi-hole does not know where to get an IP from. This effectively stops the pi-hole from connecting to your network and handing out DHCP leases.
The solution is to set a static IP address of 192.168.1.2 on your pi-hole, that way it does not rely on an external dhcp server.
it looks like the dhcp server is not working at all on pihole.
After setting the static IP and enabling the DHCP server on the pi-hole, did you disable the DHCP server on your router? Having multiple DHCP servers can cause problems.
Are you running pihole along side librelec?
In your pihole setting, it looks like there is no value for the DHCP lease time. Could you try entering 1d in that text box and see if things work?
The static DHCP settings on the pihole (v6) should look something like this
To set a static IP ( 192.168.1.2 ) using Network Manage (CLI) do the following -
Set a static IP for your pihole using the 'network manager' (in the case of Debian Bookworm) via the pihole SSH interface (using a router directed ip address to start with, before disabling the router DHCP server).
e.g. for the pihole ethernet interface :
sudo nmcli -p connection show
sudo nmcli con mod "Wired connection 1" ipv4.addresses 192.168.1.2/24 ipv4.method manual
sudo nmcli con mod "Wired connection 1" ipv4.gateway 192.168.1.1
sudo nmcli con mod "Wired connection 1" ipv4.dns 192.168.1.2
sudo nmcli con down "Wired connection 1"
sudo nmcli con up "Wired connection 1"
On your computer, please set it back to DHCP and run
ipconfig /release
ipconfig /renew
Afterwards, please post the output of ipconfig /all and redact the IPv6 address if you have one.
Does not work. The PC does not get an IP address as it seems that the pihole DHCP server is malfunctioning. ipconfig /renew hangs. There is no connection on the PC
docker run --name pihole -p 53:53/tcp -p 53:53/udp -p 80:80/tcp -p 443:443/tcp -e TZ=Europe/Paris -e FTLCONF_web
server_api_password="*******" -e FTLCONF_dns_listeningMode=all -v ./etc-pihole:/etc/pihole -v ./etc-dnsmasq.d:/etc/d
nsmasq.d --cap-add NET_ADMIN --restart unless-stopped pihole/pihole:latest
It looks like the DHCP port has not been exposed in your docker config. Could you add -p 67:67/udp to your docker config please?
Allright I did expose that port as you suggested and also restarted the machine. All my devices are still not getting connected to the network. They are waiting for an ip to be assigned.
docker run --name pihole -p 53:53/tcp -p 53:53/udp -p 80:80/tcp -p 67:67/udp -p 443:443/tcp -e TZ=Europe/London -e FTLCONF_webserver_api_password="********" -e FTLCONF_dns_listeningMode=all -v ./etc-pihole:/etc/pihole -v ./etc-dnsmasq.d:/etc/dnsmasq.d --cap-add NET_ADMIN --restart unless-stopped pihole/pihole:latest
What is your setup? You posted a picture of libreElec earlier with the same IP as the pi-hole, and now you are saying that it's a docker container. We need more information.
I am running pihole on my raspberry in a docker container. The OS that the raspberry is running is Libreelec.
You can also just start nmtui and do everything step by step easily ![]()