Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 06-07-2003, 02:24 PM   #1
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 U 0 0 0 eth2 U 0 0 0 eth0 U 0 0 0 eth1 U 0 0 0 lo UG 0 0 0 eth3 UG 1 0 0 eth2

i want Destination use as a default gw

and the other networks use as a default gw the

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

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

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


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 - Networking 1 06-07-2003 02:36 PM
Multiple routes DavidPhillips Linux - Networking 2 12-03-2001 12:51 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:00 AM.

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