alors, voici ce que je viens de mettre dans mon /etc/network/interfaces :
Code :
- # /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 :
Code :
- 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" :
Code :
- 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.
Message édité par z0rglub le 17-09-2002 à 16:58:07
---------------
Ma galerie photo créée avec Piwigo et hébergée sur Piwigo.com