Order of interfaces in /proc/net/dev

Paulo Estrela paulojbe at gmail.com
Tue Mar 25 19:01:34 UTC 2008


Hi John,

Thanks for your advice, but eth1 and eth2 are from the same
manufacture then they use same module.
/etc/udev/rules.d/70-persistent-net.rules is also set right, I also
tried to delete it and see if the new generated file will be
different, but nothing changed. I will try ask this on kernel malling
list.

Thanks everyone,

Paulo Estrela

2008/3/25, John L Fjellstad <john-ubuntu at fjellstad.org>:
> "Paulo Estrela" <paulojbe at gmail.com> writes:
>
>  > 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:
>
>
> I'm guessing the order is based on when the device is discovered and the
>  module is loaded, while the name is based on the persistent rule in
>  udev. If that's correct, you could force the order of the module load by
>  adding them in /etc/modules in the order you want.
>
>
>  --
>  John L. Fjellstad
>  web: http://www.fjellstad.org/          Quis custodiet ipsos custodes
>
>
>
>  --
>  ubuntu-users mailing list
>  ubuntu-users at lists.ubuntu.com
>  Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>


-- 
Até mais,

Paulo Estrela


More information about the ubuntu-users mailing list