All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Seth J. Blank" <sblank@cms-forex.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Redundant Internet connections [Updated]
Date: Mon, 13 Oct 2003 16:24:08 +0000	[thread overview]
Message-ID: <marc-lartc-106606308103921@msgid-missing> (raw)

Sorry, I really wasn't paying attention when I wrote this (i.e. I've had 
no sleep).

I have the routing tables working properly for the internal network.

What I need to do is have the routing tables update the gateways when a 
line is down.

i.e.    intranet ----- firewall ----- router1 ----- internet
                 \-- router2 ----- internet
Currently, I have the gateway from the firewall being nexthops between 
router1 and router2. This works fine. But what I need to do is have the 
firewall check the links between router1/2 and the internet and switch 
gateways if a line is down.
What I want to do, but can't figure out how to, is send out a packet 
through router1 and see if it gets an arbitrary number of hops (probably 
3) out. If not, switch the default route to use the other gateway. This 
needs to be done for both gateways, and there also needs to be a route 
to restore the gateways when the line goes back up.

Any help would be greatly appreciated.

Thanks so much,
Seth J. Blank
Systems Operations
Capital Market Services, LLC

Seth J. Blank wrote:

> I have a firewall with two redundant internet connections coming in 
> (eth0 and eth1) and an intranet behind eth2.
>
> What I am trying to do is have data off of eth2 split evenly between 
> eth0 and eth1, and if one interface goes down, to fully utilize the 
> other.
>
> What I'm trying to do is have all data from eth0 be passed on to eth2 
> (unless it's stopped by the firewall), same with eth1, and all data 
> from eth2 be split evenly between eth0 and eth1.
>
> currently I have the following routes and rules to accomplish this:
>
> ip route add 10.0.0.0/8 via GATEWAY0 table 1 proto static
> ip route add 10.0.0.0/8 via GATEWAY1 table 2 proto static
>
> ip route add default table default scope global nexthop via GATEWAY0 
> dev eth0 weight 1 nexthop via GATEWAY1 dev eth1 weight 1
>
> ip rule add pref 1500 iif eth0 table 1
> ip rule add pref 1501 iif eth1 table 2
> ip rule add pref 100 iif eth2 table default
>
> This does NOT work properly.
> From localhost, everything works perfectly. I can bring up and down 
> interfaces and everything works properly and transparently.
> But, from the intranet, everything stops. With a different default route:
> ip route add default via GATEWAY0 dev eth0 table default
> everything is fine from both localhost and the intranet. Same with 
> GATEWAY1 eth1.
>
> Can anyone offer advice on how to resolve this problem?
> The only way I can think of so far is a remarkably simple but stupid 
> hack, where I just ping -I eth0 GATEWAY0 and ping -I eth1 GATEWAY1 
> every thirty seconds or so and switch default routes if an interface 
> is down. This obviously does not solve the problem, nor allow 
> bandwidth to be shared across both lines.
>
> Any help would be greatly appreciated.
>
> Seth J. Blank
> Systems Operations
> Capital Market Services, LLC
>
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>


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

             reply	other threads:[~2003-10-13 16:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-13 16:24 Seth J. Blank [this message]
2003-10-13 17:58 ` [LARTC] Redundant Internet connections [Updated] Robert Kurjata
2003-10-14 16:56 ` Seth J. Blank
2003-10-15  1:27 ` gypsy
2003-10-15 16:12 ` Seth J. Blank
2003-10-15 16:47 ` Seth J. Blank
2003-10-15 17:41 ` Diogo Nuno P. Gomes
2003-10-15 22:01 ` Seth J. Blank

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-106606308103921@msgid-missing \
    --to=sblank@cms-forex.com \
    --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.