Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 Red Had Linux machine with two NICs:

  • eth0 - |
  • eth1 - |

So the first one is on a class A subnet, the second is on a class C subnet.

This is what my routing table looks like:

Destination  Gateway   Genmask        Flags Metric Ref Use Iface     *  U     0      0     0 eth1
link-local   *    U     1002   0     0 eth0     *      U     0      0     0 eth0
default        UG    0      0     0 eth0

The two NICs are connected to separate physical (actually virtual) LAN segments and I have a host connected to the same LAN segment eth0 is with IP | but I can't ping it from this machine because it appears its getting confused and sending out eth1. When I disable eth1 to force the packet to go out eth0 it connects but I need both enabled.

I'm thinking the solution is to add a manual route to my host to force it to go through eth0. I'm not sure given the information above what the command would be to manually the route. Basically I need to send any traffic to out eth0. Any help would be great!!

share|improve this question
up vote 1 down vote accepted

# route add -host dev eth0

share|improve this answer
Wonderful, thank you! – Andy Arismendi Jan 11 '13 at 12:30

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.