ODroid XU4 - v6.15 - Network settings not saved on reboot.

Having issues with your DietPi installation, or, found a bug? Post it here.
cyanide
Posts: 9
Joined: Tue Mar 13, 2018 6:51 am

ODroid XU4 - v6.15 - Network settings not saved on reboot.

Post by cyanide »

Just updated my odroid xu4 to dietpi 6.15

Network settings are lost on reboot. Here is how I have them (replace xx with IP):
IP: 192.168.1.xx/24
Router: 192.168.1.1
DNS: 127.0.0.1 (Pihole)

Extra hosts added to /etc/hosts

Behavior noticed after the update to 6.15

Upon every reboot, eth0 isn't brought up automatically.

I have to do the following:

Code: Select all

ifconfig eth0 up
ifconfig eth0 192.168.1.xx netmask 255.255.255.0
route add default gw 192.168.1.1
Setting them in dietpi-config does nothing. The /etc/network/interfaces file has the correct settings. But they are not applied on startup. This is a big problem because the odroid is running headless, so I need to attach a monitor and a keyboard to turn on networking again.
Shanther
Posts: 41
Joined: Sat Mar 04, 2017 3:12 pm

Re: ODroid XU4 - v6.15 - Network settings not saved on reboot.

Post by Shanther »

I am experiencing the exact same issue. At least now I have a temp fix. Thank you.
User avatar
WarHawk
Posts: 610
Joined: Thu Jul 20, 2017 8:55 am

Re: ODroid XU4 - v6.15 - Network settings not saved on reboot.

Post by WarHawk »

Could you put that string in /etc/rc.local?

Code: Select all

ifconfig eth0 up
ifconfig eth0 192.168.1.xx netmask 255.255.255.0
route add default gw 192.168.1.1
Odd that it doesn't come up...
cyanide
Posts: 9
Joined: Tue Mar 13, 2018 6:51 am

Re: ODroid XU4 - v6.15 - Network settings not saved on reboot.

Post by cyanide »

Further discussion is carried on here: https://github.com/Fourdee/DietPi/issues/2071

If anyone has anything to add or another data point, please feel free to join in.

The easier thing is to simply do

Code: Select all

service networking start
or

Code: Select all

systemctl start networking
No need to even enter the ifconfig or route command. The networking service fails to start on boot and this causes the actual issue.
Joseph_Lin
Posts: 22
Joined: Tue Sep 26, 2017 2:56 am

Re: ODroid XU4 - v6.15 - Network settings not saved on reboot.

Post by Joseph_Lin »

It does not work on my Odroid C2
User avatar
MichaIng
Site Admin
Posts: 2294
Joined: Sat Nov 18, 2017 6:21 pm

Re: ODroid XU4 - v6.15 - Network settings not saved on reboot.

Post by MichaIng »

@Joseph_Lin
If you are on Jessie, could you please try:

Code: Select all

sed -i '/[[:blank:]]Workaround_WiFi$/a\\t\tsystemctl start networking' /DietPi/dietpi/boot
Shanther
Posts: 41
Joined: Sat Mar 04, 2017 3:12 pm

Re: ODroid XU4 - v6.15 - Network settings not saved on reboot.

Post by Shanther »

6.16 did NOT fix this issue.
User avatar
MichaIng
Site Admin
Posts: 2294
Joined: Sat Nov 18, 2017 6:21 pm

Re: ODroid XU4 - v6.15 - Network settings not saved on reboot.

Post by MichaIng »

Indeed, I also thought that this fix needs to be done first, as it breaks all Jessie systems :?.

However did you try the above?
Shanther
Posts: 41
Joined: Sat Mar 04, 2017 3:12 pm

Re: ODroid XU4 - v6.15 - Network settings not saved on reboot.

Post by Shanther »

Not yet. I just do the following:

Code: Select all

ifconfig eth0 up
ifconfig eth0 192.168.1.49 netmask 255.255.255.0
route add default gw 192.168.1.1




edit the following DNS

Code: Select all

nano /etc/resolv.conf
cyanide
Posts: 9
Joined: Tue Mar 13, 2018 6:51 am

Re: ODroid XU4 - v6.15 - Network settings not saved on reboot.

Post by cyanide »

You can either follow MichaIng's instruction or do

Code: Select all

sudo service networking start
instead of the ifconfig and route commands. It will bring up the interface and restore your network settings. I guess 6.17 will have the fix for this.
Last edited by cyanide on Thu Sep 20, 2018 4:30 pm, edited 1 time in total.
Post Reply