Newbie question - create filter for prefixes to export and also modify bgp next hop

Ondrej Filip feela at
Wed Mar 2 11:32:15 CET 2011

On 2.3.2011 10:36, Mathias Wolkert wrote:
> Hi
> As said, I'm new to BIRD and struggling a bit with the config syntax.
> I'll try to explain what I want to do.
> I have a few prefixes, lets say,,
> I want to announce these (and only these) in a BGP session, but with a
> modified next hop.
> How would I do this?

Add this export filter to you BGP session:

export filter {
	if net ~ [,,] then {
		bgp_next_hop = X.X.X.X;
	else reject;

(I did not check syntax, maybe some ';' is missing.

> Any help is much appreciated.
> /Tias

More information about the Bird-users mailing list