Re: linux routing to multiple providers

From: Rob Hill (
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 (

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 (.1-.127) uses ISP1 and
(.129-254) uses ISP2?


Rob Hill

----- Original Message -----
From: "Guus Sliepen" <>
To: "Rob Hill" <>
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
> > 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
Please read the FAQ at

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