Newbie question - create filter for prefixes to export and also modify bgp next hop
Ondrej Filip
feela at network.cz
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 10.1.1.0/24, 10.2.2.0/24, 10.3.3.0/24.
> 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 ~ [10.1.1.0/24, 10.2.2.0/24, 10.3.3.0/24] then {
bgp_next_hop = X.X.X.X;
accept;
}
else reject;
};
(I did not check syntax, maybe some ';' is missing.
Ondrej
>
> Any help is much appreciated.
>
> /Tias
More information about the Bird-users
mailing list