LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-08-2010, 04:12 AM   #1
mattttux
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
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.
 
Old 09-08-2010, 05:31 AM   #2
lurker79
Member
 
Registered: Jan 2005
Location: UK
Posts: 55

Rep: Reputation: 16
something like

route add -host 123.123.123.20 gw 123.123.123.1

should do it
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to add a route to other network ? yashwanth Linux - Newbie 2 11-25-2008 11:19 PM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM
unable to add default route (network unreachable) beebop Linux - Networking 12 05-30-2005 11:07 AM
Network route add file David@330 Linux - Networking 4 05-26-2005 07:38 AM
add a static route in Network init files Ghitza Linux - Networking 1 11-19-2004 05:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration