Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.