Solved

Debian - Ethernet stuck in half duplex

Posted on 2006-11-05
6
1,519 Views
Last Modified: 2013-12-16
My eth0 is stuck in half duplex.

When I run:  ethtool -s eth0 duplex full  the console pauses for 10 secs and returns to the prompt, but the nic is still in half duplex. This is a 1Gig full duplex card.

I even added this to the etc/host/interfaces
ETHTOOL_OPTS="autoneg off speed 10 duplex full"

Any ideas?
0
Comment
Question by:elmoredaniel
  • 3
  • 2
6 Comments
 

Author Comment

by:elmoredaniel
ID: 17879274
correction: /etc/network/interfaces
0
 
LVL 12

Expert Comment

by:ibu1
ID: 17880201

mii-tool -F 100baseTx-FD eth0
0
 

Author Comment

by:elmoredaniel
ID: 17884037
That did not work for me. No madder what commands I use I can't change the duplex or the speed. Below is the ethtool output.

----------------------------
Settings for eth0:
        Supported ports: [ MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Advertised auto-negotiation: Yes
        Speed: 10Mb/s
        Duplex: Half
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: g
        Wake-on: d
        Current message level: 0x000000ff (255)
        Link detected: yes
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 12

Expert Comment

by:ibu1
ID: 17887314
0
 
LVL 5

Accepted Solution

by:
kyle_in_taiwan earned 500 total points
ID: 17898445
Most people suggest using the mii-diag (used to be mii-tools, i think, and may still be in Sarge;  just search for "mii-", and then cycle through 'til you find it).

If you go into aptitude and check out the mii-diag package, it suggests several chipset-specific packages that you might want to think about installing.

Here's a more detailed explanation;  Debian instructions are towards the bottom.  The solution as they present it is to write your own script, which is considerably more detailed than the steps you've posted up here so far:

http://www.cyberciti.biz/tips/howto-linux-add-ethtool-duplex-settings-permanent.html
0
 

Author Comment

by:elmoredaniel
ID: 17917437
Okay, the problem occured because autoneg was on, and the switch was broadcasting half duplex. I'll award points for the cyberciti.biz article because it mentioned that.

Thanks everyone.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question