Opened 19 years ago
Last modified 19 years ago
#1672 closed defect
Nework card order becomes random when hotplug is removed — at Initial Version
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | highest | Milestone: | 6.2 |
Component: | Book | Version: | udev_update |
Severity: | major | Keywords: | |
Cc: |
Description
This is a duplicate of http://bugs.debian.org/339951, reported even though hotplug is not removed from the LFS book yet.
To reproduce:
1) buy two network cards of different brands 2) compile both drivers as modules in linux-2.6.15-rc6 3) upgrade udev to 078 with all extras enabled, remove hotplug 4) Replace the mountkernfs and udev initscripts with the attached ones 5) Add to udev rules:
SUBSYSTEM=="firmware", ACTION=="add", RUN+="firmware_helper" ACTION=="add", MODAILAS=="?*", RUN+="/sbin/modprobe $modalias"
6) Configure some static IP addresses on eth0 and eth1 as the book says 7) Reboot several times and watch which address is assined to which card. The results may not be stable.
This bug was not visible with hotplug, since it (unlike udev) doesn't run many "modprobe" commands in parallel.
Upstream reaction: WONTFIX, please create udev rules that assign stable interface names based on e.g. MAC addresses or bus positions. It is also a good idea to bring interfaces up from udev rules, this will catch the currently-unhandled "I need to be root to connect to my Sharp Zaurus" annoyance. But please also be careful with firewalling.
This, obviously, applies not only to network cards, but to any device type (e.g. you can also reproduce this numbering instability with two sound cards of different brands).
Updated mountkernfs script