This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

autonegotiate

is there a way to check what my wan port has auto-negotiated to.  I trying to trouble shoot a slow connection


This thread was automatically locked due to age.
  • From the shell, use mii-diag .

    Example:  Mii-diag eth1
  • Hi Scott.
    what would you say of this result?

    SIOCGMIIREG on eth2 failed: Input/output error
    Basic registers of MII PHY #1:  1140 792d 02a8 0380 0de1 c401 000d ffff.
     The autonegotiated capability is 0000.
    No common media type was autonegotiated!
    This is extremely unusual and typically indicates a configuration error.
    Perhaps the advertised capability set was intentionally limited.
     Basic mode control register 0x1140: Auto-negotiation enabled.
     You have link beat, and everything is working OK.
     Your link partner advertised c401: Flow-control, w/ 802.3X flow control.
       End of basic transceiver information.

    It seems to work fine,
  • Looks to me as though autonegotiation isn't working too well in this case.  I've seen it happen plenty of times before with network devices.  Could be some minor incompatibility between the network controllers.  If it's working, you could just leave it, but there may be a mismatch.  When I run into autonegotiation problems, I manually set the speed/duplex on both endpoints of the connection.
  • Hi, mii-diag is deprecated; ethtool is the replacement.

    Barry
  • mii-diag is deprecated
      Might be in general, but it's still being taught in the ACE classes.
  • It shouldn't be; it doesn't support gigE correctly. Output below is from an HP DL360 running Astaro 7.509:

    # ethtool eth1
    Settings for eth1:
            Supported ports: [ TP ]
            Supported link modes:   10baseT/Half 10baseT/Full 
                                    100baseT/Half 100baseT/Full 
                                    1000baseT/Full 
            Supports auto-negotiation: Yes
            Advertised link modes:  10baseT/Half 10baseT/Full 
                                    100baseT/Half 100baseT/Full 
                                    1000baseT/Full 
            Advertised auto-negotiation: Yes
            Speed: 1000Mb/s
            Duplex: Full
            Port: Twisted Pair
            PHYAD: 1
            Transceiver: internal
            Auto-negotiation: on
            Supports Wake-on: g
            Wake-on: g
            Link detected: yes

    # mii-diag eth1
    Basic registers of MII PHY #1:  1000 796d 0020 6366 05e1 c1e1 000f 2001.
     The autonegotiated capability is 01e0.
    The autonegotiated media type is 100baseTx-FD.
     Basic mode control register 0x1000: Auto-negotiation enabled.
     You have link beat, and everything is working OK.
     Your link partner advertised c1e1: 100baseTx-FD 100baseTx 10baseT-FD 10baseT.
       End of basic transceiver information.



    Note the lack of mention of any 1000mbit speeds from mii-diag.

    Barry
  • Hi Scot.
    It seems Bary is right.
    It does giving more info and more accurate.
    Anyway, thanks to both of you.
    By the way, it would be good idea to establish a forum or a thread with useful commands.
    Quite a few of us would get allot out of it.
    I'm writing them down whenever I'm running into them in this forum.
  • I agree that ethtool can give better information, but on some systems, ethtool will not function and on others, mii-diag will not work. 

    Examples:  On my 8.201 Dell box, with cheap NICS, ethtool will not return data.  Apparently mii-diag doesn't do virtual NICs well, especially VMWare.

    Guess we're both right.  [:)]