LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-07-2003, 03:24 PM   #1
|Drakehash|
LQ Newbie
 
Registered: May 2003
Posts: 23

Rep: Reputation: 15
I need some routes


I am here because i am newbie

i have 2 nics to go out (internet conection) and 2 for the internal network (i am using masq).

i need route one machine of my private lan to use a gateway, i donīt know how, i canīt and donīt want update linux (i have redhat with kernel 2.2.16).

see this:


Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 200.185.178.2 0.0.0.0 UG 0 0 0 eth3
0.0.0.0 200.185.178.100 0.0.0.0 UG 1 0 0 eth2

i want Destination 192.168.2.2 use as a default gw 200.185.178.2

and the other networks use as a default gw the 200.185.178.100

how i can do that? (kernel 2.2.16 with ipchains).
 
Old 06-08-2003, 01:22 AM   #2
padlamoij
Member
 
Registered: Oct 2002
Location: East Point, GA
Posts: 188

Rep: Reputation: 30
hmm...
well the first one should be:
Code:
route add -net 192.168.2.2 netmask 255.255.255.255 gw 200.185.178.2 dev eth3
and the second should be:
Code:
route add default gw 200.185.178.100 dev eth2
i would do at least a
Code:
man route
to find out some more about the route command and setting up gate ways

Last edited by padlamoij; 06-08-2003 at 01:25 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Routes Obie Linux - Networking 16 04-28-2005 11:15 PM
routes himyuza *BSD 6 08-03-2004 11:41 AM
where are routes stored? Ph0enix2003 Linux - Networking 1 06-23-2004 11:46 PM
I need some routes |Drakehash| Linux - Networking 1 06-07-2003 03:36 PM
Multiple routes DavidPhillips Linux - Networking 2 12-03-2001 01:51 PM


All times are GMT -5. The time now is 12:32 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration