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

Here is my scenario: i have this server with 2 nics, each one with different IPs, connected to differents routers.

Almost everything is configured whe way i need. Traffic coming from eth0 exits using eth0, traffic coming from eth1 exits using eth1. And there is a default gateway configured.

$route: default IP UG 0 0 0 eth0

With this configuration, the traffic generated in the server is going out using eth0 (lynx for example).

The problem is: the Internet link from eth0 went down today. The traffic coming from eth1 was problem. But the traffic generated in the server was a problem...the default gateway was access do the Internet anymore (no more lynx

So i added a new default gateway configuration, pointing to eth1. For 30 minutes i kept that way...2 default gateways, but just one was "working"...and everything was working just fine. But then i removed de eth0 gateway entry because, well, 2 default gateways is kind of weird.

My question: is there any problem on keeping these 2 default gateways, one for each? So i don´t need to do nothing when one link go down again?

$route: default IP1 UG 0 0 0 eth0 default IP2 UG 0 0 0 eth1

share|improve this question

You'd be better suited with weighted routing, bonding, or some similar redundancy-based setup - such that you only use one default gateway at a time.

Having two default routes basically leads to asymmetrical routing:

That can cause a lot of issues which are fiddly and annoying.

share|improve this answer

I fear this could lead to very unpredictable network behaviour and even to connection problems. You might look into bonding your network devices for ourgoing conenctions and using it in hot spare mode. This can prevent further failures.

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.