Koozali.org: home of the SME Server

How to tell what speed an interface is running?

Terry

How to tell what speed an interface is running?
« on: November 23, 2003, 08:33:42 PM »
As the topic says, how can I determine whether an interface is running 10 or 100 Mbps, and is it running full or half duplex.  I just installed a new switch and am wondering if I'm getting everything I can out of it.  And no, the switch doesn't have any management features, so I can't check on that side of things.

DREi

Re: How to tell what speed an interface is running?
« Reply #1 on: November 24, 2003, 12:32:42 AM »
Your switch may be unmanaged but the lights on the front indicate 10/100 and Half/Full duplex modes.Terry wrote:
>
> As the topic says, how can I determine whether an interface
> is running 10 or 100 Mbps, and is it running full or half
> duplex.  I just installed a new switch and am wondering if
> I'm getting everything I can out of it.  And no, the switch
> doesn't have any management features, so I can't check on
> that side of things.

Terry

Re: How to tell what speed an interface is running?
« Reply #2 on: November 24, 2003, 01:09:56 AM »
DREi wrote:
>
> Your switch may be unmanaged but the lights on the front
> indicate 10/100 and Half/Full duplex modes.Terry wrote:
> >

Nope, just connection and traffic.

Andy MacDonald

Re: How to tell what speed an interface is running?
« Reply #3 on: November 24, 2003, 05:16:36 AM »
Have you tried "ifconfig -a" at the command line?

Terry

Re: How to tell what speed an interface is running?
« Reply #4 on: November 24, 2003, 05:35:24 AM »
Should I be looking for something specific on the interface?  Doesn't look like it shows much more then what ifconfig does, unless this line means something...
EtherTalk Phase 2 addr:65280/28
Other then that I don't see anything that may confirm the interface is running 10 or 100 Megs.

Scott Smith

Re: How to tell what speed an interface is running?
« Reply #5 on: November 24, 2003, 06:13:07 AM »
mii-tool

--or--

mii-tool  -v

Terry

Re: How to tell what speed an interface is running?
« Reply #6 on: November 24, 2003, 07:21:52 AM »
Thanks Scott, I think we're almost there.  That command confirms that the card will do 100Meg (which I was only 95% sure it would), but is there anything here that confirms it IS running 100?

[root@pdc root]# mii-tool  -v
eth0: negotiated 100baseTx-FD flow-control, link ok
  product info: vendor 00:10:18, model 23 rev 6
  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

Michiel

Re: How to tell what speed an interface is running?
« Reply #7 on: November 24, 2003, 10:59:32 AM »
>   link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control

The 'link partner' line lists all the confirmed speeds to the next hop. Hence you have a 100 FD link to your switch. Congratulations ;-)

Byte

Re: How to tell what speed an interface is running?
« Reply #8 on: November 24, 2003, 04:17:43 PM »
Also....

dmesg |grep eth0

Will give this result

[root@dev root]# dmesg | grep eth0
e100: eth0 NIC Link is Up 100 Mbps Full duplex

HTH Byte

Scott Smith

Re: How to tell what speed an interface is running?
« Reply #9 on: November 24, 2003, 04:58:38 PM »
Or...

man mii-tool

Terry

Re: How to tell what speed an interface is running?
« Reply #10 on: November 25, 2003, 01:03:52 PM »
Thanks Michiel, Byte, that command doesn't give me any output when I use it.

Scott Smith

Re: How to tell what speed an interface is running?
« Reply #11 on: November 25, 2003, 04:47:03 PM »
mii-tool tells you at what speed the interface is running. That's the first line of output -- eth0: negotiated 100baseTx-FD flow-control, link ok.

If you don't trust the output of mii-tool, then you need to trust your link lights, or if you don't have any link lights, then you'll need to attach a sniffer than can tell you the speed, or if you don't have a sniffer, then you can perform a few file transfers and compute the speed.

Terry

Re: How to tell what speed an interface is running?
« Reply #12 on: November 26, 2003, 12:52:43 AM »
I do trust it, hence the thanks to Michael, which I now see should have been to both of you.  Thanks Scott.  And I totally missed the "negotiated" line the 1st time.  Thanks again.