On Thu, Aug 13, 2009 at 06:27:03PM +0400, Vadim Zhukov wrote:
> On 13 August 2009 G. 17:51:21 Reyk Floeter wrote:
> > Log message:
> > add new 'router' functionality to dynamically add or remove routes
> > based on health check results, using the existing table syntax.  this
> > allows to maintain multiple (uplink) gateways to implement link
> > balancing or WAN link failover if no routing protocol or other
> > keepalive method is available.  works fine with or without
> > net.inet.ip.multipath enabled.
> 
> Yup. Does it mean that many crazy ifstated.conf setups can go away now?
> 

if you use ifstated to ping your uplink gateways and execute the route
command based on the results - yes.

very simple example:

           table <gateways> { $gw1 ip ttl 1, $gw2 ip ttl 1 }
           router "uplinks" {
                   route 0.0.0.0/0
                   forward to <gateways> check icmp
           }

where $gw1 might be on $ext_if1 and $gw2 on $ext_if2, or even both in
the same LAN.  you can also use things like "check tcp port ssh" of
course ;).  or the "retry" keyword on hosts to avoid route flapping. 

reyk

Reply via email to