Q: How to disable auto-negotiation option of my network interface card and set up half/full duplex mode manually from Linux command line (CLI)? By the way, how to see current settings?
A: There are several Linux utilities coming with almost any distribution including Debian, Ubuntu, Fedora, RedHat, Mandriva, Centos whatever. See details below.

ethtool

This is rather powerful utility can display and change settings of ethernet network interface card. You can easily disable/enable autonegotiation option for your NIC, also it’s possible to manually set up duplex mode, configure wake-on-lan options, set speed settings. Just look through full manual page for ethtool. Here are several ethtool usage examples:

ethtool eth0 – shows current NIC settings

Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
        Advertised auto-negotiation: No
        Speed: 10Mb/s
        Duplex: Half
        Port: MII
        PHYAD: 32
        Transceiver: internal
        Auto-negotiation: off
        Supports Wake-on: pumbg
        Wake-on: d
        Current message level: 0x00000007 (7)
        Link detected: yes

ethtool -s eth0 duplex half autoneg off – disables auto-negotiation, enables Half Duplex.
ethtool -s eth1 duplex full speed 1000 autoneg off – disables auto-negotiation, enables Falf Duplex and sets up Speed to 1000 Mb/s.

mii-tool

According to manual it allows to manipulate and see media-independent interface status. Let’s see examples:

bash-3.1# mii-tool eth0
eth0: negotiated 100baseTx-FD, link ok
– shows 100 Mbps speed, Full Duplex, Auto-negotiation is on.
bash-3.1# mii-tool eth0 -F 10baseT-HD – enables 10 Mb/s Half Duplex connection.

Information improvisation: We offer guaranteed success for http://www.braindumps.com/1Y0-200.htm exam with help of latest http://www.pass4-sure.us/400-101-dumps.html and http://www.test-king.com/exams/JN0-102.htm practice questions and the exams of http://www.arm.com/ & http://www.actualtests.com/exam-JN0-102.htm Best wishes.

 

17 Comments

 

  1. January 19, 2009  3:49 pm by Natural Reply

    I think you are thinking like sukrat, but I think you should cover the other side of the topic in the post too...

  2. May 5, 2009  12:00 pm by dolby Reply

    I think toooo, like how use POSIX commande which will work on linux/unix!!

    thks.

  3. Pingback : Alondra

  4. Pingback : Alondra

  5. Pingback : Athena

  6. Pingback : Tyrone

  7. April 21, 2010  5:57 am by ???? Reply

    ??????? ??????? ?????????? ?????? ??????. (? ??????? ? ??? ???-?????? – ??? ???????) :)

  8. April 20, 2011  4:34 pm by debt management Reply

    Hello there. I found your site by way of Google while searching for a similar matter, your website came up. It seems to be great. I've bookmarked it in my google bookmarks to visit later.

  9. April 23, 2011  6:17 pm by humankind seo Reply

    It constantly amazes me just how blog owners for example your self can find enough time and the commitment to carry on composing excellent discussions. Your site isfantastic and one of my need to read personal blogs. I just want to thank you.

  10. April 27, 2011  7:26 pm by squash Reply

    Good write-up. I’m a normal visitor of your website and appreciate you taking the time to maintain the nice site. I'll be a frequent visitor for a really long time.

  11. May 13, 2011  7:30 pm by Bob Reply

    Hey, Thanks.
    I looked all over the internet for this information, and your tutorial fixed the problem :)

  12. February 18, 2012  6:19 pm by Versuri Reply

    I found your blog website on google and test a few of your early posts. Proceed to maintain up the superb operate. I just additional up your RSS feed to my MSN News Reader. In search of forward to reading extra from you afterward!…

  13. April 26, 2012  5:43 am by http://www.homeremediesforlice.net Reply

    ||This is an anti-spam message|| Join the anti-spam movement! Accept this comment and do your part spreading the word that we will NOT be spammed anymore.Do your duty and pass it on by posting on a friends site!

  14. September 19, 2012  4:34 am by JoicheTerouri Reply

    - watch pretty little liars online - pretty little liars full episode

  15. December 28, 2012  5:00 am by Rohit Reply

    HI

    This is not working on my server, can anyone suggest me anyotherway to change duplex settings.
    Thanks in advance.

  16. Pingback : Ethernet woes | Just moozing

Leave a reply

 

Your email address will not be published.