LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 01-27-2009, 12:56 PM   #1
shirishag75
LQ Newbie
 
Registered: Jun 2005
Posts: 16

Rep: Reputation: 0
wired link between router and ethernet card


Hi all,
I wanna know is there a way to know the speed between the ethernet card and router. Specifically if the router is limited to 10 Mbps or something (speed)

Speed of ethernet card is 10/100 Mbps depending on the other side of the link .

Code:
$ sudo ethtool eth1
[sudo] password for shirish: 
Settings for eth1:
    Supported ports: [ TP MII ]
    Supported link modes:   10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
    Supports auto-negotiation: Yes
    Advertised link modes:  10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
    Advertised auto-negotiation: Yes
    Speed: 100Mb/s
    Duplex: Full
    Port: MII
    PHYAD: 32
    Transceiver: internal
    Auto-negotiation: on
    Supports Wake-on: pumbg
    Wake-on: d
    Current message level: 0x00000007 (7)
    Link detected: yes
Another way

Code:
$ sudo mii-tool -v eth1
eth1: negotiated 100baseTx-FD, link ok
  product info: vendor 00:00:00, model 0 rev 0
  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
  link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
Code:
$ sudo tcpdump -s0 -i eth1 -w output.cap host 59.95.15.186
tcpdump: listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
From the above it can be seen it seems to be auto-negotiated at 10 Mbps.

Am I reading it right or wrong?

If there is someway to explicitly know what speed is the router able to transfer data between itself and the ethernet card (apart from the derived logic)
 
Old 01-27-2009, 01:05 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
why do you think it's 10? ethtool and mii-tool both clearly state it's 100...

"able to" is a vague thing... you will naturally never get 100mbps in reality, but 80mbps should be realistic assuming it's a direct link with no other machines switching across that layer 2 path. what really matters is what data you actually have to transfer in the first place. If you have enough data to shift between the two points then you can just see for yourself using all manner of tools, like iptraf.
 
Old 01-27-2009, 06:01 PM   #3
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,062

Rep: Reputation: 491Reputation: 491Reputation: 491Reputation: 491Reputation: 491
I know the speed of my ethernet link is higher than 10 Mbit, but tcpdump gives the same spec of EN10MB.

With modern interfaces it is unikely you are stuck at 10 Mb. Many switches have an indicator whether the link is 10/100 Mb and full/half duplex.

You can also do
Code:
dmesg | grep 100M[Bb]
This output I get:
Code:
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
jlinkels
 
Old 01-27-2009, 08:26 PM   #4
shirishag75
LQ Newbie
 
Registered: Jun 2005
Posts: 16

Original Poster
Rep: Reputation: 0
I got the following output :-

Code:
$ dmesg | grep 100M[Bb]
[   36.358158] eth1: link up, 100Mbps, full-duplex, lpa 0x41E1
[32810.174414] eth1: link up, 100Mbps, full-duplex, lpa 0x41E1
[32820.137062] eth1: link up, 100Mbps, full-duplex, lpa 0x41E1
Jinkels or anybody for that matter, what does the [Bb] stand for?
 
Old 01-28-2009, 03:15 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
it just matches MB or Mb
 
  


Reply

Tags
ethernet, router, speed


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
New D-link Ethernet card viksd2kin Linux - Networking 4 09-17-2006 01:45 AM
Routing between a wired ethernet (internet connection) and a wireless card (home net) ner0 Linux - Wireless Networking 8 11-29-2004 01:12 AM
Ethernet card on laptop: I installed my D-Link ethernet card into Redhat 9, not detec brighamr Linux - Hardware 0 05-18-2004 12:33 AM
I need help for my D-Link Ethernet Card stonesino Linux - Newbie 2 03-14-2004 08:00 PM
D-Link ethernet card Rutnut Linux - Networking 10 08-16-2001 04:05 PM


All times are GMT -5. The time now is 06:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration