Re: Paket counters for aliased interfaces ?

David Ford (david@linux.com)
Sun, 07 Jan 2001 18:34:49 -0800


This is a multi-part message in MIME format.
--------------01AE2D5DB8C04EB2D3B39F35
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Patrick Mau wrote:
[...]

> And here's the question:
> I would like to collect statistics for eth0:0 but obviously the
> pakets are only counted for the real interface. If I had enough time
> and knowledge, how should I implement paket counters for aliased
> interfaces ?
>
> PS: Am I right that it isn't possible ? tcpdump doesn't 'work right'
> either.

Correct. "eth0" is only a label. You need to use a userland process such as
firewalling and count the packets. For tcpdump, specify 'src or dst ....'

-d

--------------01AE2D5DB8C04EB2D3B39F35
Content-Type: text/x-vcard; charset=us-ascii;
name="david.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for David Ford
Content-Disposition: attachment;
filename="david.vcf"

begin:vcard
n:Ford;David
x-mozilla-html:TRUE
url:www.blue-labs.org
adr:;;;;;;
version:2.1
email;internet:david@blue-labs.org
title:Blue Labs Developer
note;quoted-printable:GPG key: http://www.blue-labs.org/david@nifty.key=0D=0A
x-mozilla-cpt:;9952
fn:David Ford
end:vcard

--------------01AE2D5DB8C04EB2D3B39F35--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/