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 01-15-2009, 12:54 AM   #1
active
LQ Newbie
 
Registered: Dec 2008
Posts: 9

Rep: Reputation: 0
Question help me with routing (route command)


Hi everybody

Please help in finding solution for this scenario.
I have a small network with 5 clients system, a linux network gateway (gateway1) (which runs ipchains firewall)

My gateway1 setup is as follows

Eth1 = External ip (ex:88.88.88.88) Internet interface (example static ip used)
Eth0 = Internal Ip (192.168.5.1) Lan interface
The internal subnet is 192.168.5.0/24

The following above setup work without any problem.

I have another internet gateway system (gateway2) which is connected to another ISP which in turn has a static ip, its setup is given below

Gateway2 system
Eth1 = External ip (ex:78.78.78.78) Internet interface (example static ip used)
Eth0 = Internal Ip (192.168.5.15) Lan interface
The internal subnet is 192.168.5.0/24

Both the gateway system are connected

Now I want this to happen

For example the client system wants to connect to a remote system which has an ip address 66.66.66.66 (example ip use) I want this connection from my client to go through my second gateway and the rest of the connection request to all other host will follow the default route [since default gateway in client is set to gateway1]

Making this possible with routing using route command in my gateway1 system.
I am very much confused with the routing table, what should I add in my routing table

My default route table in gateway1 system is as follows.

[root@gateway1 /root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.5.0 * 255.255.255.0 U 0 0 0 eth0
88.88.88.0 * 255.255.255.0 U 0 0 0 eth1
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default dsl-KK-static-0 0.0.0.0 UG 0 0 0 eth1

Thanking you in advance.
Active
 
  


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
Routing : Route an ip differently from its ip range bala.linux Linux - Networking 3 05-07-2008 06:58 AM
FSR: how to configure routing or add route? ihatehotdogs Linux - Networking 3 05-01-2007 08:30 AM
Default route took 20s to display with 'route' command Akhran Linux - Newbie 3 11-04-2006 04:59 AM
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
a routing route???? mchitrakar Linux - Networking 4 07-11-2005 10:38 PM

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

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