[Gllug] viewing network traffic with ip (iproute2)

Bruce Richardson itsbruce at workshy.org
Wed Aug 8 13:27:40 UTC 2007


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


-- 
Bruce

Explota!: miles de lemmings no pueden estar equivocados.
-------------- 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/2a8e90ec/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