Somthing is wrong with eth0

Discussion in 'Troubleshooting' started by salouma, Jan 10, 2015.

  1. salouma

    salouma Member

    Joined:
    Jan 24, 2014
    Messages:
    49
    Likes Received:
    2
    Hi everybody,

    I want to report here something going wrong with my UDOO.

    I have a high speed connection (100 MB download) at home.

    I use my UDOO to download and I found strange behaviour :

    - With a eth0 connection the speed of download never exceed 1MB when i download over the internet, but if a do LAN transfert i reach 10MB

    - With WIFI connection the speed of internet download is FAR better than eth0 and reach 4 MB/sec. (all of this with the same download).

    The problem is not due to encryption of something else, the CPU is only used at 10 % during transfert, i boot on SATA and the file writing is very fast.

    The problem is found with different distributions, with UDOOubuntu, and with the XBMC disto of Vpeter.

    I suspect something wrong with the driver, why the speed is OK on LAN transfert but so slow when i download something over the internet. And worst of all how can i get better speed with WIFI than Ethernet ???

    Some of you did found the same problem ?

    I'm looking to all idea to fix this, i tried to reset my router several time, no solution.

    Best regards,
     
  2. salouma

    salouma Member

    Joined:
    Jan 24, 2014
    Messages:
    49
    Likes Received:
    2
    Somthing is wrong with LAN

    Can someone in the udoo team give a look on this problem ?
     
  3. vpeter

    vpeter Active Member

    Joined:
    Nov 29, 2014
    Messages:
    303
    Likes Received:
    62
    Can you download something from internet and then run command
    Code:
    ifconfig -a | paste
    dmesg | paste
    and post url you get back.

    Also try forcing ethernet to 100mbits with command
    Code:
    ethtool -s eth0 speed 100 duplex full
    but this probably will not help because you already have only 100mbit network.

    With Openelec.
     
  4. salouma

    salouma Member

    Joined:
    Jan 24, 2014
    Messages:
    49
    Likes Received:
    2
    Hi vpeter

    Looks like your command ethtool -s eth0 speed 100 duplex full solved the problem.

    Now I'm downloading full speed.

    What does it mean ? Do I need to enter the command at each stratup.

    Thank you again after making me happy with your openelec image you solved my eth0 problem !
     
  5. salouma

    salouma Member

    Joined:
    Jan 24, 2014
    Messages:
    49
    Likes Received:
    2
    So I made a reboot and got low speek (300KB).
    Then I enter you command and the download became 9MB/sec !

    So is it something that you could fix in the code to have a eth0 good speed at startup ?
    How can I help you ?

    If not is it somethic like etc.init.d to automatically run this command at startup in your open elec distribution ?

    Best regards
     
  6. vpeter

    vpeter Active Member

    Joined:
    Nov 29, 2014
    Messages:
    303
    Likes Received:
    62
    salouma, run this command (only once).
    Code:
    echo "ethtool -s eth0 speed 100 duplex full" >>/storage/.config/autostart.sh
    cat /storage/.config/autostart.sh
    First command adds this ethtool line to autostart.sh script which is called at boot. The second command shows you the content of this script. You can also edit this file over samba mounted disk on windows.

    You can also try using
    Code:
    ethtool -s eth0 speed 100 duplex full autoneg off
     
  7. vpeter

    vpeter Active Member

    Joined:
    Nov 29, 2014
    Messages:
    303
    Likes Received:
    62

Share This Page