router
Inviato: lunedì 31 gennaio 2011, 15:46
ciao,
sto cercando di realizzare un router misto ad altre funzioni sul mio server Ubuntu.
Sul server ho 3 schede di rete:
eth0 internet (192.168.1.181 gw 192.168.1.254)
eth1 prima NAT (192.168.2.1 gw 192.168.2.254)
eth2 seconda NAT (192.168.3.1 gw 192.168.3.254)
ho settato cosi' il mio /etc/network/interface:
ho provato a settare anche le static route ma non sono riuscito cosi':
Pero' gli host non riescono a navigare in internet:
riscono a pingare fino al server (192.168.1.181) ma non riuscono andare oltre.
Sapete dove sbaglio?
Grazie
sto cercando di realizzare un router misto ad altre funzioni sul mio server Ubuntu.
Sul server ho 3 schede di rete:
eth0 internet (192.168.1.181 gw 192.168.1.254)
eth1 prima NAT (192.168.2.1 gw 192.168.2.254)
eth2 seconda NAT (192.168.3.1 gw 192.168.3.254)
ho settato cosi' il mio /etc/network/interface:
Codice: Seleziona tutto
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#internet
auto eth0
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.1.181
netmask 255.255.255.0
gateway 192.168.1.254
#prima lan
auto eth1
iface eth1 inet static
address 192.168.2.254
netmask 255.255.255.0
network 192.168.2.0
#seconda lan
auto eth2
iface eth2 inet static
address 192.168.3.254
netmask 255.255.255.0
Codice: Seleziona tutto
# static route
#up route add -net 192.168.2.0/24 gw 192.168.1.254 dev eth0
up route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.2.254 dev eth1
#up route add -net 192.168.2.254 netmask 255.255.255.255 dev eth0
riscono a pingare fino al server (192.168.1.181) ma non riuscono andare oltre.
Sapete dove sbaglio?
Grazie