Community discussions

 
ronniee
Member Candidate
Member Candidate
Topic Author
Posts: 123
Joined: Sun Jan 15, 2006 9:32 pm

BGP communites filtering help

Sun Nov 07, 2010 1:28 pm

Hi,

I need some help from BGP users.

I use a RB1000 for my BGP 3 peer connections:
1. international
2. national + peering
3. local peering

The bgp2 peer bandwidth is overloaded and I need to filter some comunities(302,303,304) and announce routes (my routes?) to comunities 2209,2309,2409.

I didn't used before and I'm not sure if it's OK. Please help me.

I make a route filter for bgp-in-filter chain with bgp-connection=302 /303/304 action discard
Enable that bgp-in-filter filter in BGP2 peer at "in-filter" ?

But how I set to announce my routes to 2209 communities?

thanks

best regards
ronn
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 5942
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BGP communites filtering help

Sun Nov 07, 2010 6:54 pm

For announced networks you have to set up out-filter and use ser-bgp-community in routing filters.
 
ronniee
Member Candidate
Member Candidate
Topic Author
Posts: 123
Joined: Sun Jan 15, 2006 9:32 pm

Re: BGP communites filtering help

Sun Nov 07, 2010 11:30 pm

sorry

out-filter and set-bgp-comunity and in action?
and this route filter enabled for the same bgp-peer?

I have a /21 IP class with an AS number xxx.
I need to annonce my routes for ex. to community 2209.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 5942
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BGP communites filtering help

Mon Nov 08, 2010 8:44 am

Set out-filter to peer which is advertising your prefix. Action typically is "accept". And also custom communities are written in format x:x, so if you need to set 2209 then in routeros you must set 0:2209

Let's say you set to bgp peer out-filter=peer1-out
Then filter should be:
/routing filter add chain=peer1-out action=accept prefix=x.x.x.x/y set-bgp-communities=0:2209

Who is online

Users browsing this forum: No registered users and 12 guests