mail me! sindicaci;ón

How to tell Link Speed in Linux

I could have sworn that ifconfig used to tell me what link speed a connection was established at, but I must have been imagining it (?)…

root@box:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:11:11:82:9e:8c
inet addr:192.168.x.10 Bcast:192.168.69.255 Mask:255.255.255.0
inet6 addr: fe80::211:11ff:fe82:9e8c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2515495 errors:0 dropped:0 overruns:0 frame:0
TX packets:1007536 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3552713819 (3.5 GB) TX bytes:81240550 (81.2 MB)
Interrupt:16

Anyway, after a quick install (apt-get install ethtool) ethtool tells you a host of things, including Link Speed:

root@box:~# apt-get install ethtool
root@box:~# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: g
Wake-on: d
Current message level: 0x000000ff (255)
Link detected: yes

Now the real question is why am I only achieving 5.2MB/s via Gigabit… Samba perhaps?

25 hours remaining to transfer 339GB =/

Update: My bad, should have never have suspected Samba without first checking Windows :$ Windows is only connected at 10/100 for reasons as of yet unbeknownst to me…

Leave a Comment