mii-tool in displays advertising and link partner fields backwards
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
net-tools (Debian) |
Fix Released
|
Unknown
|
|||
net-tools (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Lucid |
Won't Fix
|
Medium
|
Unassigned | ||
Precise |
Won't Fix
|
Medium
|
Unassigned | ||
Trusty |
Triaged
|
Medium
|
Unassigned | ||
Utopic |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
I have a gigabit ethernet card in my box, but only fast ethernet switch. When I use mii-tool, it report that it my card only advertises up to a 100baseTx link, but that my switch advertises up to a 1000baseT link. These are backwards. ethtool gets it right.
Since newer versions (with newer releases) only have a single change (an updated header list), I assume those versions suffer the same bug.
See the listing below of running mii-tool vs ethtool on the same interface, and note that advertised and link partner fields are reversed in the two tools:
jwcacces@
Description: Ubuntu 10.04.3 LTS
Release: 10.04
jwcacces@
net-tools: /sbin/mii-tool
jwcacces@
Package: net-tools
Priority: important
Section: net
Installed-Size: 1044
Maintainer: Ubuntu Core Developers <email address hidden>
Architecture: amd64
Version: 1.60-23ubuntu2
Replaces: ja-trans (<= 0.8-2), netbase (<< 4.00)
Depends: libc6 (>= 2.4)
Conflicts: ja-trans (<= 0.8-2)
Size: 259342
Description: The NET-3 networking toolkit
This package includes the important tools for controlling the network
subsystem of the Linux kernel. This includes arp, ifconfig, netstat,
rarp, nameif and route. Additionally, this package contains utilities
relating to particular network hardware types (plipconfig, slattach,
mii-tool) and advanced aspects of IP configuration (iptunnel, ipmaddr).
.
In the upstream package 'hostname' and friends are included. Those are
not installed by this package, since there is a special "hostname*.deb".
Original-
jwcacces@
net-tools:
Installed: 1.60-23ubuntu2
Candidate: 1.60-23ubuntu2
Version table:
*** 1.60-23ubuntu2 0
500 http://
100 /var/lib/
jwcacces@
ethtool: /usr/sbin/ethtool
jwcacces@
Package: ethtool
Priority: optional
Section: utils
Installed-Size: 268
Maintainer: Ubuntu Developers <email address hidden>
Architecture: amd64
Version: 6+20091202-1ubuntu1
Depends: libc6 (>= 2.7)
Conflicts: sparc-utils (<< 1.9-1)
Size: 74094
Description: display or change Ethernet device settings
ethtool can be used to query and change settings such as speed, auto-
negotiation and checksum offload on many network devices, especially
Ethernet devices.
Homepage: http://
Original-
jwcacces@
ethtool:
Installed: 6+20091202-1ubuntu1
Candidate: 6+20091202-1ubuntu1
Version table:
*** 6+20091202-1ubuntu1 0
500 http://
100 /var/lib/
6+20091202-1 0
500 http://
jwcacces@
eth1: negotiated 100baseTx-FD flow-control, link ok
product info: vendor 00:07:32, model 17 rev 3
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
jwcacces@
Settings for eth1:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 0
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
Link detected: yes
Changed in net-tools (Debian): | |
status: | Unknown → New |
Changed in net-tools (Debian): | |
status: | New → Fix Released |
Something is definitely not consistent:
ubuntu@churel:~$ sudo mii-tool -v eth0
100baseT/ Half 100baseT/Full
1000baseT/ Half 1000baseT/Full
100baseT/ Half 100baseT/Full
1000baseT/ Half 1000baseT/Full
100baseT/ Half 100baseT/Full
1000baseT/ Full
eth0: negotiated 1000baseT-FD flow-control, link ok
product info: vendor 00:d8:97, model 34 rev 0
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
ubuntu@churel:~$ sudo ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Link partner advertised link modes: 10baseT/Half 10baseT/Full
Link partner advertised pause frame use: Symmetric Receive-only
Link partner advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: on
Supports Wake-on: g
Wake-on: g
Current message level: 0x000000ff (255)
drv probe link timer ifdown ifup rx_err tx_err
Link detected: yes
ubuntu@churel:~$