Messages in this thread | | | From | "Russell Coker - mailing lists account" <> | Date | Mon, 27 Oct 97 16:46:12 +1000 | Subject | Re: /proc/net/dev and aliasing? |
| |
>Is there any 2.* kernel version that does statistics seperately for >aliased network devices?
>bash# uname -a >Linux digital 2.0.30[-orig] #1 Sun Oct 19 01:08:25 PDT 1997 i586 bash# cat >/proc/net/dev >Inter-| Receive | Transmit > face |packets errs drop fifo frame|packets errs drop fifo colls carrier > lo: 52163 0 0 0 0 52163 0 0 0 0 0 > eth0:11688188 0 0 0 0 3125052 0 0 0 13966 0 >eth0:1: No statistics available.
>I need statistics for eth0:1, and I don't know what code to add to my >kernel. Anyone have a patch or advice?
The way things currently work is that the interface device driver collects this information (that's why some devices such as ppp devices don't yet support it).
The aliasing code is outside the interface device driver code so most (all?) interface drivers don't know anything about virtual interfaces.
You can get information on packets and bytes send/received on a per IP basis via IP accounting rules. Is there any benefit in knowing which virtual interface is generating the traffic that causes collisions? If not then is there any benefit in doing stats on a per virtual-interface basis?
-- ----------------------------------------------------------- In return for "mailbag contention" errors from buggy Exchange servers I'll set my mail server to refuse mail from your domain. The same response applies when a message to a postmaster account bounces. "Russell Coker - mailing lists account" <bofh@snoopy.virtual.net.au> -----------------------------------------------------------
| |