Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 105826 - HWADDR/nameif and continuously cycling device names
Summary: HWADDR/nameif and continuously cycling device names
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks: CambridgeTarget
TreeView+ depends on / blocked
 
Reported: 2003-09-28 05:46 UTC by Dax Kelson
Modified: 2014-03-17 02:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-09-30 20:36:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dax Kelson 2003-09-28 05:46:22 UTC
Description of problem:

My laptop has the following /etc/mactab:

eth0 00:08:74:46:26:9D
eth1 00:02:2D:6C:97:4E
eth2 00:0B:FD:C6:4C:AD
eth3 00:10:A4:E1:52:8A

Details:

eth0 == builtin PCI 3com 10/100 nic
eth1 == builtin PCMCIA (internal socket 2) Orinoco wireless
eth2 == insertable Cisco Aironet 350 wireless nic
eth3 == insertable Xircom RealPort 10/100 nic

My ifcfg-ethX files all have appropriate HWADDR lines.

Generally, everything seems to work fine (modulo enabling IPv6), however, I
started testing corner cases and found a bug.

Usually my builtin Orinoco is always "inserted".  I "ejected" it using the command:

cardctl eject 2

Now I no longer have a 'eth1'. If I then slide in my Xircom into my externally
accesible PCMCIA slot(s) it properly comes up as the desired eth3.

BUT if I insert the Cisco aironet 350, instead of comming up as the desired
eth2, it comes up as "devXXXX" where the "XXXX" is a seemingly random number.

Another strange thing is that if I run "ifconfig" repeatedly, I see different
"XXXX" values each time. It seems to be continuously cycling through different
numbers.

Comment 1 Bill Nottingham 2003-09-29 04:15:33 UTC
dev$RANDOM. Fun with bash constructs.

Note that /etc/mactab isn't used at all. Because nameif can't do atomic swapping
of two deadlocking interfaces, listing everything in mactab doesn't help if
things get  confused.

Normally what happens here is that there's an unresolvable conflict. What does
'ifconfig -a' say... are there any devices loaded that are failing to be renamed?

Comment 2 Jeremy Portzer 2003-12-18 19:16:11 UTC
As far as I can tell, the HWADDR= functionality has always been broken
in Red Hat Linux due to Bug #75572 .  While the example shown in that
bug is wrong, the problem still exists.

Comment 3 Bill Nottingham 2003-12-18 19:29:36 UTC
Tehcnically, that shouldn't affect this. nameif *does* return 1 on
failures due to name collisions, and the initscripts aren't going to
call nameif on interfaces that don't exist.

Comment 4 Bill Nottingham 2005-09-30 20:36:12 UTC
Closing bugs on older, no longer supported, releases. Apologies for any lack of
response.

Please try to reproduce this on a current release, such as Fedora Core 4. If the
issue persists, please open a new issue. This particular code has been reworked
a few times since this original report.


Note You need to log in before you can comment on or make changes to this bug.