Gentoo Archives: gentoo-server

From: Christian Bricart <christian@×××××××.de>
To: gentoo-server@l.g.o
Subject: Re: [gentoo-server] delay init of firewire
Date: Wed, 15 Feb 2006 17:43:56
Message-Id: 43F367CB.7000702@bricart.de
In Reply to: Re: [gentoo-server] delay init of firewire by Francesco Riosa
1 Francesco Riosa wrote:
2 > [cannot see my previous email ,resending with other account]
3 >
4 > Christian Bricart wrote:
5 >
6 >>Hi,
7 >>
8 >>is there a possible solution to delay hot-/cold-/whatever-plugging after
9 >>loading autoload-modules (/etc/modules.autoload.d/kernel-2.6) or at least
10 >>after some network probing..?
11 >>
12 >>right now I have to add "eth1394" to /etc/hotplug/blacklist, as it load
13 >>before my Ethernet cards ;-)
14 >>So Firewire becomes eth0, moving old eth0 to eth1 and eth1 to eth2...
15 >>
16 >>(Fortunately, i've got a serial console for that server which I'm able to
17 >>connect to via SSH after the network has been all messed up...)
18 >>
19 >>Christian
20 >>
21 >
22 > may I suggest an alternative solution? on my firewalls I rename the eth*
23 > to a name more meaningful to me:
24 >
25 > "/etc/udev/rules.d/60-net.rules"
26 > KERNEL="eth*", SYSFS{address}="00:50:ff:f6:1f:e6", NAME="lan"
27 > KERNEL="eth*", SYSFS{address}="00:90:2e:1b:d1:55", NAME="ext"
28 >
29 >
30 > then in "/etc/conf.d/net"
31 > modules=( "iproute2" )
32 > config_lan=( "192.168.69.1/24" )
33 >
34 >
35 > the 6 bytes numbers are the mac address of the ethernet cards. This also
36 > help to have a deterministic name of ethernet card after moving them on
37 > pci slot, rebuilding kernel etc.
38
39 Nifty idea - but not practical in my case as there are some references
40 (like vmware, iptables, ..) to eth0 and eth1..
41
42 But I'll try to set (using your example):
43
44 "/etc/udev/rules.d/60-net.rules"
45 KERNEL="eth*", SYSFS{address}="00:50:ff:f6:1f:e6", NAME="eth0"
46 KERNEL="eth*", SYSFS{address}="00:90:2e:1b:d1:55", NAME="eth1"
47
48 for the names.. that might do the trick :-)
49
50 later...
51
52 Christian
53 >
54 > thanks for this solution goes to a gentoo dev but sadly I've forgot who .
55 >
56 > rgds, Francesco R.
57 >
58 >
59
60 --
61 gentoo-server@g.o mailing list