Saturday, January 25, 2020

BIRD export filter conditional next hop

When exporting routes to an EBGP neighbor by default the next hop is set to the IP address of the connection.

Using BIRD 1.6.x per the docs you can set "next hop address <ip>" but when I attempt too add that for a neighbor I get a syntax error, ie:

protocol bgp FOO_1 from BH_SERVER {
neighbor x.x.x.x as 11111;
export filter RTBH_OUT;
next hop address y.y.y.y;
}

I get a syntax error for the "next hop address" line....

I know you can set the bgp_next_hop in the actual filter, but I need to be able to set the next-hop based on the neighbor/peer AS....

Ideas?



No comments:

Post a Comment