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?


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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