Order of interfaces in /proc/net/dev
Charlie Kravetz
cjk at teamcharliesangels.com
Mon Mar 24 18:38:33 UTC 2008
On Mon, 2008-03-24 at 15:10 -0300, Paulo Estrela wrote:
> Hi,
>
> Anybody knows which define the order of interfaces listed in
> /proc/net/dev? I'm using snmp to monitor my servers and when I use
> snmpwalk to list server's intefaces I see that eth0 is not interface
> 2, but interface 3. Interface 2 is eth2. Chating with people form
> net-snmp project they said that snmp interface order is bound to
> /proc/net/dev interface order, but which define interface order in
> this pseudo-file? In my system, /proc/net/dev looks like this:
>
> Inter-| Receive | Transmit
> face |bytes packets errs drop fifo frame compressed
> multicast|bytes packets errs drop fifo colls carrier compressed
> lo: 184435 943 0 0 0 0 0 0
> 184435 943 0 0 0 0 0 0
> eth2:50383811 207869 0 0 0 0 0 0
> 21556871 148301 0 0 0 0 0 0
> eth1: 0 0 0 0 0 0 0 0
> 0 20 0 0 0 0 0 0
>
>
> --
> Thanks everyone,
>
> Paulo Estrela
>
I am not an expert in this, but the answer might be
in /etc/udev/rules.d/70-persistent-net.rules if you are using Ubuntu
7.10, Gutsy Gibbon
good luck,
--
Charlie Kravetz
Linux Registered User Number 425914 [http://counter.li.org/]
Never let anyone steal your DREAM. [http://keepingdreams.com]
More information about the ubuntu-users
mailing list