Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question

migrated from stackoverflow.com Oct 23 '12 at 15:24

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.