LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Home Forums HCL Reviews Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-09-2006, 07:18 AM   #1
thechic
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Rep: Reputation: 0
mii-tool/ethtool different output - better option than either?


I've found a similar thread to this but he got no answer (thread 252374 - can't post URL in my message as I'm a new user):

I understand "ethtool" may not work or produce the correct output on some cards and the same goes for "mii-tool" and vice versa. Are there files I can access directly to be assured of the correct settings? For me, "mii-tool" seems to reporting correctly on a HP blade's NIC but "ethtool" reports differently (it runs, but reports the card running at half duplex or is not actually stating that when we run "ethtool eth1").

See below how mii-tool reports full duplex (which I forced after it dropped out once but that's another matter), but ethtool says half-duplex. I tried looking at a file under /proc and that also says half duplex.

Is there a file we can look at to be sure? I understand that the drivers play a big role in how accurate the output of most commands are but I was wondering what can be relied upon the most.

# mii-tool eth1
eth1: 100 Mbit, full duplex, link ok


# ethtool eth1
Settings for eth1:
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: 100Mb/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


# cat /var/spool/compaq/nic/nicinfo/eth1.info
Description Broadcom Corporation NetXtreme BCM5703 Gigabit
Ethernet (rev 10)
Driver_Name tg3
Driver_Version 3.10RH
PCI_Vendor 0x14e4
PCI_Device_ID 0x16c7
PCI_Subsystem_Vendor 0x0e11
PCI_Subsystem_ID 0x00cb
PCI_Revision_ID 0x10
PCI_Bus 5
PCI_Slot 2
IRQ 72
System_Device_Name eth1
Current_HWaddr 00:12:79:3B0:9B

Link Up
Speed 100
Duplex Half
State up
Auto_Negotiate on


Rx_Errors 0
Tx_Errors 0


Tx_Abort_Late_Coll 0
Tx_Deferred_Ok 17932295
Rx_Align_Errors 0
 
Old 11-10-2006, 12:03 AM   #2
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
Posts: 653

Rep: Reputation: 32
ethtool superseeds miitool. notice that mii-tool can only report up to 100MBit, while ethtool is aware of the gigabit concept, and knows how to look at a greater range of hardware.
 
Old 11-12-2006, 11:35 PM   #3
thechic
LQ Newbie
 
Registered: Nov 2006
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for that but at the end of the day I want what can report the most basic NIC settings correctly only. Whilst the speed is one of those, the duplex is just as important, and in this case 'ethtool' seems to be reporting half duplex incorrectly. Are there files or specific dirs I can get these off directly? I take it these tools are pretty low level and grab the info through specific drivers?
 
Old 11-13-2006, 12:16 AM   #4
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
Posts: 653

Rep: Reputation: 32
Looking at some of my systems with tg3 card, i can verify that 1) ethtool reports correctly, and 2) mii-tool does not.

i suggest using either a newer version of the software, updating your tg3 module/driver, and verifying you switch / router really is serving you full duplex.

AFAIK these tools attempt to talk through the driver to the card to get their info, but if you need to know how exactly it does it i suggest looking at the source directly or the kernel dev mail list, provided google.com/linux doesn't give you all the answers you seek.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot setup networking!!! ethtool/mii-tool fail logicalfuzz Linux - Networking 2 04-26-2006 03:57 PM
eth0 problem with mii-tool ravi_foru Linux - Networking 2 06-29-2005 12:54 AM
mii-tool lie to me czezz Linux - Networking 1 11-09-2004 06:07 AM
mii-tool autostart with redhat9 e-nDrju Linux - Newbie 6 04-05-2004 11:06 AM
A question about mii-tool yi.zhang Linux - Networking 2 04-02-2004 12:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration