Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Feb 2008 16:36:18 -0500
From:      Bill Moran <wmoran@collaborativefusion.com>
To:        Nick Barnes <Nick.Barnes@pobox.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Multiple default routes on multihome host
Message-ID:  <20080218163618.5e6672d3.wmoran@collaborativefusion.com>
In-Reply-To: <38308.1203368454@thrush.ravenbrook.com>
References:  <38308.1203368454@thrush.ravenbrook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In response to Nick Barnes <Nick.Barnes@pobox.com>:

> I have a multi-home host: more than one IP address.  The addresses are
> in separate subnets but run over the same ethernet segment (this is a
> temporary situation while I switch an office network over from one
> network provider to another).
> 
> I want packets from address A1 to be sent via gateway G1, but packets
> from address A2 to be sent via gateway G2.
> 
> How do I do this?  Can I just have more than one default route?  I'm
> remote from the machine in question, so I don't want to tinker with
> the default route until I'm sure of the answer.

You can't have multiple default routes.  The fact that you want to is
an indicator of incorrect network design, although it could be an
artifact of the interim setup while you migrate things around.

I would suggest you ask yourself (and possibly the list) _why_ you think
multiple default routes is necessary ... what is it that you're hoping
to accomplish.  I'm guessing your looking for some sort of redundancy,
in which case something like CARP or RIP is liable to be the correct
solution.

-- 
Bill Moran
Collaborative Fusion Inc.
http://people.collaborativefusion.com/~wmoran/

wmoran@collaborativefusion.com
Phone: 412-422-3463x4023



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080218163618.5e6672d3.wmoran>