[Solved] No internet connection Odroid XU4

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
Blin
Posts: 5
Joined: Fri Nov 04, 2016 11:07 pm

[Solved] No internet connection Odroid XU4

Post by Blin »

Hello i just installed dietpi on odroidxu4 and after that installed sentora panel all is working fine i even rebooted the server and the panel is working fine my site is working what i don't understand why when i try to do any apt-get or to install a software from yours ones i get no connection , i don't use wifi and my reference bug report code is

Your reference code: 202d1590-dfa6-4f8e-a95c-9d53da7606e8-0

i did changed the source list with this ones before to install sentora it was a requirement for the packs used

deb http://ftp.us.debian.org/debian/ jessie main contrib non-free

deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free

deb-src http://security.debian.org/ jessie/updates main contrib non-free

This is the result of ifconfig -a

Code: Select all

eth1      Link encap:Ethernet  HWaddr 00:1e:06:32:3b:12
          inet addr:192.168.0.16  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::21e:6ff:fe32:3b12/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:103645 errors:0 dropped:0 overruns:0 frame:0
          TX packets:51212 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8387377 (7.9 MiB)  TX bytes:77740936 (74.1 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:1480 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1480 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:201082 (196.3 KiB)  TX bytes:201082 (196.3 KiB)

The result of cat /etc/network/interfaces

Code: Select all

auto lo
iface lo inet loopback

# Ethernet
allow-hotplug eth1
iface eth1 inet static
address 192.168.0.16
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 8.8.8.8 8.8.4.4

# Wifi
#allow-hotplug wlan0
iface wlan0 inet dhcp
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
wireless-essid Not_Set
wireless-key Not_Set
wireless-mode Managed
wireless-power off
wpa-ssid Not_Set
wpa-psk Not_Set
#dns-nameservers 8.8.8.8 8.8.4.4
The result of this code but i see i have eth1 instead of eth0

Code: Select all

ifconfig -a
ifdown eth1
killall -w dhclient
ifup eth1
ifconfig -a

Code: Select all

root@DietPi:~# ifconfig -a
eth1      Link encap:Ethernet  HWaddr 00:1e:06:32:3b:12
          inet addr:192.168.0.16  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::21e:6ff:fe32:3b12/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:85 errors:0 dropped:0 overruns:0 frame:0
          TX packets:96 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:12751 (12.4 KiB)  TX bytes:11841 (11.5 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:300 (300.0 B)  TX bytes:300 (300.0 B)

root@DietPi:~# ifdown eth1
root@DietPi:~# killall -w dhclient
dhclient: no process found
root@DietPi:~# ifup eth1
root@DietPi:~# ifconfig -a
eth1      Link encap:Ethernet  HWaddr 00:1e:06:32:3b:12
          inet addr:192.168.0.16  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::21e:6ff:fe32:3b12/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:130 errors:0 dropped:0 overruns:0 frame:0
          TX packets:125 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:15689 (15.3 KiB)  TX bytes:16239 (15.8 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:32 errors:0 dropped:0 overruns:0 frame:0
          TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3049 (2.9 KiB)  TX bytes:3049 (2.9 KiB)


Sorry for my english i'm not a native speaker
Last edited by Blin on Sun Nov 06, 2016 3:38 pm, edited 1 time in total.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: No internet connection Odroid XU4

Post by Fourdee »

iface eth1 inet static
Can you try with DHCP:
dietpi-config > Networking options: Adapters > Ethernet > Select DHCP and apply changes
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Blin
Posts: 5
Joined: Fri Nov 04, 2016 11:07 pm

Re: No internet connection Odroid XU4

Post by Blin »

I done that but still not possible to connect

Code: Select all

root@panel:~# ifconfig -a
eth1      Link encap:Ethernet  HWaddr 00:1e:06:32:3b:12
          inet addr:192.168.0.16  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::21e:6ff:fe32:3b12/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2381 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1633 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:195203 (190.6 KiB)  TX bytes:1112456 (1.0 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:125 errors:0 dropped:0 overruns:0 frame:0
          TX packets:125 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15223 (14.8 KiB)  TX bytes:15223 (14.8 KiB)

root@panel:~# ifdown eth1
Killed old client process
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth1/00:1e:06:32:3b:12
Sending on   LPF/eth1/00:1e:06:32:3b:12
Sending on   Socket/fallback
DHCPRELEASE on eth1 to 192.168.0.1 port 67
root@panel:~# killall -w dhclient
dhclient: no process found
root@panel:~# ifup eth1
Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth1/00:1e:06:32:3b:12
Sending on   LPF/eth1/00:1e:06:32:3b:12
Sending on   Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPOFFER from 192.168.0.1
DHCPACK from 192.168.0.1
bound to 192.168.0.16 -- renewal in 39790 seconds.
root@panel:~# ifconfig -a
eth1      Link encap:Ethernet  HWaddr 00:1e:06:32:3b:12
          inet addr:192.168.0.16  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::21e:6ff:fe32:3b12/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2575 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1776 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:210139 (205.2 KiB)  TX bytes:1291206 (1.2 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:150 errors:0 dropped:0 overruns:0 frame:0
          TX packets:150 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:17919 (17.4 KiB)  TX bytes:17919 (17.4 KiB)

and result of clear && cat /etc/network/interfaces

Code: Select all

#/etc/network/interfaces
#Please use DietPi-Config to modify network settings.

# Local
auto lo
iface lo inet loopback

# Ethernet
allow-hotplug eth1
iface eth1 inet dhcp
address 192.168.0.16
netmask 255.255.255.0
gateway 192.168.0.1
#dns-nameservers 8.8.8.8 8.8.4.4

# Wifi
#allow-hotplug wlan0
iface wlan0 inet dhcp
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
wireless-essid Not_Set
wireless-key Not_Set
wireless-mode Managed
wireless-power off
wpa-ssid Not_Set
wpa-psk Not_Set
#dns-nameservers 8.8.8.8 8.8.4.4

Maybe because is named eth1 and not eth0 how would i bring back to eth0
Blin
Posts: 5
Joined: Fri Nov 04, 2016 11:07 pm

Re: No internet connection Odroid XU4

Post by Blin »

I can ping sites update source list etc get files but from the dietpi tools is offline(when try to install any optimized software )


http://i.imgur.com/hyT1QZd.jpg

http://i.imgur.com/OUTy2iU.jpg

http://i.imgur.com/gCk4rjF.jpg
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: No internet connection Odroid XU4

Post by Fourdee »

Maybe because is named eth1 and not eth0 how would i bring back to eth0
Nope its fine.
We get this with some Odroid boards. DietPi automatically detects the 1st available adapter index's during boot for eth and wifi.
Aha, this is the Debian repo that is used to test the connection. The URL looks incorrect, not sure why, but lets try correcting it.

Please, select all, copy, then paste into the terminal:

Code: Select all

cat << _EOF_ > /etc/apt/sources.list
deb http://ftp.debian.org/debian jessie main contrib non-free
deb http://ftp.debian.org/debian jessie-updates main contrib non-free
deb http://security.debian.org jessie/updates main contrib non-free
deb http://ftp.debian.org/debian jessie-backports main contrib non-free
_EOF_
/DietPi/dietpi/func/dietpi-set_software apt-mirror http://ftp.debian.org/debian
apt-get clean
apt-get update
Now run DietPi-Software and see if the issue is resolved.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Blin
Posts: 5
Joined: Fri Nov 04, 2016 11:07 pm

Re: No internet connection Odroid XU4

Post by Blin »

Thank you that did the trick
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: No internet connection Odroid XU4

Post by Fourdee »

Blin wrote:Thank you that did the trick
Excellent.
Again, not sure why the apt mirror was being reported incorrectly on your installation, but if it happens again, let us know so we can look a little deeper into the issue.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply