Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have just set up two nics in my ubuntu 12.04 server. I have eth0 and eth1 both configured to use DHCP.

eth0 is connected to my router and the router has access to the internet. eth1 is connected directly to the internet (I set it up because I am going on vacation and my router goes down sometimes, and I still need access to the server)

When I bring up eth1 with ifup, my local internet connection on the server is lost, and I cannot connect to it externall from my routers address.Aalthough I can connect to it through the other address pointing at eth1.

Any idea how to allow access to the internet from the server, (ping google.com) while still allowing external access to the server from both addresses? (router address/other address)

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.