LinuxQuestions.org
Help answer threads with 0 replies.
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 01-10-2007, 05:11 AM   #1
grant-skywalker
Member
 
Registered: Jul 2005
Location: Jakarta / Kuala Lumpur
Distribution: Slackware, Debian, Ubuntu, Centos
Posts: 40

Rep: Reputation: 15
Howto create 2 gateway route?


Hi all,

I have a proxy server (for testing))connects to single ISP.

My other machines in private LAN is connecting straight to a firewall through a 16 port switch and to another ISP.

Say, before i switch to my testing proxy server, i am currently running linux box surfing net through the firewall.

But say if i want to be able to (at the same time) also test my connection to my testing proxy server to another ISP, how am i suppose to do?

LAN 10.100.100.0/24 -> 10.100.100.1(firewall) -> ISP 1
LAN 192.168.10.0/24 -> 192.168.10.1(proxy) -> ISP 2

My route -n shows:

------------------------------------------------------------------------------
mylinux@mylinux:/etc/network$ /sbin/route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.100.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 10.100.100.1 0.0.0.0 UG 0 0 0 eth0
------------------------------------------------------------------------------

My ip is 10.100.100.11, if i also want to connect through my second ISP, what should i do?

I know it's regarding to adding the route stuff, can someone please elaborate??

regards,
G.Skywalker
 
Old 01-10-2007, 05:34 AM   #2
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
Are you a member of both subnet classes ? (i mean do you have two ethernet cards at your box ?) One belonging to Class A (you alread have this(10.100.100.11)) & other belonging to class C 192.168.10.0/24 ?

Or is it possible that you can ping both subnets from your present configuration box ?

How do you do the name resolutions while you surf net from your proxy server ?
 
Old 01-10-2007, 05:44 AM   #3
grant-skywalker
Member
 
Registered: Jul 2005
Location: Jakarta / Kuala Lumpur
Distribution: Slackware, Debian, Ubuntu, Centos
Posts: 40

Original Poster
Rep: Reputation: 15
Okay, first of all, the proxy server has not been up yet.

I'm using 10.100.100.1 as my gateway/router to reach internet.

My machine (all my LAN workstations) will only have 1 LAN card. All i want is to be able to ping my proxy test server (192.168.10.1) and go out to my second ISP (as an alternative).

Meaning that i might have one default gw which is 10.100.100.1 but i also want to be able to ping another subnet which is 192.168.10.0.

regards,
G.Skywalker
 
Old 01-10-2007, 09:44 AM   #4
amitsharma_26
Member
 
Registered: Sep 2005
Location: New delhi
Distribution: RHEL 3.0/4.0
Posts: 777

Rep: Reputation: 31
What is this 10.100.100.1 box ? Do you have rights to change its routing table ?
Does at any instance(at any router) your 10.x network & 192.x network get connect to each other ?

Look as you said, that all your clients are on 10.100.100.x subnet & you want to setup a new proxy(isp2) on 192.x subnet & want all your clients internet traffic to redirect to this 192.x subnet hosted proxy server. In this case, at root level me must ensure that at first your clients should be able to ping this 192.x box; so either setup a box with two ethernet cards one belonging each to these two subnets & then thereafter we can go ahead with the solution you want to achieve.
 
  


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 do I keep gateway route across restarts? moonmoth Linux - Networking 3 09-04-2005 07:35 AM
My gateway can't route michaelsanford Linux - Networking 0 04-20-2005 05:05 PM
default route without a gateway scylla Linux - Networking 1 10-21-2004 01:40 AM
Route and Gateway Issues shaggz Linux - Networking 2 10-29-2003 12:33 PM
Ip Route Voice Gateway digicom Linux - Networking 1 08-22-2001 10:43 AM

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

All times are GMT -5. The time now is 02:55 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