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 have a simple Ubuntu 10.04 server that runs a service. The system has two NIC cards each configured for separate networks. Each NIC needs a separate gateway, but when both are configured, eth1 gets kicked off.

How else, other than specifying a gatway for each interface in /etc/network/interfaces can I configure a gateway for each NIC card?

share|improve this question

You need two routing tables for that, and two rules (ip rule) to choose the right table. (Or one primary and one extra for the other interface).

If you look here, the first example (4.2.1. Split access) is exactly what you need to configure.

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.