Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Ubuntu 11.04 server attached to multiple internet connections. My problem is that I cannot get it to reply to pings (and any other requests) from both IP-s, only for the IP I specify the gateway option in the /etc/networking/interfaces file. If I speficy multiple gateways, it seems to choose eth1 over eth3.

MS HyperV Server handles the issue fine.

(We have an IP transition and it would be good if the server had listened for more addressed for a period of time.)

share|improve this question
Is the firewall blocking ICMP (pings)? Check iptables – Tim Dec 13 '11 at 3:35
I don't think so because I can ping any interface as long as I use one interface only (either eth1 or eth3). (btw. there's no firewall on this server) – Csq Dec 13 '11 at 3:45

You can't have two default gateways in the same routing table. If you have more than one, the kernel is always going to choose the first default gateway in the table. You are going to have to create multiple routing tables, one for each internet connection, then create rules to choose which table to use for any given packet. This is commonly referred to as "split access". The guide I recommend reading for getting this working is here on

share|improve this answer

Have you tried turning IP formwarding on?

echo 1 > /proc/sys/net/ipv4/ip_forward
share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.