Bird as route server and bgp comunities
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
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@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
On 18.09.2010 13:00 Denis Samsonov wrote
Who set up a bird Route server with support for bgp community (a la MSK-IX, SPB-IX)?
DE-CIX does as well.
Be able to share pieces of the config for example.
you may want to pick up http://download.de-cix.net/bird.conf.gz. Don't get afraid by the heavy input filtering we do. HTH and best regards, Arnold -- Arnold Nipper / nIPper consulting, Sandhausen, Germany email: arnold@nipper.de phone: +49 6224 9259 299 mobile: +49 172 2650958 fax: +49 6224 9259 333
participants (3)
-
Arnold Nipper -
Denis Samsonov -
Pawel Nastachowski