Ok, c’est un peu brouillon.
J’ai rechargé une lenny sur un vieux disque, histoire de pas tout massacrer…
serveur lenny :
route:
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth1
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
default lenny1.pascal-1 0.0.0.0 UG 0 0 0 eth0
default dsldevice.lan 0.0.0.0 UG 0 0 0 eth1
/etc/network/interfaces :
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameserver 192.168.0.1
allow-hotplug eth1
iface eth1 inet static
address 192.168.84.15
netmask 255.255.255.0
network 192.168.84.0
broadcast 192.168.84.255
gateway 192.168.84.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.84.1
/etc/hosts:
127.0.0.1 localhost
192.168.84.15 lenny1.pascal-1 lenny1
192.168.0.1 lenny1.pascal-1 lenny1
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Workstation lenny :
route :
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
/etc/network/interfaces :
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.0.12
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameserver 192.168.0.1
Là, j’ai tout donné. Y a un truc qui manque et j’arrive pas à mettre la main dessus
Note :
Serveur :
192.168.0.1 = IP serveur ET passerelle
Workstation :
192.168.0.1 = passerelle
…