darkness

Monday, 17 October 2005

mii-tool’s new friend

darkness @ 11:26:37

I’ve always used mii-tool to see/change the settings on Ethernet cards:

[root@gateway ~]# mii-tool eth0
eth0: negotiated 100baseTx-FD flow-control, link ok

I just installed a RealTek 8169 (r8169 is the name of the module that supports it) and mii-tool doesn’t work on it:

[root@gateway ~]# mii-tool eth1
SIOCGMIIPHY on 'eth1' failed: Operation not supported

I’ve had this happen before, but in this case I really needed to read these settings. A little browsing around on Google finds me ethtool:

[root@gateway ~]# 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: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Link detected: yes

So next time mii-tool doesn’t work, try ethtool. I’ve also heard that ethtool sometimes won’t work where mii-tool will.

1 Comment »

  1. cool :p thx, was looking for this

    Comment by r — Monday, 15 May 2006 @ 17:02:20

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress