Hello!

On Thu, Jan 17, 2008 at 02:07:01PM +0000, Stuart Henderson wrote:
> > I want to setup fallback to a static default route if bgp fails.
> > I receive default route via bgp but I want to use static automatically
> > if bgp session is down of default prefix isn't received.
> > Is it possible? How can I do that?
> 
> I think the only way you can do something similar to what you're
> asking for is by filtering the BGP default, and adding your own
> static default (typical BSD routing tables don't support multiple
> routes to the same destination, we do support it for equal-cost
> multipath but not for different priority routes which I think is
> what you want).

It isn't my way because actually I have two 'default route' sources: eBGP
and iBGP. If eBGP 'default route' fails I'll use iBGP information.
I can't override them with one static route because I'll lose
redundancy if main uplink fails.

I want to prevent the situation when both sessions are down and router
is completely inaccessible although there is alive peering /30 link.

So the priority of the routes should be: eBGP -> iBGP -> static.

I decided to went another way and configure 'reply-to' feature of pf:

pass in quick on em0 reply-to $default_gateway from any to $router_addres keep 
state

If I understand reply-to option correctly $router_address should respond
even if there is no default route in the routing table ($default_gateway is 
directly connected sure).

But it doesn't work for me. When router loses it's default route -
$router_address doesn't respond when I use this pf rule.

What is my mistake here?

-- 
WBR,
Alexander Burnos

Reply via email to