Hello all,
I have a question about my piHole, which I am running on a RaspiPi 1.
I have the problem that my Raspi has no internet connection when I start the Pi and the router is not fully started (or not yet fully booted).
I.e. if I have a power failure and both my router (FritzBox) and my Pi reboot at the same time, my Pi has no internet connection because the router takes 1 minute to become fully functional. So I have to reboot my Pi whenever the router is functional.
Unfortunately, I am a typical Windows user without any experience with Linux :/.
Is there a script or command I can run where after 5 minutes after startup my Pi checks if the internet connection is working and if not, it should reboot or at least disable and re-enable the Lan connection to get the internet connection working properly.
Does anyone else have this problem? I have reinstalled the software on my Pi several times but the problem is still there.
I am really looking forward to some experienced Linux users I hope you guys can understand my problem and help me.
Does this setting help? In /etc/pihole/pihole-FTL.conf
DELAY_STARTUP=0
During startup, in some configurations, network interfaces appear only late during system startup and are not ready when FTL tries to bind to them. Therefore, you may want FTL to wait a given amount of time before trying to start the DNS revolver. This setting takes any integer value between 0 and 300 seconds.
This sounds like your Pi device gets its IP from your router via DHCP instead of having a static IP. And while the router boots and DHCP is not available, your Pi is auto-configuring to use a fallback IP address (IPv4LL).
Did you configure your Pi device with a static IP address (not fixed DHCP assignment)?
During installation pihole gives itself a static IP which I accepted, I kept the router as DHCP server. After installing pihole I set the IP address of pihole outside the DHCP range of the router and set it to fixed "Always use this address", so the router gives pihole the same IP every time.
How can I see what IP my Raspi is using if it doesn't get the selected IP from the router? (If the router is not ready when the pihole starts up)
When my router is online i know which Ip it has, but when my pi start at the same time as my router does, i can‘t see the device in my Router. Or do I? Hmm…let me check that…