No address range available for DHCP request via eth0

Expected Behaviour:

I am on a raspberry pi 3A+, running raspberry pi OS. I was previously running pi-hole, unbound, and using pi-hole as a DHCP server. I was having no problems, but I was doing this all through the onboard Wi-Fi card, recently I got a USB to ethernet adapter and that changed.

Actual Behaviour:

I went through the process of removing the old static IP and reassigning it to the new ethernet connection, pi-hole and unbound seem to be working perfectly. But whenever I try to use it as a DHCP server I am unable to obtain IP addresses on my devices and pi-hole gives me the "
No address range available for DHCP request via eth0" message.

Debug Token:

https://tricorder.pi-hole.net/2GY2cNrC/

Your /etc/pihole/setupVars.conf file is set to use wlan0:

*** [ DIAGNOSING ]: Setup variables
    PIHOLE_INTERFACE=wlan0

But your wifi is disabled.

1 Like

Thank you, I just changed
PIHOLE_INTERFACE=wlan0

to
PIHOLE_INTERFACE=eth0

and it all worked perfectly.

I'm glad you fixed it.

Just for your information, another way to change this value is using pihole -r, selecting "Reconfigure" and changing the desired options.

1 Like

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