Operating System - Linux
1748053 Members
4827 Online
108758 Solutions
New Discussion юеВ

How to find out the speed of LAN interface

 
SOLVED
Go to solution
KapilRaj
Honored Contributor

How to find out the speed of LAN interface

Hello,

Is there a command to find out the speed at which a LAN interface is running in SuSE Linux.

I could locate two interfaces at 100 Mbps in dmesg (not sure if thats the correct method) , Still I could not locate the other two interfaces installed on my Node.

I hv four ethernet adapters in my node , And i want to check at what speed they are running.

Regds,

Kaps
Nothing is impossible
12 REPLIES 12
Mark Grant
Honored Contributor

Re: How to find out the speed of LAN interface

"mii-tool" often does the trick
Never preceed any demonstration with anything more predictive than "watch this"
KapilRaj
Honored Contributor

Re: How to find out the speed of LAN interface

Mark,

I need more help !

# mii-tool -v
SIOCGMIIPHY on 'eth0' failed: Operation not supported
SIOCGMIIPHY on 'eth1' failed: Operation not supported
no MII interfaces found
#

Regds,

Kaps
Nothing is impossible
Mark Grant
Honored Contributor

Re: How to find out the speed of LAN interface

Hmm, that's irritating then.

In this case, I think it is dependent on what device you have. I know for some cards the only way you can know is to set the value yourself at boot time.

Can you tell us what cards you have.



Never preceed any demonstration with anything more predictive than "watch this"
KapilRaj
Honored Contributor

Re: How to find out the speed of LAN interface

Mark,

I normally work on HPUX & AIX not Linux. Hence I collected the following details from dmesg. If u could space some more time to let me know what command u would like me to use,

dmesg says,

*************************
eth2: OEM i82557/i82558 10/100 Ethernet, 00:02:B3:BC:9E:0B, IRQ 18.
Board assembly a57171-003, Physical connectors present: RJ45
Primary interface chip i82555 PHY #1.
Secondary interface chip i82555.
General self-test: passed.
Serial sub-system self-test: passed.
Internal registers self-test: passed.
ROM checksum self-test: passed (0xb874c1d3).
eth3: OEM i82557/i82558 10/100 Ethernet, 00:02:B3:BC:9E:0C, IRQ 19.
Board assembly a57171-003, Physical connectors present: RJ45
Primary interface chip i82555 PHY #1.
Secondary interface chip i82555.
General self-test: passed.
Serial sub-system self-test: passed.
Internal registers self-test: passed.
ROM checksum self-test: passed (0xb874c1d3).


eth0: Broadcom BCM5703 1000Base-T found at mem f8ff0000, IRQ 24, node addr 00096b8cdeac
eth0: Broadcom BCM5703 Integrated Copper transceiver found
eth0: Scatter-gather ON, 64-bit DMA ON, Tx Checksum ON, Rx Checksum ON
eth1: Broadcom BCM5703 1000Base-T found at mem f8fe0000, IRQ 25, node addr 00096b8cdead
eth1: Broadcom BCM5703 Integrated Copper transceiver found
eth1: Scatter-gather ON, 64-bit DMA ON, Tx Checksum ON, Rx Checksum ON
bcm5700: eth0 NIC Link is UP, 100 Mbps full duplex
bcm5700: eth1 NIC Link is UP, 100 Mbps full duplex
*************************

From here i could make out eth0 & eth1 are running at 100 Mbps Full Duplex but no info regarding eth3 & 4.

Regds,

Kaps
Nothing is impossible
Alexander Chuzhoy
Honored Contributor

Re: How to find out the speed of LAN interface

try ethtool
read man for more info...
KapilRaj
Honored Contributor

Re: How to find out the speed of LAN interface

Mark,

Sorry the err came on the wriong node .. On this node mii-tool -v gives me,

eth0: 100 Mbit, full duplex, link ok
product info: vendor 00:08:18, model 22 rev 2
basic mode: 100 Mbit, full duplex
basic status: link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD
eth1: 100 Mbit, full duplex, link ok
product info: vendor 00:08:18, model 22 rev 2
basic mode: 100 Mbit, full duplex
basic status: link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD
eth2: negotiated 100baseTx-FD flow-control, link ok
product info: Intel 82555 rev 4
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
eth3: no link
product info: Intel 82555 rev 4
basic mode: autonegotiation enabled
basic status: no link
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control

But it doesn't show at what speed eth3 & 4 are running , basic mode is Auto negotiation .. How can I find at what speed they have negotiated ?.

Regds,

Kaps
Nothing is impossible
KapilRaj
Honored Contributor

Re: How to find out the speed of LAN interface

Alexander,

# man ethtool
No manual entry for ethtool
# which ethtool
#

I hope it is on a diffrent OS not SuSE Linux
Or is it a freeware which i can download and use ?.


Kaps
Nothing is impossible
Alexander Chuzhoy
Honored Contributor

Re: How to find out the speed of LAN interface

yes actually it's on redhat and there's a RPM
call ethtool shipped with redhat installation CD.
you can download the precompiled tar.gz from:

http://sourceforge.net/project/showfiles.php?group_id=3242&package_id=19201&release_id=172583
Roberto Polli
Trusted Contributor

Re: How to find out the speed of LAN interface

did you look for it in /proc ?
you can search for flags listed in

modinfo ETH_MODULE_NAME

using
find /proc/ -type f -exec grep -il \;

or something of that kind.

Pax, R>