I've got an Ubuntu 10.04 server with this configuration:
eth0: 192.168.10.XXX mask 255.255.255.0 gw 192.168.10.254
eth1: 192.168.0.XXX mask 255.255.255.0 gw 192.168.0.3
eth0 is used for incoming and outgoing trafic (internal webserver)
eth1 i want to use for accessing the network: 192.168.51.0/24 by gateway 192.168.0.1
when eth1 is down, the webserver is reachable.
When i want to bring the state of eth1 to up, i use the following commands:
$ sudo su # ifconfig eth1 up # route add -net 192.168.51.0 netmask 255.255.255.0 gw 192.168.0.1 # ping 192.168.51.XXX [i've got contact] # ip route add default via 192.168.10.254 # ping 192.168.51.XXX [i've got contact]
but when i want to access the webserver, i can't get contact.
Can someone please give me some advice so the network .51 AND the webserver (network .10) is reachable?