[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: automatiser un réseau local



On Tue, 23 Jul 2002 23:21:38 +0200
mike@alezan.org (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 debian-user-french-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: