On Tue, 23 Jul 2002 23:21:38 +0200
[EMAIL PROTECTED] (PROFETA Mickael) wrote:

> On Tue, Jul 23, 2002 at 11:14:25PM +0200, Patrice Karatchentzeff wrote:
> > PROFETA Mickael �crivait :
> > 
> > [...]
> > 
> >  > > iface eth0 inet static
> >  > >      address 192.168.0.1
> >  > >      netmask 255.255.255.0
> >  > >      gateway 192.168.0.1
> >  > > route add -host 192.168.0.1/32 eth0
> >  > 

Salut Patrice,
il faut faire simple:

sur la machine qui a la connexion internet et qui doit te servir de routeur,
tu dois avoir dans /etc/network/interfaces un truc du genre

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian 
installation# (network, broadcast and gateway are optional)
#automatically added when upgrading
auto eth0
iface eth0 inet static
        address 192.168.0.1
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.225

et sur les machines qui passent par cette passerelle pour se connecter, le m�me 
fichier devient :

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian 
installation# (network, broadcast and gateway are optional)
#automatically added when upgrading
auto eth0
iface eth0 inet static
        address 192.168.0.2
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.225
        gateway 192.168.0.1

par exemple.

Ca te pla�t comme id�e ?

A+
jo
 
______________________________________________________________________________
ifrance.com, l'email gratuit le plus complet de l'Internet !
vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP...
http://www.ifrance.com/_reloc/email.emailif



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Répondre à