Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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'm trying to set up several web servers for a load balanced cluster and need to have each server connected to the internal network (for load balancing) as well as to an external network (Internet - for administration).

I have two NICs, but since I can't set two default gateways I have the external gateway as default and the internal as a route rule.

This setup only works half way—the internal network is fine, but I can't log in from outside or see the web from the box. If I switch the gateways, remote login/web will work, but the internal won't.

I'm sure someone encountered this before, but I wasn't able to find anything online.

share|improve this question

Why would you want to set up two default gateways? Its the gateway the server sends packets to if he doesnt know the address and has no route. So there can only be one. Or else how decide?

Can you see the web if you only set the external gateway as default gateway on the external NIC? Without additional routes? Why do you need additional routes? Can you paste the output of route print?

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.