Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Speed and Duplex problem in Ubuntu 13.04

  1. #1
    Join Date
    Sep 2013
    Beans
    10

    Unhappy Speed and Duplex problem in Ubuntu 13.04

    Hello friends,

    I am new to Linux and just know how to copy and paste commands to get things done. But in this case I am not able to solve my problem despite having some guidence available on net. I am facing a speed and duplex problem here. I am dual booting Windows 8 and Ubuntu 13.04. My network connection only works if I set speed and duplex to 10mbps full duplex. If I don't set it to 10mbps the LED light in modem which shows LAN connectivity becomes on for a second and goes off for two seconds which implies that the connection is not established properly between PC and modem. It is easy to do in windows because in ethernet card settings I set speed and duplex to 10mbps and it remains always same even after reboot so I have no problem here.

    Now when I boot into Ubuntu the LAN starts acting up again. I know how to set speed and duplex in Ubuntu with following commands :

    sudo ethtool -s eth0 speed 10 duplex full

    After giving this command it works perfectly. But when I reboot these settings are lost and I have to give command again. I want them to become permanant but don't know how to add some kind scripts or edit any file in etc/network. I tried some of the suggestions avilable on net but then I faced a problem, when I rebooted Ubuntu it shows me a massage that it is waiting for network to start and after one minute it waits again for another minute. After having Ubuntu started I found no internet connection. Though I don't have working internet connection in this scenario(after editing some files in etc/ to make it permanat) but the LAN LED becomes stable like it shoud be when it works good.

    So friends please guide me to overcome this problem set by step. If I missed something important to mention her please forgive me.

  2. #2
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    19,883
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Speed and Duplex problem in Ubuntu 13.04

    after editing some files in etc/ to make it permanat
    Which? We need to know so we can review and tweak them.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  3. #3
    Join Date
    Sep 2013
    Beans
    10

    Re: Speed and Duplex problem in Ubuntu 13.04

    I followed these steps

    If you want to setup eth0 10 or 100 or 1000 speed with ethtool try this
    sudo ethtool -s eth0 speed 10 duplex full

    If you want to make it permanent you have to add following lines to /etc/network/interfaces file
    gksudo gedit /etc/network/interfaces
    Add the following line
    pre-up /usr/sbin/ethtool -s $IFACE autoneg off 100 duplex full
    Save and exit the file.

  4. #4
    Join Date
    Aug 2013
    Beans
    76
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: Speed and Duplex problem in Ubuntu 13.04

    Have you tried just replacing the network cable? A lot of times there is a physical reason in a piece of hardware that a NIC can't connect at 100/1000 full.

  5. #5
    Join Date
    Sep 2013
    Beans
    10

    Re: Speed and Duplex problem in Ubuntu 13.04

    Yes I changed the cable yesterday but it didn't change the result. I have a strong belief that it is my motherboard because since I have switched to this MB I am facing this problem.
    Last edited by akb12; September 7th, 2013 at 06:10 PM.

  6. #6
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    19,883
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Speed and Duplex problem in Ubuntu 13.04

    Quote Originally Posted by akb12 View Post
    I followed these steps

    If you want to setup eth0 10 or 100 or 1000 speed with ethtool try this
    sudo ethtool -s eth0 speed 10 duplex full

    If you want to make it permanent you have to add following lines to /etc/network/interfaces file
    gksudo gedit /etc/network/interfaces
    Add the following line
    pre-up /usr/sbin/ethtool -s $IFACE autoneg off 100 duplex full
    Save and exit the file.
    Please do:
    Code:
    gksudo gedit /etc/network/interfaces
    Remove the line(s) you added; proofread, save and close gedit. Now do:
    Code:
    gksudo gedit /etc/rc.local
    Add this line right above exit 0:
    Code:
    ethtool -s eth0 speed 10 duplex full
    No sudo is needed there. Proofread, save and close gedit.

    You should be all set.
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  7. #7
    Join Date
    Sep 2013
    Beans
    10

    Re: Speed and Duplex problem in Ubuntu 13.04

    It didn't work. I did what you said.
    Last edited by akb12; September 8th, 2013 at 03:31 PM.

  8. #8
    Join Date
    Sep 2013
    Beans
    10

    Re: Speed and Duplex problem in Ubuntu 13.04

    Is that all I can do?

  9. #9
    Join Date
    Aug 2005
    Location
    South Carolina, USA
    Beans
    19,883
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Speed and Duplex problem in Ubuntu 13.04

    Quote Originally Posted by akb12 View Post
    Is that all I can do?
    Please try changing /etc/rc.local to:
    Code:
    ethtool -s eth0 speed 10 duplex full autoneg off
    Again, right above exit 0. Now does it persist after a reboot?
    "Oh, Ubuntu, you are my favorite Linux-based operating system" --Dr. Sheldon Cooper, Ph.D.

  10. #10
    Join Date
    Sep 2013
    Beans
    10

    Re: Speed and Duplex problem in Ubuntu 13.04

    Please have a look at this screenshot. I did save this file but it didn't work. During reboot no massage no warning and it was disconnected again.
    Attached Images Attached Images

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •