LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Add route to 1 IP Address through second network card (https://www.linuxquestions.org/questions/linux-networking-3/add-route-to-1-ip-address-through-second-network-card-830931/)

mattttux 09-08-2010 04:12 AM

Add route to 1 IP Address through second network card
 
Hi,

I am sorry but i know virtually nothing on the networking side of Linux. I have a server with 2 network cards. eth0 is used for all traffic and everything is working fine on this side. Eth1 is used for traffic to and from 1 ip address.

Lets say the ip address of eth1 is 123.123.123.10 and its gateway is 123.123.123.1. I need to pass all traffic to 123.123.123.20 through eth1. What command would i use?

Thanks for any help.

lurker79 09-08-2010 05:31 AM

something like

route add -host 123.123.123.20 gw 123.123.123.1

should do it


All times are GMT -5. The time now is 09:56 PM.