#1672: Network card order becomes random when hotplug is removed
--------------------------------------------+-------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  [email protected]
     Type:  defect                          |       Status:  new                
          
 Priority:  highest                         |    Milestone:  6.2                
          
Component:  Book                            |      Version:  SVN                
          
 Severity:  major                           |   Resolution:                     
          
 Keywords:                                  |  
--------------------------------------------+-------------------------------
Changes (by [EMAIL PROTECTED]):

  * milestone:  => 6.2

Old 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).

New 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).

Comment:

 Formatting of original description and marking for 6.2

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/lfs/ticket/1672>
Linux From Scratch <http://wiki.linuxfromscratch.org/lfs/>
Your Distro, Your Rules.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to