All of lore.kernel.org
 help / color / mirror / Atom feed
From: Darryl Miles <lartc-list@the-morg.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Help: howto config mail server with 2 internet provider?
Date: Sat, 06 Dec 2003 17:34:33 +0000	[thread overview]
Message-ID: <marc-lartc-107073216701447@msgid-missing> (raw)
In-Reply-To: <marc-lartc-107069450011975@msgid-missing>

masroor wrote:

>  I want to send/receive email thru second internet line when the first line 
>is disconnected and back to first line when it get on again automattically.
>
>my mail server is  postfix on redhat 9. and it have 2 ethernet cards which 
>everyone connected to it's internet line.
>
>i tried this:
>http://linux-ip.net/html/adv-multi-internet.html
>but it didn't work. 
>
>please someone give me more advice about doing it step by step.
>  
>

I've glanced over your quoted document, it looks like a policy routing 
example for a multihomed NATed internet site.  Your description of need 
doesn't indicate you want agregate bandwidth just failover.


Some food for thought:

* Is the mail server and LANs default router the same box ?
* Are the interfaces for both primary and backup directly connected to 
the same box ?  If so, How ?
* Are both internet connections NATed ? or routed ?
* You need to confirm the reliability of the mechanism the router uses 
to know when the primary Internet link has failed.
* If your requirement is as simplictic as wanting a backup to be used 
only when the primary link fails, maybe setup two default routes in your 
routing table with a lower metric on the primary route.  In the event 
the link goes down I presume the interface will also go into down state, 
and therefore the routing entry will be removed implicitly by the 
kernel.  The backup route with the higher metric will then be selected 
for default routing.
* Actually test the situation where your primary link fails and confirm 
the host it's directly connected to can detect this and does bring that 
interface down.


In the situation where the mail host and LANs default router is the same 
box and the two Internet links are suppled on dedicated ethernet interfaces:

# Primary link via gateway 10.0.0.1 on eth0
route add -net default gw 10.0.0.1 dev eth0

# Backup link via gateway 10.0.1.1 on eth1
route add -net default gw 10.0.1.1 metric 1 dev eth1


One area to look at is how the default route is added when the backup 
link comes up, this would usualy mean altering the configuration to how 
the backup link add's its default route, you simply add the "metric 1" 
into the route command at this point.


Darryl


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      reply	other threads:[~2003-12-06 17:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-06  7:01 [LARTC] Help: howto config mail server with 2 internet provider? masroor
2003-12-06 17:34 ` Darryl Miles [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-107073216701447@msgid-missing \
    --to=lartc-list@the-morg.org \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.