Re: Re: configuration eth0 derriere un routeur
> 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
Pas bon ! Il faut enlever les :
Enlève les, puis fais
/etc/init.d/networking restart et ça devrait marcher.
> --------------------------------
>
> 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
Argh ! Tu devrais avoir l'adresse MAC à la place des 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 :-( .... )
>
>
A+
Olivier
Reply to: