[Gllug] viewing network traffic with ip (iproute2)

Jon Dye jon at pecorous.co.uk
Thu Aug 9 07:53:42 UTC 2007


Bruce Richardson wrote:
> On Wed, Aug 08, 2007 at 01:21:47PM +0100, Jon wrote:
>> I'm trying to switch over to using the new iproute2 stuff and the ip
>> command from ifconfig.  So far I've found equivalents of all the old
>> behaviour except I can't find a way of showing the number of
>> transmitted/received bytes/packets like ifconfig does.  Could someone
>> tell me what the equivalent is using the iproute2 commands?
> 
> You need the -s (-stats) parameter.  Multiple apperances of the
> parameter increase the level of detail.
> 
>   ip -s link show dev eth0
>   ip -s -s link show dev eth0

Great, that's just what I was after.

JD

-- 
"I will eat all the leaves on this tree and then other giraffes will
die. I am an evil herbivore."
		- Eddie Izzard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 257 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20070809/4a04aaef/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list