Le 19.06.2005 20:15:47, Pascal@plouf a écrit :
David Dumortier a écrit :un pre-up modprobe module_carte devrais aussi aider @ avoir le bon ordre de module, non ?Je ne vois pas trop en quoi ça aiderait à charger les modules dans le bon ordre.[Raisonement simpliste] si aucun module n'est chargé, la remontée d'interface entraîne la remontée de module ...Il ne faut pas remonter eth1 avant eth0 (et encore je n'ai pas essayé), c'est tout ...C'est bien pourquoi je ne vois pas trop l'intérêt. Si pour une raison quelconque on veut activer eth1 avant eth0, ça ne marche plus. Et bonjour la pagaille si un même module gère plusieurs interfaces.
Tout ceci est expliqué dans le Ethernet-HOWTO au paragraphe 8.3. Using the Ethernet Drivers as Modules ... alias eth0 smc-ultra Important Note: The alias above is only used by the module utilities to translate a generic device name (e.g.eth0) into a hardware specific driver module name. When the driver loads, it never even sees this alias; instead it will simply choose the first free ethN (N=0,1,2,...) device name available. Thus, if more than one ethernet module is being loaded, the ethN assigned to the driver by the kernel may or may not be the same as the one given on the alias line, depending on the order in which the modules have been loaded. If you need to ensure that a particular card is given a particular IP address, then read the station address and assign your IP address based upon that. If you are writing your own shell scripts for this, you can just parse the ifconfig output; if using C, then you would use ioctl(ethfd, SIOCGIFHWADDR, &ifreq). ... La seule solution pour être *sûr* est d'utiliser nameif ou ifrename.. Jean-Luc
Attachment:
pgpMnnIXQScuP.pgp
Description: PGP signature