Skip to contentSkip to conversation

How to find the NIC Capacity / Bandwidth ?

LARTC Srikanth 2 participants 3 messages Apr 30, 2003 – May 1, 2003

lore
Share & tools
lore
#1 lore raw

Srikanth,

: Any body having idea to find the NIC Capacity / BW (10 / 100 Mbps) ? : Whether the interface may be eth0/eth1/ppp0 or some other. Is there any : related IOCTL avialable, if so just give the linux-2.4.18 file path.

For ethernet interfaces (devices), you should be able to determine the negotiated speed with either a device specific diagnostic utility (e.g., tulip-diag), or, with recent kernels and drivers, mii-diag, mii-tool, and the preferred ethtool.

You can find the source to ethtool here:

http://freshmeat.net/projects/ethtool/?topic_id6%2C150

If this doesn't provide your answer, you may find a faster (if terser) answer from linux-net....as for determining speed of a serial link from the interface or device--I have no idea! Maybe somebody else on the list?

Best of luck,

-Martin

Signature · 5 lines
Martin A. Brown --- SecurePipe, Inc. --- [email protected]

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
author
#2 lore raw
In reply to Srikanth

Dear Martin,

Thanks for the quickest response.
I've downloaded ethtool-1.6.tar.gz from the freshmeat.net, and customized the "ethtool.c"
It's giving the Speed of 10Mb/s.

regards,
Srikanth.

Quoted 15 lines · Martin A. Brown

Srikanth,

: Any body having idea to find the NIC Capacity / BW (10 / 100 Mbps) ? : Whether the interface may be eth0/eth1/ppp0 or some other. Is there any : related IOCTL avialable, if so just give the linux-2.4.18 file path.

For ethernet interfaces (devices), you should be able to determine the negotiated speed with either a device specific diagnostic utility (e.g., tulip-diag), or, with recent kernels and drivers, mii-diag, mii-tool, and the preferred ethtool.

You can find the source to ethtool here:

http://freshmeat.net/projects/ethtool/?topic_id6%2C150

Quoted 10 lines

If this doesn't provide your answer, you may find a faster (if terser) answer from linux-net....as for determining speed of a serial link from the interface or device--I have no idea! Maybe somebody else on the list?

Best of luck,

-Martin

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/