#1  
Old 28th July 2009, 19:29
syadnom syadnom is offline
Junior Member
 
Join Date: Mar 2009
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default 2 gateways on debian or ubuntu

I am trying to get my ubuntu box to have 2 gateways and respond via the appropriate gateway when a request comes in.

here is my network map


DSL=71.x.x.10 gw 71.x.x.1
LAN eth0 = 10.223.8.7
LAN eth0.1= 10.223.8.220
the 10Mb connection does NAT to get email traffic to eth0.1


DSL(gw1)<-->eth1(email server)eth0<-->LAN
10Mb(gw2)<-->eth0.1(email server)

The problem is that the default gw is out eth1 to the DSL. I cant just switch the gw as it will just reverse the direction of the issue.

Can someone help me change my routes so that anything coming in to eth0.1 uses gw2 as its route and anything coming in eth1 uses gw1 as its route?

Once this is done I can switch my default route to gw2 but I still need traffic coming in on eth1 to route out gw1.

Thanks for any help in advance. I have seen the multiple gateway info here: http://www.tldp.org/HOWTO/Adv-Routin...ple-links.html but dont know how to implement that.
Reply With Quote
Sponsored Links
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[debian 5 + ispconfig 3] Unable to send mail tanakskool HOWTO-Related Questions 6 4th November 2009 18:20
Booting On PXE And On A Customized Debian System sebastienp HOWTO-Related Questions 7 30th July 2009 21:13
Unbale to login to Postfix from webmail wasimriz HOWTO-Related Questions 5 6th April 2009 13:49
Bind Failed christoph2k HOWTO-Related Questions 4 28th April 2007 00:57
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 14:42


All times are GMT +2. The time now is 00:58.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.