Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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>
Mark Grant
Honored Contributor

Re: How to find out the speed of LAN interface

Are those two extra cards actually configured?

Doesn't look like it at first glance.
Never preceed any demonstration with anything more predictive than "watch this"
Mark Grant
Honored Contributor
Solution

Re: How to find out the speed of LAN interface

Actually Kapil, mii-tool does seem to be showing you eth3.

Remember we start at eth0 so the output for eth2 is your third card and it says that it is 100baseTx-FD. eth3 should be your fourth card and it just says "no link" which I would suspect means it isn't plugged into anything.
Never preceed any demonstration with anything more predictive than "watch this"
Bill Thorsteinson
Honored Contributor

Re: How to find out the speed of LAN interface

You can specify which device on the command line
such as

mii-tool -v eth0

If it report operation not supported, then
either the card does not support MII opteration,
or the driver has been configured to single
speed/duplex at initialiation. Check the
/etc/modules.conf file to see which parameters
have been used.

I have network admins who insist on configuring
Cisco routers at 100/Full. However, the MII
announcement in this case is 100/Half, so we
initialize the cards to 100/Full.

If the card reinitializes, mii-tool starts
telling us what the settings are and we
have a duplex mismatch.