Linux-kernel mailing list archive 2000-15,: Re: /proc/net/dev reporting on virtual interfaces

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

Andi Kleen (ak@suse.de)
Mon, 10 Apr 2000 01:18:36 +0200

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Richard B. Johnson: "Re: 2.3.99-pre4-[12] with nfs doesn't compile with gcc 2.7.2.3"
- Previous message: Ben Kosse: "Problem with EEPro driver in 2.3.99pre4-5"

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/

- Next message: Richard B. Johnson: "Re: 2.3.99-pre4-[12] with nfs doesn't compile with gcc 2.7.2.3"
- Previous message: Ben Kosse: "Problem with EEPro driver in 2.3.99pre4-5"