Re: How are device names assigned to eth devices?



nunya <business@xxxxxxxxx> writes:

On Mon, 17 Sep 2007 03:40:30 +0000, Bill Unruh wrote:

I have an Agere Ethernet card with the et131x driver, which works.
However I am confused as to the device naming. I had it listed as
alias eth0 eth131x
in /etc/modprobe.conf
( with also an alias eth1 ipw3945 for the wireless). The eth131x would be
loaded first as shown in dmesg. and then the ipw3945 which was assigned the
device number eth1. But eth0 did NOT correspond to the eth131x device.
I later replaced that line with
alias eth2 eth131x
with an equivalent /etc/sysconfig/network-scripts/ifcfg-eth2 file
and now loh and behold, everything worked and the ethernet et131x came up at eth2
on bootup. Why in the world did eth0 not work? How are device numbers
assigned? and why is there no eth0 anywhere?

What routine is it that determines the numbering ( and naming) of the
devices-- ie assigns eth2 say to this device?

Thanks.
see /etc/udev/rules.d/<number>-persistent-net.rules. This file is where
the rules of naming the interfaces are parsed.

I am confused. udev does not sound like something that would be handling
device names. And why would it be refusing to assign eth0 to the device but
be happy with eth2, esp since eth0 does not exist on the machine.
And what does udev use to assign those names? Ie there must be some program
that actually does the assigning.


.



Relevant Pages

  • Re: How are device names assigned to eth devices?
    ... However I am confused as to the device naming. ... alias eth0 eth131x ... everything worked and the ethernet et131x came up at eth2 ... Why in the world did eth0 not work? ...
    (comp.os.linux.networking)
  • Re: NAT-setup: modification requared
    ... I have F11 machine which shares WEB to small home wired network. ... F11 computer has 3 ethernet adapters - one built in motherboard (eth0, 'main' adapter) and two additional cards. ... It worked perfect while there was only one client in the home network - window$ laptop, connected to eth1 (eth2 was down). ...
    (Fedora)
  • NAT-setup: modification requared
    ... I have F11 machine which shares WEB to small home wired network. ... F11 computer has 3 ethernet adapters - one built in motherboard (eth0, 'main' adapter) and two additional cards. ... It worked perfect while there was only one client in the home network - window$ laptop, connected to eth1 (eth2 was down). ...
    (Fedora)
  • Re: Sleep problems with kernels >= 2.6.21 on powerpc
    ... eth2: Airport entering sleep mode ... eth0: suspending, WakeOnLan disabled ... ADB keyboard at 2, handler 1 ...
    (Linux-Kernel)
  • Re: Sleep problems with kernels >= 2.6.21 on powerpc
    ... eth2: Airport entering sleep mode ... eth0: suspending, WakeOnLan disabled ... ADB keyboard at 2, handler 1 ...
    (Linux-Kernel)