Diet Pi Changed or Reset networking?

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
User avatar
Zee
Posts: 1
Joined: Mon Aug 02, 2021 8:51 pm

Diet Pi Changed or Reset networking?

Post by Zee »

Long story short I am running Diet Pi on an RBP4. It's whole purpose is solely as a Pihole that is running as a DHCP server and DNS for the adblocking side.

For some reason today my network went down while I was at work. I got home and realized my Pi wasn't working correctly.

Initially upon rebooting the cloudshell screen came up.

After checking my Dietpi network configuration I realized it somehow changed from my static settings to automatic. Once I reset these settings back to static my Dietpi was connected and thus my Pihole and network was back online.

Any idea's on what could have caused such an issue?
User avatar
WarHawk
Posts: 781
Joined: Thu Jul 20, 2017 8:55 am

Re: Diet Pi Changed or Reset networking?

Post by WarHawk »

did you have your dietpi setup w/ a static IP address?

Did you use dietpi-config to set static IP?

This is how I setup my pihole
If not it pulled a DHCP address from your router
A. Log into your router and find the address assigned to the pi
B. Run angryipscanner and find it what way (or nmap for linux)
C. Set static IP for pihole machine outside your normal DHCP addressing block but not as default gateway
D. Turn on DHCP server from pihole machine
E. Disable DHCP server from router
User avatar
Joulinar
Posts: 5997
Joined: Sat Nov 16, 2019 12:49 am

Re: Diet Pi Changed or Reset networking?

Post by Joulinar »

I guess issue is not about setting STATIC or DHCP IP. It's more that current STATIC settings seems to be vanished over night and system was restarting with DHCP instead.

@Zee
STATIC IP configuration is done in /etc/network/interfaces file. Usually this can not change out of the sudden. Honestly I have no idea how this could happen.

@MichaIng
Any thoughts?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3357
Joined: Sat Nov 18, 2017 6:21 pm

Re: Diet Pi Changed or Reset networking?

Post by MichaIng »

It is definitely not changed by our scripts when not running dietpi-config manually. Would be interesting what the /etc/network/interfaces content is, when it changed to DHCP.

One guess, if Pi-hole was installed via their installer and not via dietpi-config, is that dhcpcd may interfere. Actually it should not do anything as of /etc/network/interfaces content, but it is a DHCP client so potentially is able to lease and apply DHCP settings. Solution would be apt purge dhcpcd5, which should be done in any case now, as also Pi-hole removed it finally from their dependencies for next release: https://github.com/pi-hole/pi-hole/pull/4260
Post Reply