Pi-Hole IP-Adresse

Ich habe eine Frage

Ich habe ein ARRIS Router und immer wenn ich ihn neustarte ändern sich die IP-Adressen auch vom PI-Hole und dann muss ich PI-Hole immer rekonfigurieren das ist etwas schade

Kann mir jemand vllt. sagen wie ich das deaktivieren kann das immer wieder eine neue IP-Adressen verteilt wird

Oder muss ich diese Frage im Support vom Router Stellen oder kann mir hier jemand Vllt. weiter helfen wäre echt nett

Habe Pi-Hole aktuell auf einem Raspberry Pi 3 B per LAN Kabel am Router angeschlossen vllt hilft das weiter :slight_smile:

Make the IP address on the Pi static. If you run pihole -r and select "reconfigure" you will have the option to make the assigned IP static.

1 Like

In der Annahme, dass im Router DHCP aktiviert ist, bspw. für den Bereich 192.168.2.x - 192.168.2.100, auf dem Raspi eine feste IP außerhalb dieses Bereiches, z.B. 192.168.2.150, konfigurieren (/etc/dhcpcd.conf)

1 Like

Wenn ich ihn Rekonfiguriere dann sind aber meine Blocklisten weg das hatte ich schonmal

You can export them with teleporter and then reimport them, or you can manually change the static IP mapping of the Pi. Depending on which OS you run, it may be different.

sudo nano /etc/dhcpcd.conf

You may see something similar to this. If not, then create it and set the static IP to what you want, then reboot.

interface eth0
        static ip_address=192.168.0.160/24
        static routers=192.168.0.1
        static domain_name_servers=127.0.0.1