Package: udev
Version: 0.091-2

I have a Pentium I system with a fresh installation of Debian/stable. I
upgraded it to run a v2.6 kernel ( linux-image-2.6.15-1-486 ), which
pulled in udev as a dependency. Subsequently, I discovered that the
network interface had stopped working.

Investigation shows that the cause of the network malfunction is that
the ethernet device number is incremented on every reboot, and
consequently, the "/etc/network/interfaces" file, which is configured
for "eth0", cannot find it. This seems to be related to the fact that
the file "/etc/udev/rules.d/z25_persistent-net.rules" gets a new entry
added on every reboot:

    # UNKNOWN device (/class/net/eth0)
    ACTION=="add", SUBSYSTEM=="net", DRIVER=="?*", 
SYSFS{address}=="00:20:35:XX:YY:ZZ", NAME="eth0"

    # UNKNOWN device (/class/net/eth0)
    ACTION=="add", SUBSYSTEM=="net", DRIVER=="?*", 
SYSFS{address}=="00:20:35:XX:YY:ZZ", NAME="eth1"

    # UNKNOWN device (/class/net/eth0)
    ACTION=="add", SUBSYSTEM=="net", DRIVER=="?*", 
SYSFS{address}=="00:20:35:XX:YY:ZZ", NAME="eth2"

This went up to "eth7" at one point. If I delete this file and reboot,
then everything works fine: the network interface comes up as "eth0",
and the network init scripts configure it properly. But on the next
boot, it comes up as "eth1", and everything breaks. Subsequent reboots
produce "eth2", "eth3", and so on.

I understand that the intention of this mechanism is to produce
persistent device names for the same physical device, while other
hardware is being added or removed. But in this case, it is producing
exactly the opposite result: the device name changes with every boot,
while the hardware configuration remains the same.

The network configuration of this system is as simple as it could
possibly be: there is one ISA ethernet card, the driver for which is
loaded by the "etc/modules" file. It seems like the default udev
configuration ought to be able to handle this situation without manual
intervention. Whether this problem also affects PCI ethernet cards, I do
not know. It doesn't seem to be an issue with the kernel driver; if I
manually "ifconfig" the device, it starts working immediately.


-- Ian Bruce


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to