You can use the metric/weighting of gateway routes to do it, sort of...
From
http://lartc.org/HOWTO//cvs/2.4routing/html/lartc.rpdb.multiple-links.html#A
EN284
Instead of choosing one of the two providers as your default route, you now
set up the default route to be a multipath route. In the default kernel this
will balance routes over the two providers. It is done as follows (once more
building on the example in the section on split-access):
ip route add default scope global nexthop via $P1 dev $IF1
weight 1 \
nexthop via $P2 dev $IF2 weight 1
This will balance the routes over both providers. The weight parameters can
be tweaked to favor one provider over the other.
Note that balancing will not be perfect, as it is route based, and routes
are cached. This means that routes to often-used sites will always be over
the same provider.
-----Original Message-----
From: Philip Hazel [
mailto:ph10@cus.cam.ac.uk]
Sent: 27 June 2002 16:47
To: Jon Kyme
Cc: Cami; exim-users@???
Subject: Re: Re [Exim] multiple ip address (re)routing
On Thu, 27 Jun 2002, Jon Kyme wrote:
> > Is it possible to configure exim to route specific domains through one
isp
> > and other domains through the other? (each isp is on a different ip and
> > each
> > different ip is on a different network card..)
>
> Would you need
> 2 smtp transports with different
> interface = ????
Surely the routing in your TCP/IP stack should be able to choose the
correct interface? (Mind you, it's a long time since I understood the
"route" command. :-)
--
Philip Hazel University of Cambridge Computing Service,
ph10@??? Cambridge, England. Phone: +44 1223 334714.
--
## List details at
http://www.exim.org/mailman/listinfo/exim-users Exim
details at
http://www.exim.org/ ##
Salamis Group of Companies -
WWW.SALAMISGROUP.COM
This communication contains information which is confidential and may
also be privileged. It is for the exclusive use of the intended
recipient(s). If you are not the intended recipient(s) be advised
that any form of distribution, copying or use of this communication
or the information it contains is strictly prohibited and may be
unlawful. We apologise if you have received this communication in
error. Please return it to the sender immediately, delete this
communication from your computer and destroy any copies of it. Any
views/opinions expressed in this email are that of the author and may
not reflect the views of Salamis (M&I)Ltd.