Francesco Riosa wrote:
[cannot see my previous email ,resending with other account]
Christian Bricart wrote:
Hi,
is there a possible solution to delay hot-/cold-/whatever-plugging after
loading autoload-modules (/etc/modules.autoload.d/kernel-2.6) or at least
after some network probing..?
right now I have to add "eth1394" to /etc/hotplug/blacklist, as it load
before my Ethernet cards ;-)
So Firewire becomes eth0, moving old eth0 to eth1 and eth1 to eth2...
(Fortunately, i've got a serial console for that server which I'm able to
connect to via SSH after the network has been all messed up...)
Christian
may I suggest an alternative solution? on my firewalls I rename the eth*
to a name more meaningful to me:
"/etc/udev/rules.d/60-net.rules"
KERNEL="eth*", SYSFS{address}="00:50:ff:f6:1f:e6", NAME="lan"
KERNEL="eth*", SYSFS{address}="00:90:2e:1b:d1:55", NAME="ext"
then in "/etc/conf.d/net"
modules=( "iproute2" )
config_lan=( "192.168.69.1/24" )
the 6 bytes numbers are the mac address of the ethernet cards. This also
help to have a deterministic name of ethernet card after moving them on
pci slot, rebuilding kernel etc.
Nifty idea - but not practical in my case as there are some references
(like vmware, iptables, ..) to eth0 and eth1..
But I'll try to set (using your example):
"/etc/udev/rules.d/60-net.rules"
KERNEL="eth*", SYSFS{address}="00:50:ff:f6:1f:e6", NAME="eth0"
KERNEL="eth*", SYSFS{address}="00:90:2e:1b:d1:55", NAME="eth1"
for the names.. that might do the trick :-)
later...
Christian
thanks for this solution goes to a gentoo dev but sadly I've forgot who .
rgds, Francesco R.
--
[email protected] mailing list