[Linux-bruxelles] pas de net au demarrage

Emmanuel Hankenne emmanuel.hankenne at silicomp.com
Mar 29 Avr 15:20:46 CEST 2003


Stephane Wirtel wrote:
> On Sun, 2003-04-27 at 20:02, portunix at ifrance.com wrote:
> 
>>y a t'il moyen de faire en sorte que lorsque quelqun
>>se logue le systeme tappe automatiquement la commande
>>ifup eth0 ?
> 
> le support PCMCIA doit etre lancé avant l'adressage de la carte PCMCIA.
> 
> peut-être un probleme de la mdk, mais ça ne doit pas etre bien difficile
> à résoudre.

Tu devrais avoit qqchose comme ceci dans le fichier dont voici le contenu:

# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
TYPE=Ethernet
USERCTL=no
ONBOOT=yes

Sur le site de RedHat, dont se sont inspirés très largement les 
développeurs de Mandrake, tu liras ceci:

You can also edit the configuration file for a given network interface 
by hand. Below is a listing of the parameters one can expect to 
configure in an interface configuration file.

Within each of the interface configuration files, the following values 
are common:

      * BOOTPROTO=<protocol>, where <protocol> is one of the following:
           * none - No boot-time protocol should be used.
           * bootp - The BOOTP protocol should be used.
           * dhcp - The DHCP protocol should be used.
      * BROADCAST=<address>, where <address> is the broadcast address.
      * DEVICE=<name>, where <name> is the name of the physical device 
(except dynamically-allocated PPP devices where it is the logical
        name).
      * IPADDR=<address>, where <address> is the IP address.
      * NETMASK=<mask>, where <mask> is the netmask value.
      * NETWORK=<address>, where <address> is the network address.
      * ONBOOT=<answer>, where <answer> is one of the following:
           * yes - This device should be activated at boot-time.
           * no - This device should not be activated at boot-time.
      * USERCTL=<answer>, where <answer> is one of the following:
           * true - Non-root users are allowed to control this device.
           * false - Non-root users are not allowed to control this device.


Ceci devrait t'aider. Je pense particulièrement au "flag" ONBOOT. S'il 
est à "no", ta carte ne sera pas configurée au démarage.

En espérant que cela t'aide un peu...

Bien à toi,

Emmanuel





Plus d'informations sur la liste de diffusion Linux-bruxelles