bgp community loggin/export

Stefan Jakob stefan.jakob at
Wed Mar 7 12:36:42 CET 2012

Am 07.03.12 12:10, schrieb Oleg:
> On Wed, Mar 07, 2012 at 12:46:03PM +0200, Tapio Haapala wrote:
>> Hello,
>   Hello.
>> What is easiest or efficent way to get bgp commynity info out from
>> bird? Our need is make some iptables forward rules for traffic
>> accounting based by bgp communities. Can we get communities to
>> syslog when advertisement comes or can we read current status of
>> them with birdc?
>   You can use print bgp_community in filters to print bgp_community
> content into syslog.

Thanks for that. Have some ideas about this feature ;-)

Two birdc answers:

show route table master where (0,65512) ~ bgp_community

or for extended communities:

show route table master where (rt,0,65512) ~ bgp_ext_community

Rgds, Stefan

More information about the Bird-users mailing list