LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-29-2007, 03:32 AM   #1
azamup
LQ Newbie
 
Registered: Feb 2007
Distribution: debian
Posts: 7

Rep: Reputation: 0
Question Debian Server Mutiple Gateways Routing


HI!

Someone pl. help me on this;

Description:
I want to communicate/bridge/NAT with 2 diff. subnets 192.168.0.0 (network0) and 192.168.1.0 (network1)which are connected with a debian pc having 2 NICs as follows;

Debina (Server) with 2 NICs

(Network1)
eth1
IP : 192.168.1.1
Subnet: 255.255.255.0
GW: 192.168.0.1
DNS: 192.168.1.1

(Network0)
eth0
IP: 192.168.0.1
Subnet: 255.255.255.0
GW: 192.168.1.1
DNS: 192.168.0.1

Client Side Settings of (Network0)
IP: 192.168.0.2
Subnet: 255.255.255.0
GW: 192.168.0.5
DNS: 192.168.0.5

Client Side Settings of (Network1)
IP: 192.168.1.2
Subnet: 255.255.255.0
GW: 192.168.1.2
DNS: 192.168.1.2

Both the networks are having diff. Gateways which are the IPs of the ADSL modems which are serving internet independently...so the Gateways cudn't be changed. If we change, the browsing cut offs accordingly.

IP_Fwarding is enabled on debian server and I can see both networks on the Debian Server (2NICs) but not able to communicate/see on client PCs from 0 to 1 and vice versa.

Pl. let me know how is it possible to get both networks to see each other PCs both networks are having windows XP PCs & i don't have any cisco router etc.

will really appreciate your help...am stuck-up into it from last 2 months

Azam
 
Old 09-30-2007, 03:07 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well on that box all you need to do is enable ip forwarding (echo 1 > /proc/sys/net/ipv4/ip_forward) but the problem is how to get the traffic to hit that box in the first place. either add routes on *ALL* your clients to route to the destination subnet via that machine, or you*might* be able to put a static route on the ADSL routers to redirect on behalf of the whole network
 
Old 10-01-2007, 12:16 AM   #3
azamup
LQ Newbie
 
Registered: Feb 2007
Distribution: debian
Posts: 7

Original Poster
Rep: Reputation: 0
Question Debian Server Mutiple Gateways Routing

Appreciate your effort, but the thing is 1's ADSL modem having the multiple static GWs facility but the 0's network ADSL don't have multirouting facility.

secondly I have already enabled the ip fwrding so there's no problem at the linux box server, however the XP clients can't access 0 to 1 and vice versa.

Azam
 
Old 10-01-2007, 01:11 AM   #4
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Upgrade the lame gateway device that doesn't support adding routes.. if you need to route traffic and it doesn't support routing it should not be in that environment, or a device that DOES support routing should be in front of it.
 
  


Reply

Tags
gateways, routing



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 to multiple gateways The Jesus Linux - Networking 6 09-20-2012 01:58 AM
Routing with multiple gateways dimavo Linux - Networking 6 08-07-2007 02:09 AM
2 networks, 2 gateways, routing help guitara Linux - Networking 0 05-20-2006 06:37 PM
Debian proxy server: can't access shares across gateways Mr. Phukkitt Linux - Networking 0 01-21-2004 01:36 PM
Possible to have 2 gateways at once in routing table? magnakuz Linux - Networking 1 03-04-2002 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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