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

routeur: fichier interfaces et orthodoxie



Bonjour,

J'ai construit 1 routeur, muni de 3 interface

Une premier version de /etc/network/interfaces, AVEC la ligne gatway 
contenant la meme adresse que l'interface :
auto eth0
iface eth0 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

auto eth1
iface eth1 inet static
	address 192.168.10.1
	netmask 255.255.255.0
	network 192.168.10.0
	broadcast 192.168.10.255
	gateway 192.168.10.1

auto eth2
iface eth2 inet static
	address 192.168.100.1
	netmask 255.255.255.0
	network 192.168.100.0
	broadcast 192.168.100.255
	gateway 192.168.100.1

Produit ce routage, qui fonctionne mais me semble trop lourd.
# route -n
Dest              Gateway        Genmask         Flags
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.100.0   0.0.0.0         255.255.255.0   U     0      0        0 eth2
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.10.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
0.0.0.0         192.168.100.1   0.0.0.0         UG    0      0        0 eth2
0.0.0.0         192.168.10.1    0.0.0.0         UG    0      0        0 eth1
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth0

J'ai refais le fichier interfaces, SANS gateway, ke routage fonctionne, plus 
de route par defaut, toujours les gateway indefinies pour les 3 reseau.

Quelle solution est la moins mauvaise ?
Existe t-il une meilleure solution ?



Reply to: