Re: 2ème carte réseau

Pàgina inicial

Reply to this message
Autor: Frédéric Mantegazza
Data:  
A: Xavier Bestel
CC: guilde
Assumpte: Re: 2ème carte réseau
Le Ven 10 juillet 2009 11:13, Xavier Bestel a écrit :

> Tu te répètes. J'aurais plutôt fait ça:
>
> # The secondary interface
> allow-hotplug eth1
> iface eth1 inet static
>     address 192.168.1.1
>     netmask 255.255.255.0
>     network 192.168.1.0
>     broadcast 192.168.1.255
>     gateway 192.168.1.1


Non, car là, je définis 192.168.1.1 comme gateway par défaut... JE n'ai
ensuite plus accès au réseau sur eth0...

Et sans cette ligne (gateway) ni les lignes 'route', j'ai :

$ route
Table de routage IP du noyau
Destination     Passerelle      Genmask         Indic Metric Ref    Use Iface
172.17.44.0     *               255.255.255.0   U     0      0        0 eth0
192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
default         172.17.44.254   0.0.0.0         UG    0      0        0 eth0


mais ça ne marche pas mieux (host unreachable).

-- 
    Frédéric