[SOLVED] Ethernet issues XU4 Ubuntu 16.04 on router reboot!

Moderators: odroid, mdrjr

[SOLVED] Ethernet issues XU4 Ubuntu 16.04 on router reboot!

Unread postby TeHashX » Wed Jul 27, 2016 10:28 pm

I have a strange situation, if I reboot the router, xu4 won't connect anymore to lan, only solution is to reboot odroid manually with the mouse or replug power cord.
The curious thing is even if I replug network cable won't reconnect until reboot.
Anyone else with the same issue? Please test.

SOLUTION!!! http://forum.odroid.com/viewtopic.php?f=95&t=22760&p=153422#p153422
Last edited by TeHashX on Sun Jul 31, 2016 9:39 pm, edited 2 times in total.
User avatar
TeHashX
 
Posts: 175
Joined: Wed Aug 13, 2014 4:14 am
languages_spoken: english
ODROIDs: C2

Re: Ethernet issues on XU4 and Ubuntu 16.4

Unread postby TeHashX » Thu Jul 28, 2016 4:41 pm

I get the same issue with Ubuntu 15.10, somehow router put ethernet on standby on reboot and I only connect again if I reboot odroid :(
User avatar
TeHashX
 
Posts: 175
Joined: Wed Aug 13, 2014 4:14 am
languages_spoken: english
ODROIDs: C2

Re: Ethernet issues on XU4 and Ubuntu 16.4

Unread postby odroid » Thu Jul 28, 2016 7:43 pm

How about running "ifconfig eth0 down" and "ifconfig eth0 up"?
User avatar
odroid
Site Admin
 
Posts: 27932
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Ethernet issues on XU4 and Ubuntu 16.4

Unread postby TeHashX » Thu Jul 28, 2016 9:28 pm

eth0: ERROR while getting interface flags: No such device

With clean ubuntu 16.04 image, I access odroid desktop with hdmi cable, go to network icon and deleted "wired connection1", reboot (no internet access), go one more time to network icon and now I have another option "Auto Ethernet".
After selecting manually "Auto Ethernet" I get internet access and I can reboot router how many times I want, XU4 connects automatically :)
How can I do this steps from terminal because I don't use hdmi connection?
Thanks
User avatar
TeHashX
 
Posts: 175
Joined: Wed Aug 13, 2014 4:14 am
languages_spoken: english
ODROIDs: C2

Re: Ethernet issues on XU4 and Ubuntu 16.4

Unread postby TeHashX » Thu Jul 28, 2016 9:44 pm

Sorry, I forget to mention, I have to create /etc/network/interfaces.d/eth0
with
auto eth0
iface eth0 inet dhcp

Shouldn't be by default there?
User avatar
TeHashX
 
Posts: 175
Joined: Wed Aug 13, 2014 4:14 am
languages_spoken: english
ODROIDs: C2

Re: Ethernet issues on XU4 and Ubuntu 16.4

Unread postby TeHashX » Fri Jul 29, 2016 12:26 am

I tried 1000 combinations and not working anymore, reflashing image again...
User avatar
TeHashX
 
Posts: 175
Joined: Wed Aug 13, 2014 4:14 am
languages_spoken: english
ODROIDs: C2

Re: Ethernet issues on XU4 and Ubuntu 16.4

Unread postby TeHashX » Fri Jul 29, 2016 12:34 am

On fresh install:
root@odroid:~# ifconfig
enx001e0630158f Link encap:Ethernet HWaddr 00:1e:06:30:15:8f
inet addr:192.168.5.237 Bcast:192.168.5.255 Mask:255.255.255.0
inet6 addr: fe80::21e:6ff:fe30:158f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:137419 errors:0 dropped:0 overruns:0 frame:0
TX packets:23600 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:202096181 (202.0 MB) TX bytes:1873904 (1.8 MB)

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:286 errors:0 dropped:0 overruns:0 frame:0
TX packets:286 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:24230 (24.2 KB) TX bytes:24230 (24.2 KB)

Where enx001e0630158f name is coming from? Should be eth0, how do I change?
User avatar
TeHashX
 
Posts: 175
Joined: Wed Aug 13, 2014 4:14 am
languages_spoken: english
ODROIDs: C2

Re: Ethernet issues on XU4 and Ubuntu 16.4

Unread postby crossover » Fri Jul 29, 2016 11:41 am

crossover
 
Posts: 112
Joined: Wed Jul 22, 2015 2:23 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, USB-IO, HC2, Tinkering kits

Re: Ethernet issues on XU4 and Ubuntu 16.4

Unread postby TeHashX » Sat Jul 30, 2016 12:12 am

I added to /etc/udev/rules.d/10-odroid.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1e:06:30:15:8f", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

Now I have eth0 and I stop/start from hdmi with
Code: Select all
ifconfig eth0 down
ifconfig eth0 up

But how do I start from ssh if eth0 is down? :( And anyway this is not a solution, I want to reconnect automatically on every router reboot.
User avatar
TeHashX
 
Posts: 175
Joined: Wed Aug 13, 2014 4:14 am
languages_spoken: english
ODROIDs: C2

Ethernet issues XU4 Ubuntu 16.04 on router reboot!

Unread postby TeHashX » Sun Jul 31, 2016 9:35 pm

I tried with an old Sitecom router and it works out of the box but on my Asus RT-AC68U won't reconnect
After many searches and tries, I found the solution
1 - Clean Ubuntu 16.04 install http://odroid.com/dokuwiki/doku.php?id=en:xu3_release_linux_ubuntu
2 - Update
Code: Select all
apt update && apt upgrade -y

3 - Update linux-image (don't abort removal!)
Code: Select all
apt install linux-image-xu3

4 - Disable consistent network device naming and enable "old" behaviour
Code: Select all
ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules

5 - Reboot Odroid
Code: Select all
reboot

If you reboot router but XU4 will not reconnect automatically, replug power cord and try this steps
6 - Create interfaces
Code: Select all
cat << EOF > /etc/network/interfaces.d/lo
auto lo
iface lo inet loopback
EOF

Code: Select all
cat << EOF > /etc/network/interfaces.d/eth0
auto eth0
iface eth0 inet dhcp
EOF

Code: Select all
cat >> /etc/network/interfaces << 'EOF'

auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
EOF

7 - Reboot Odroid
Code: Select all
reboot

Now you can reboot router as many times you want and XU4 will reconnect automatically
Last edited by TeHashX on Tue Aug 23, 2016 1:57 am, edited 4 times in total.
User avatar
TeHashX
 
Posts: 175
Joined: Wed Aug 13, 2014 4:14 am
languages_spoken: english
ODROIDs: C2

Re: [SOLVED] Ethernet issues XU4 Ubuntu 16.04 on router rebo

Unread postby odroid » Tue Aug 02, 2016 12:18 pm

Thank you for sharing the instruction.
I've added a link of your guide on our WiKi page.
http://odroid.com/dokuwiki/doku.php?id= ... buntu_1604
User avatar
odroid
Site Admin
 
Posts: 27932
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 3 guests