Le 16/09/2002 a 23:33:25 +0100, Pierrick Le Gall a ecrit :
bonjour,
je suis d?butant sous linux et j'ai un soucis pour configurer ma debian woody pour avoir acc?s au net derri?re mon routeur.
adresse IP du routeur : 10.0.0.138
(je suis chez Wanadoo)
DNS 1 : 193.252.19.3
DNS 2 : 193.252.19.4
voici le contenu de mon /etc/network/interfaces :
--------------------------------
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.0.0.1
network 10.0.0.0
netmask 255.255.255.0
broadcast 10.0.0.255
Pourquoi mets tu un broadcast ? Ca ne parait pas cohérent avec l'usage
que tu sembles faire de ton réseau.
C'est un peu bizarre comme option pour un premier essai.
Je commencerais par virer cette ligne, de même que la ligne network.
A terme tu mettras à cet endroit
gateway 10.0.0.138
Ce que te dispensera du route add default.
Il faudrait que tu dises ce qui apparait quand tu tapes "route" et "ifconfig".
A+
Olivier
alors, voici ce que je viens de mettre dans mon /etc/network/interfaces :
--------------------------------
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# The first network card, this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address : 10.0.0.1
netmask : 255.255.255.0
gateway : 10.0.0.138
--------------------------------
je fais un "ifconfig eth0 down" puis un "ifconfig eth0 up", et voici le résultat de ifconfig :
--------------------------------
eth0 Link encap:Ethernet Haddr XX:XX:XX:XX:XX:XX
inet addr : 10.0.0.1 Bcast:10.0.0.255 Mask : 255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:4727 (4.6 Kib) TX bytes:354 (354.0b)
Interrupt:9 Base address:0xb800
lo Link encap:Local Loopback
inet addr : 127.0.0.1 Mask : 255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)
--------------------------------
et voici ce que me donne "route" :
--------------------------------
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 * 255.255.255.0 U 0 0 0 eth0
--------------------------------
et je peux toujours pas envoyer de ping à l'extérieur.
(A l'aide, j'en ai marre de retourner sous win pour taper 25 lignes de console linux pour envoyer un mail :-( .... )