Static route bgp_next_hop attribute.

Ondrej Zajicek santiago at crfreenet.org
Tue May 29 14:22:32 CEST 2018


On Tue, May 29, 2018 at 02:23:30PM +0300, oldnick nsp wrote:
> Hi all!
> 
> I'm trying to use Bird to announce route with predefined bgp next hop and
> to avoid filter manipulation on this route to set next-hop on it. My goal
> is to put route configuration into separate include file with fewer lines
> as possible.

Hi

In BIRD 1.x, default BGP route attributes were preinitialized for non-BGP
routes before BGP export filter was called, so the value set in static
protocol is ignored. You have to set bgp_next_hop attribute in the BGP
export filter.

In BIRD 2.x, the behavior was simplified to work as one expects -
bgp_next_hop can be set anywhere and then it is handled similarly to
one received from BGP peer (so it would work with 'next hop keep').

-- 
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."


More information about the Bird-users mailing list