Re: linux routing to multiple providers

From: Rob Hill (rhill@thisbox.com)
Date: Wed May 24 2000 - 13:51:50 EST


This doesn't look right (or I need more coffee)...

Here's my interface layout.

eth0: external to ISP1
eth1: external to ISP2
eth2: internal network (192.168.1.0/24)

ip route add default gw nexthop dev eth0 via <ISP1 gateway> nexthop dev
eth1 via <ISP2 gateway>

Does this statement say that eth0's default gateway is ISP1 and eth1's
gateway is ISP2? If so, then that allow the firewall to be on both networks,
but how do I say 192.168.1.0/25 (.1-.127) uses ISP1 and 192.168.1.128/25
(.129-254) uses ISP2?

Thanks,

Rob Hill
rhill@thisbox.com

----- Original Message -----
From: "Guus Sliepen" <guus@warande3094.warande.uu.nl>
To: "Rob Hill" <rhill@thisbox.com>
Sent: Wednesday, May 24, 2000 1:43 PM
Subject: Re: linux routing to multiple providers

> On Wed, 24 May 2000, Rob Hill wrote:
>
> > Would this work if I only have 1 internal network (and 1 NIC for
internal
> > use on my firewall)?
>
> Yes.
>
> BTW, if your firewall is masquerading, there's no problem, but if you're
> not masquerading, make sure both ISPs accept the same IP address you use
> for your internal network.
>
> Met vriendelijke groet,
> Guus Sliepen.
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 31 2000 - 21:00:12 EST