Set up ZTE F670L to work with Raspberry Pi 4B 2GB with Pi Hole

I just bought a Raspberry Pi 4B 2GB which I want to use as a PI Hole and perhaps OpenDNS to make it even better. I am planning to attach it to my ZTE F670L Router that is the Thai TOT ISP Router with a dynamic external ip address. And then use th Pi for dealing with all the DNS requests but also for parental control.

ZTE Details

|Model|F670L|
|---|---|
|Serial Number|DCF8B9-ZTEEQHEKB608400|
|Hardware Version|V1.1.01|
|Software Version|V1.1.20P1T5|
|Boot Loader Version|V1.1.20P1T5|
|PON Serial Number|ZTEGC8C03730|
|Batch Number|07e3P1T5006d|

Now the ZTE LAN shows this for DHCP Server

If I want the Pi Hole to work how should I adjust settings here? Should I replace DNS Server1 IP Address 's gateway ip address with one the PI uses?

But how can I keep one ip address fixed for the Pi Hole? Reading docs:

Pi-hole needs a static IP address to properly function (a DHCP reservation is just fine). Users may run into issues because we currently install dhcpcd5, which may conflict with other running network managers such as dhclient, dhcpcd, networkmanager, and systemd-networkd.

Then again I read

As part of our install process, we append some lines to /etc/dhcpcd.conf in order to statically assign an IP address, so take note of this before installing.

So perhaps the script does it but how to avoid conflict then?

I see we need it, but I am not sure how to do this and also avoid a conflict with other addresses on the network if I keep ZTE DHCP. Perhaps I need to turn that off, but then I need the Pi Hole on Raspberry Pi to run as a DHCP server.

Thanks for any tips on getting further with this.

Yes.

Assign the static IP on the Pi in file /etc/dhcpcd.conf. With a local static IP, the Pi will not request and IP from the DHCP server.

Assign this IP outside the DHCP range of the router. Set the router DHCP range from 10 to 200 (for example), and set the static IP of the Pi to 5, or 210, etc.

1 Like

Current ip range for ISP Router/Modem DHCP is from 192.168.1.2 to 192.168.1.254 , subnet mask 255.255.255.0 with the router using 192.168.1.1

So I could set the DHCP range from 192.168.1.2 - 192.168.1.200, set Raspberry Pi 4B 2GB Pi Hole at 192.168.1.210 (outside DHCP range). And then set the DNS Server1 IP address also at 192.168.1.210 matching the Pi Hole, correct?

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