Red Hat Bugzilla – Bug 98209
RHEL2.1 AS QU2: /etc/init.d/network brings up interfaces in alphabetical order
Last modified: 2014-03-16 22:37:10 EDT
Description of problem:
/etc/init.d/network brings up interfaces in alphabetical, not numerical order.
This can cause problems in the following situation (just as an example):
eth[0-2] : tg3 cards
eth[3-4] : eepro100 cards
eth[5-16]: tulip cards
the init.d script brings them up as:
When eth0 is initialized, it loads the tg3 module. This claims eth0, eth1 and
eth2. When eth10 is brought up, it loads tulip, which claims eth[3-14]. This
means you can't bring up eth15 and eth16.
I have the following patch that fixed this (it's small, so I'll include it
inline). Note: it orders the 'interfaces' list by number, so it'll try to bring
up interfaces in this order:
But within each namespace, at least, the modules will be loaded in order.
--- network Sat Dec 14 12:51:10 2002
+++ network.fixed Fri Jun 27 16:38:52 2003
@@ -50,9 +50,10 @@
interfaces=`ls ifcfg* | LANG=C egrep -v '(ifcfg-lo|:|rpmsave|rpmorig|rpmnew)' | \
LANG=C egrep -v '(~|\.bak)$' | \
LANG=C egrep -v 'ifcfg-cipcb[0-9]+$' | \
LANG=C egrep 'ifcfg-[a-z0-9]+$' | \
- sed 's/^ifcfg-//g'`
+ sed 's/^ifcfg-//g' |
+ sed 's/[0-9]/ &/' | sort -n +1 | sed 's/ //'`
# See how we were called.
case "$1" in
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Configure a system with > 10 interfaces as above.
2. start up networking.
3. watch things mysteriously fail
ISSUE TRACKER 26390 opened as sev 1.
Fixed in CVS, will be in 7.31-1, among other places.
Bill, in build Derry-re0521.QU2-RC.0AS, the versions of initscripts is
Is "7.31-1" (I assume initscripts) planned for RHEL2.1 Update3 or does your
comment above reflect Taroon? In the latest Taroon build
(Taroon-re0916.nightly), the version is initscripts-7.31.4.EL-1.
This is a 2.1 bug.
7.31-1 is in in Cambridge, similar code is in Taroon. Code is on the RHEL2.1
branch but is not currently built.
Identified by HP-IPF as a MUSTFIX. Adding to U3 blocker bug list.
NOT ON SUE'S QU3 MUSTFIX LIST. MOVING TO U4.
Fixed in 6.47.3-1 or later.
A patch very similar to what we suggested is indeed in RHEL2.1 AS
update 3. Assuming the modified patch was tested, I think it's safe
to close this defect.
An errata has been issued which should help the problem described in this bug report.
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen
this bug report if the solution does not work for you.