Re: /proc/net/dev reporting on virtual interfaces

From: Andi Kleen (ak@suse.de)
Date: Sun Apr 09 2000 - 18:18:36 EST


On Sun, Apr 09, 2000 at 04:05:37PM -0700, Web Master wrote:
> Simple question!, can the kernel report virtual interface traffic in
> /proc/net/dev?

No. You need to define ipchains rules for that.

> of course, basics are covered, ifconfig reports correctly the virtual
> devices, but only the base device (ie eth0) is reported in /proc/net/dev
> and not the others (ie eth0:0, eth0:1...)

In kernel space only eth0 exists as device, eth0:1 etc. are really named
IP addresses assigned to the same interface. ifconfig tries to give
you the illusion of virtual devices for 2.0 compatibility, but it is
a emulation and sometimes does not work out.

-Andi

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



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:13 EST