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

I have multiple servers with 2 LAN cards each.

I want to use their second LAN cards to connect them to each other using a network switch.

My question is - How do I 'join' the networks together on the OS level, using the private network ip range for the second connection.

Basically I want every server to connect to the Internet normally, except when using the 10.x.x.x ip range, in which case the local connection is to be used.

share|improve this question
Have you found that they don't do this normally? – Ignacio Vazquez-Abrams Mar 28 '12 at 18:39

1 Answer 1

up vote 5 down vote accepted

The server's routing table will naturally prefer directly connected routes.

Say that eth0 has IP address, and eth1 has, with default gateway only set on eth0. Then eth1 will be used for packets with a destination of, and eth0 for everything else but localhost.

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.