Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Feb 2005 17:54:38 -0500
From:      Derek <derekm.nospam@rogers.com>
To:        questions@freebsd.org, tjg@meitech.com
Subject:   Re: Routing Problem
Message-ID:  <4203FD2E.6060705@rogers.com>
In-Reply-To: <ctqj21$146m$1@FreeBSD.csie.NCTU.edu.tw>
References:  <ctqj21$146m$1@FreeBSD.csie.NCTU.edu.tw>

next in thread | previous in thread | raw e-mail | index | archive | help
Gustafson, Tim wrote:
> I know it "can" be done.  I have a feeling that the FreeBSD TCP
> stack lacks the capability.  

If you are looking for multiple routes to the same destination, you are 
correct.  I believe that if you see the thread on net@ from 03/01/04 
with the subject "My planned work on networking stack":

<quote>
  [] move IPv4 routing to its own optimized routing table structure and
     add multi-path and policy-routing options.  (planned)
</quote>

I think this is the feature you are looking for: multi-path

I am also not sure of the status of this.

There are some hackish ways of dealing with this:

eg.
route add 0.0.0.0/1 router1
route add 128.0.0.0/1 router2
(or some such hideous incantation)

If you want to get real nasty, I would try some jiggery pokery with 
vlans/ng_one2many:

# receiving is done with public ips (all the same here as your current 
config)
router1 vlan0 pubip1
router2 vlan0 pubip2
server  vlan0 pubip1/2

#transmitting is done through faked gateway 50% load each
router1 vlan1 10.0.0.1
router2 vlan2 10.0.0.1
server  vlan1/2 10.0.0.2
route add default 10.0.0.1

You'll need to be sure that both upstream providers will route either ip 
address though.  Also, there is no "dynamic" type of functionallity on 
this, if one of the links goes down, you'll lose 50% of your traffic. 
You could probably rig up a script to notify netgraph when the remote 
g/w goes down though.

I've never tried this, but it seems this wouldn't be a bad way to start 
if you've got some time on your hands.

Cheers,
Derek



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4203FD2E.6060705>