You can setup a route for a specific network. On of my servers we have two NIC's on two different networks. What I did was create a route entry to go out the second interface's subnet. Here is an example of my setup:
I made these up.
NIC 1 = 191.13.23.7
NIC 2 = 163.180.5.25
Code:
route add net 7.0.0.0 164.180.5.1
route get 7.0.0.1 - Displays it went out the second interface, all other traffic goes out the first one.-
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.