Bird as route server and bgp comunities

Pawel Nastachowski p.nastachowski at plix.pl
Sat Sep 18 13:09:49 CEST 2010


Wiadomość napisana przez Denis Samsonov w dniu 2010-09-18, o godz. 13:00:

> Stupid question:)
> Who set up a bird Route server with support for bgp community (a la MSK-IX, SPB-IX)?
> Be able to share pieces of the config for example.
> 
> tried to do as in the examples mentioned
> 
> # Bgp cummunity
> function bgp_out (int peeras) (
>     if! (Source = RTS_BGP) then return false;
>     if (0, peeras) ~ bgp_community then return false;
>     if (8861, peeras) ~ bgp_community then return true;
>     if (0,8861) ~ bgp_community then return false;
>     return true;
> )
> 
> protocol bgp Prime_Line {
>         local as 8861;
>         neighbor 178.xx.xx.44 as 42861;
>         import all;
>         export where bgp_out(42861);
>         rs client;
>         route limit 1000;
> }
> 
> export where bgp_out(peerad)  must be configured on all the neighbors? I have only one set up for test
> 
> but it did not work: (the user gives us 0:8861 , but still prefixes are announced to all participants Route server



Example how it's work in PLIX:

PEER_AS:666 ->  not announe to peer_AS
PEER_AS:111 -> announe  to peer_AS
333:666 -> not announe to all peers

333 -> IX AS

function FOUTstd(int peeras)
{
  if (peeras, 10) ~ bgp_community then return false;
  if (peeras, 65111) ~ bgp_community then return true;
  if (333, 666) ~ bgp_community then return false;
}

filter bgp_out_218x123
{
  if ! ( FOUTstd(777) ) then reject;
  
  accept;
}


protocol bgp R218 {
  description "PEERA";
  local as myas;
  passive;
  debug { states, events };
  neighbor ip_peer as 777;
  
  import all;
  export filter bgp_out_218;
  table T218;
  rs client;
}


--
Paweł Nastachowski <p.nastachowski at plix.pl>

PLIX Sp. z o.o., http://www.plix.pl/
Al. Jerozolimskie 65/79, 00-697 Warszawa
KRS:  0000295130, Sąd Rejonowy dla m.st. Warszawy, XIII Wydz. Gosp.
Kapitał zakładowy: 300.000,00zł, NIP: PL7010109699




More information about the Bird-users mailing list