BGP AS Path Filter

Alarig Le Lay alarig at swordarmor.fr
Thu Nov 16 14:13:15 CET 2017


On jeu. 16 nov. 12:40:41 2017, Shurshuka wrote:
> Hello,
> 
> I am newbie in Bird & BGP so pardon my question:
> 
> I have server and my own AS/IP's (/24).
> I get default from my provider.
> My provider has a lot of upstreams (different IP transit providers with there own AS).
> I want my AS/routes to be announce only from some providers upstreams.
> My provider doesn't provide any self-service BGP communities for that.
> As I understood, I can do this thing with BGP AS Path Filter (Default is OK for this? Or Full View required?).
> What filter I need to use (import/export)?
> I tried to use this filter, but it failed:
> 
> >         import filter {
> > 
> >                 if (bgp_path ~ [= * IP_TRANSIT_PROVIDER_AS_1 PROVIDER_AS MY_AS =]) || (bgp_path ~ [= * IP_TRANSIT_PROVIDER_AS_2 PROVIDER_AS MY_AS =]) then {
> > 
> >                         accept;
> > 
> >                 } else reject;
> >         };
> 
> Could you please to answer my questions and to tell in what direction to move on?
> 
> Thanks.

Hi,

If your provider doesn’t have any communities you can’t deal with it;
you will be announced on all its upstreams.

And please, do IPv6 too, we’re in 2017 ;)

-- 
alarig
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20171116/11d608f5/attachment.asc>


More information about the Bird-users mailing list