Help with AS-Path manipulation

Marcio marciovinicius.santos at uniriotec.br
Tue Sep 18 13:39:09 CEST 2018


Dear,

I understood. I'try to perform this.

Em ter, 18 de set de 2018 07:08, Piotr Wydrych <pwydrych at akamai.com>
escreveu:

> On 15.09.2018 11:46, Saku Ytti wrote:
> > You could recreate the route via static route and depend on existing
> > one. In static route you can attach AS-PATH in any way you want.
> >
> >    route 2.20.144.0/22 unreachable {
> >      bgp_local_pref = 0;
> >      bgp_path.prepend(20940);
> >      bgp_path.prepend(20940);
> >      bgp_path.prepend(10429);
> >      bgp_path.prepend(12956);
> >    };
>
> You can also do it in a filter for paths received, e.g., via bgp. Bird
> allows you to clear as path, prepend it, and delete specific asns from
> the path.
>
> And just FYI, Saku's code snippet will create as path like this: 12956
> 10429 20940 20940.
>
> Piotr
> --
> Piotr 'GhosT' Wydrych ...... Senior II Lead Sw. Eng., SDN ....... Akamai
> ........................................................................
> A: Because it messes up the order in which people normally read text. ..
> Q: Why is top-posting such a bad thing? ................................
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20180918/32edb071/attachment.html>


More information about the Bird-users mailing list