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-12-2009, 03:11 PM   #1
rven
LQ Newbie
 
Registered: May 2008
Posts: 4

Rep: Reputation: 0
Multihomed system troubles


Hi all.
I am planning a multihomed configuration for one of my servers. The main reason is that I want to be able to send mail thru the relays of both my ISPs.
My ethX's are as follows:

LAN1: 10.0.1.10 - GW1 10.0.1.1
LAN2: 192.168.1.15 - GW2 192.168.1.1


I want to keep GW1 as my primary and use GW2 only to connect to that ISP's mail relay.
So I tried to configure the routes like this:

Code:
route add default gw 10.0.1.1
route add -host MAILRELAY2 gw 192.168.1.1
In theory this should all work unfortunately the DNS queries for hostnames seem to go where they shouldn't, and many times this results in connections to the mailservers timing out.
What am I doing wrong?
 
Old 01-12-2009, 05:01 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by rven View Post
What am I doing wrong?
Try adding routes that direct DNS queries for ISP2's mail server through LAN2. For example
Code:
[machine:~]: route add -host 4.2.2.1 dev eth1
[machine:~]: route add -host 4.2.2.2 dev eth1
This assumes that each ISP uses different DNS servers.
 
  


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
Using IPTABLES on Multihomed Box SBN Linux - Security 4 10-12-2007 07:48 PM
UDP Response with a Multihomed NIC shinepuppy Linux - Networking 0 11-01-2006 08:53 AM
Routing Problem on Multihomed Machine rlh989 Linux - Networking 1 06-21-2006 10:33 PM
MultiHomed Network Problems w/ SuSe 9.2 rfn_jhardy Linux - Networking 1 05-11-2005 05:50 AM
Multihomed host routing problem.. srns Linux - Networking 3 10-15-2004 03:26 PM

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

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