[Gllug] viewing network traffic with ip (iproute2)

Andy Smith andy at lug.org.uk
Wed Aug 8 15:25:29 UTC 2007


On Wed, Aug 08, 2007 at 02:27:40PM +0100, Bruce Richardson wrote:
> On Wed, Aug 08, 2007 at 01:21:47PM +0100, Jon wrote:
> > 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

Hehe, learn something new every day.. :)

Cheers,
Andy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: Digital signature
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20070808/0248142e/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