Linino Yun : ethernet link down after 30 min

37 views
Skip to first unread message

Emmanuel Said

unread,
Oct 16, 2016, 4:13:00 AM10/16/16
to Linino




Hello,

On my linino yun , why the Ethernet link down after few minutes .

when the linino is ok :

root@linino:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         r8-r-rhpzm-1-pu 0.0.0.0         UG    10     0        0 eth1
128.141.161.0   *               255.255.255.0   U     10     0        0 eth1
192.168.240.0   *               255.255.255.0   U     0      0        0 wlan0
 


and after 20-30 min , under terminal i can see :

root@arduino:/# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
128.141.161.0   *               255.255.255.0   U     10     0        0 eth1
root@arduino:/#
root@arduino:/#



I can restart the network (under terminal ) :

/etc/init.d/network restart
[ 3328.510000] eth1: link down
[ 3330.370000] eth1: link up (100Mbps/Full duplex)
 


this is my linino yun :
root@linino:~# /usr/bin/lininoio -v
DISTRIB_ID="Linino"
DISTRIB_REVISION="223d5a8"
BUILD_DATE="2016-06-01"
 
 
can you help me , anybody have the same problem ?

On my arduino yun , i dont have this problem , but just on linino board.

Cheers

Emmanuel








Justin Harrison

unread,
Oct 4, 2017, 4:09:09 PM10/4/17
to Linino
I think your problem is the same as mine. The dhcp lease is dropped an the yun looses its gateway.

Try this

Edit

/lib/netifd/dhcp.script



Add the bold line below.


setup_interface () {

       proto_init_update "*" 1

       proto_add_ipv4_address "$ip" "${subnet:-255.255.255.0}"

       # TODO: apply $broadcast


       for i in $router; do

               proto_add_ipv4_route 0.0.0.0 0 "$i"

               route add -net 0.0.0.0/0 gw "$i"

       Done


Reply all
Reply to author
Forward
0 new messages