On Samedi 03 F�vrier 2001 17:46, coucou cemoi wrote:

> 2. comment v�rifier que ma carte r�seau est bien prise en compte au
> d�marrage ?

Il y a deux choses : le driver et la config.

Pour le driver, il devrait �tre pris en compte au d�marrage. Dans le fichier 
/etc/modules tu dois avoir une ligne le concernant :

[EMAIL PROTECTED]:~$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line.  Comments begin with
# a #, and everything on the line after them are ignored.
opl3
uart401
parport_pc
ne2k-pci
sb

Dans mon cas j'ai une clone NE2000 PCI (ne2k-pci), tu peux voir que j'ai 
aussi une carte son et une carte SCSI advansys. Au boot, il trouve ma 
carte :

        [EMAIL PROTECTED]:~$ dmesg
        (...)
        ne2k-pci.c: PCI NE2000 clone 'RealTek RTL-8029' at I/O 0xfcc0, IRQ 9.
        eth0: RealTek RTL-8029 found at 0xfcc0, IRQ 9, 52:54:00:DE:84:CE.       
 
        (...)

Pour le driver c'est ok. Pour la config maintenant : dans le fichier 
/etc/network/interfaces :

        [EMAIL PROTECTED]:~$ cat /etc/network/interfaces
        # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
 
        # The loopback interface
        iface lo inet loopback
 
        # The first network card - this entry was created during the Debian
        installation
        # (network, broadcast and gateway are optional)
        iface eth0 inet static
                address 192.168.1.9
                netmask 255.255.255.0
                network 192.168.1.0
                broadcast 192.168.1.255

et dans le fichier /etc/hosts :

        [EMAIL PROTECTED]:~$ cat /etc/hosts
        127.0.0.1       localhost
        192.168.1.9     lux.lmm.com     lux

et dans le fichier /etc/networks :

        [EMAIL PROTECTED]:~$ cat /etc/networks
        localnet 192.168.1.0

et si tu lances la commande suivante (attention il faut �tre root) :

        lux:~# ifconfig
        eth0      Link encap:Ethernet  HWaddr 52:54:00:DE:84:CE
                  inet addr:192.168.1.9  Bcast:192.168.1.255  Mask:255.255.255.0
                  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                  RX packets:1352792 errors:0 dropped:0 overruns:0 frame:181
                  TX packets:2893220 errors:566 dropped:0 overruns:0 
carrier:1120    
              collisions:86334 txqueuelen:100
                  Interrupt:9 Base address:0xfcc0
 
        lo        Link encap:Local Loopback
                  inet addr:127.0.0.1  Mask:255.0.0.0
                  UP LOOPBACK RUNNING  MTU:3924  Metric:1
                  RX packets:1027619 errors:0 dropped:0 overruns:0 frame:0
                  TX packets:1027619 errors:0 dropped:0 overruns:0 carrier:0
                  collisions:0 txqueuelen:0

tu vois que ta carte est configur�e (la cmd 'netstat -nr' est aussi ton amie).

Ce qui m'am�ne � poser deux questions :

1. Comment faire, post installation, pour r�g�n�rer les fichiers de la config 
r�seau, /etc/network/interfaces surtout. (un jour j'ai refait une install 
rien que pour �a !)

2. Les collisions c'est ok (je pense) mais quid des erreurs dans mon ifconfig 
?

Bonne continuation et bonne chance sous Debian !!!
-- 
Patrice Bridoux . Experiment Freedom, Use Linux . http://p.bridoux.free.fr
Estelum         . Tourisme en Midi-Pyr�n�es     . http://www.estelum.com
Le PIC          . Projet Internet & Citoyennet� . http://www.le-pic.org


Répondre à