How to configure "secondary" route and dual homed RedHat host?

Hello all,

I have a RH Linux box that is dual homed.  We have been all over the net trying to find out how to configure a static route for the second network.  All we are finding is how to set up the "default route" and that is not what we need.  We need to set a static, permanent route that says everything from a specific IP range goes out the second NIC.

Help?
yccdadminsAsked:
Who is Participating?
 
Manfred BertlManagerCommented:
This would look like this:

route add -net <source-ip-net> netmask <netmask> dev <second NIC>
0
 
yccdadminsAuthor Commented:
Thank you mbertl!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.