|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: mrtg/snmp/subinterfaces
From: Dominic News (domnews
computerkb.co.uk)
Date: Sat Jun 05 2004 - 03:42:48 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Quoting Piotr Kowalczyk <pikov
piasta.pl>:
> Hello,
> Tell me, is there any reasonable way to monitor subinterfaces
> utilization on linux router? It's not difficult to get via snmp info
> about phisical eg. eth1, but I have there subinterfaces which I
> _have_to_ monitor, and I have to do that fast. Any ideas?
> please, help
> thanks in advance,
>
> Piotr Kowalczyk, KoBa ISP
AFAIK, there's no way to do it - the network system only tracks usage on the
primary interfaces and you can see that when you run 'ifconfig'.
You could track it by taking a tcpdump (and ensuring you get the whole packet
using the -s 0 switch) of everything on the primary interface, then using a
tool like ethereal to filter it down where the source address is that of the
virtual interface.
Then ethereal can display a summary of all the traffic that's been selected by
the filter and show the throughput rate and also the amount captured. That
should work assuming the virtual interface isn't spoofing IP addresses.
HTH
--
Dominic Cleal
dominic
computerkb.co.uk
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]