LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-07-2003, 02:25 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-07-2003, 02:36 PM   #2
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
2.2...i have never used ipchains so instead of fudging up some rules,

here is a link to a howto ( i just did a google search, so you can google for
more help i guess, if no one else can help).

http://www.ibiblio.org/mdw/HOWTO/IPCHAINS-HOWTO.html

it looks pretty useful.


and right now, all of your gateways are set to 0.0.0.0, that cant be good.

dunno if they changed the route command from 2.2 -> 2.4 but here is an example:

route add -net 192.168.1.0 netmask 255.255.255.0 dev eth0


this make any packet going through your machine bound for an address in
the range of 192.168.1.1 - 192.168.1.255 to go out eth0

man route has more examples.


Last edited by Robert0380; 06-07-2003 at 02:39 PM.
 
  


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 10:15 PM
routes himyuza *BSD 6 08-03-2004 10:41 AM
where are routes stored? Ph0enix2003 Linux - Networking 1 06-23-2004 10:46 PM
I need some routes |Drakehash| Linux - Newbie 1 06-08-2003 12:22 AM
Multiple routes DavidPhillips Linux - Networking 2 12-03-2001 12:51 PM

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

All times are GMT -5. The time now is 06:43 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
Open Source Consulting | Domain Registration