Monday, February 8, 2010

Detailed network interface statistics on Linux

Here is a helpful command for getting interface statistics on your linux box. It's called ip. It's bundled with iproute package. You can see information about dropped, collisions,crc,transmit and other info about your network interface.


root@helga:~# ip -s -s link show eth0
2: eth0: mtu 1500 qdi
WN qlen 1000
link/ether 00:24:8c:d5:6a:a7 brd ff:ff:ff:ff:ff:ff
RX: bytes packets errors dropped overrun mcast
1633058095 16933162 0 0 0 0
RX errors: length crc frame fifo missed
0 0 0 0 0
TX: bytes packets errors dropped carrier collsns
1994496524 5588574 0 0 0 0
TX errors: aborted fifo window heartbeat
0 0 0 0

3 comments:

Anonymous said...

nice post. I would love to follow you on twitter.

Christopher Cox said...

ip is one of those "all in one" valuable tools. It displaces arhaic things like ifconfig and route. It's much, much, much more powerful. Things like ifconfig and route will go away (if it weren't for their historical use).

Christopher Cox said...

ip is an "all in one" tool. It replaces the need for ifconfig and route, etc.. Those old tools will exist just for historical reasons, but ip is much, much, much more powerful. It's your way into the network stuff as well as advanced routing (things that you can't do with the old tools).