BIRD 2.0 BGP AS Path Prepending

Alexander Zubkov green at qrator.net
Thu Mar 21 13:14:34 CET 2019


Hello,

You can disable autoprepending of your side's AS by using rs-client
and prepend it manually in the place you like.

On Thu, Mar 21, 2019 at 11:41 AM L Ken <playernkc at gmail.com> wrote:
>
> Hi,
>
> As mentioned in https://bird.network.cz/pipermail/bird-users/2017-December/011774.html, BIRD 2.0 calls export_filter before LOCAL-AS is set to bgp_path.
>
> In BIRD 1.6, following export filter create AS path "10001 10002 10003":
> protocol bgp bgp1 {
>   # some required bgp config here
>
>   local as 10003;
>   export filter {
>      bgp_path.prepend(10002);
>      bgp_path.prepend(10001);
>   }
> }
>
> The same filter in BIRD 2.0 create AS path "10003 10001 10002" :
> protocol bgp bgp1 {
>   # some required bgp config here
>
>   local as 10003;
>   ipv4 {
>     export filter {
>       bgp_path.prepend(10002);
>       bgp_path.prepend(10001);
>     }
>   }
> }
>
> Is there any way to "prepend" AS to Local-AS in BIRD 2.0 with result same as 1.6?
>
> Thanks,
> ---
> K


More information about the Bird-users mailing list