Community discussions

MikroTik App
 
misha11
just joined
Topic Author
Posts: 4
Joined: Tue Mar 27, 2012 3:28 pm

BGP filter

Tue Jun 05, 2012 12:19 am

I have a router bgp and 2 providers (A and B).
From one (A) I get a full routing table, from the second (B) only 40 000 prefixes.

I have a client that wants me to buy only these 40 000 prefixes get from neighbor B.
How to write a filter to capture only the prefixes from the neighbor (B) and send only those prefixes to the customer.


MK
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7054
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BGP filter

Tue Jun 05, 2012 10:06 am

You can do it with BGP communities. Set BGP community for those 40k prefixes. And advertise to the client only those prefixes which has community set.
 
misha11
just joined
Topic Author
Posts: 4
Joined: Tue Mar 27, 2012 3:28 pm

Re: BGP filter

Tue Jun 05, 2012 10:16 pm

so i try:

/routing filter
add action=passthrough chain=Neighbour_B-in disabled=no invert-match=no \
set-bgp-communities=111:111
add action=passthrough bgp-communities=111:111 chain=Client1-out disabled=no \
invert-match=no


but it is only my improvisation

MK
 
misha11
just joined
Topic Author
Posts: 4
Joined: Tue Mar 27, 2012 3:28 pm

Re: BGP filter

Wed Jun 06, 2012 2:48 pm

Can I expect to have any "step by step" ?

MK

Who is online

Users browsing this forum: No registered users and 33 guests