Community discussions

MikroTik App
 
raktim
Member Candidate
Member Candidate
Topic Author
Posts: 184
Joined: Fri Jun 15, 2007 7:22 am

help me to understand the BGP filter

Thu Oct 16, 2008 4:50 pm

i can understand the Prefix-list-out= which i have advertised (xxxxxx/21) in my BGP. But I cant understand the Prefix-list-in. In documentation it is written that "receiving routes". it is not clear to me. In V3 i dont get any doc abt BGP filter. Can any one help me to remove my confusion about Prefix-list-In????




thnxs,
raktim
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7198
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: help me to understand the BGP filter

Thu Oct 16, 2008 6:31 pm

I'm not sure about what prefix-list-in and out are you talking about.

In BGP peers configuration you can specify in-filter and out-filter. For example in-filter=bgp-in out-filter=bgp-out. Now you can create routing filters for that particular bgp peer.

For example
/routing filter add chain=bgp-in prefix=0.0.0.0/0 action=discard.
This filter will discardl default route if received by that peer.

By the way 2.9 documentation can be used also for v3.
http://www.mikrotik.com/testdocs/ros/2. ... filter.php
 
raktim
Member Candidate
Member Candidate
Topic Author
Posts: 184
Joined: Fri Jun 15, 2007 7:22 am

Re: help me to understand the BGP filter

Fri Oct 17, 2008 3:33 pm

so, i think out-filter should be advertised routes of my BGP.
And In-filter should be my Upstream's BGP routes.

Am i right???



thnxs,
raktim
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7198
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: help me to understand the BGP filter

Fri Oct 17, 2008 4:16 pm

Yes.
 
raktim
Member Candidate
Member Candidate
Topic Author
Posts: 184
Joined: Fri Jun 15, 2007 7:22 am

Re: help me to understand the BGP filter

Sat Oct 18, 2008 5:52 pm

THNXS mrz
In BGP Route Filter i have add Prefix= xxxxx/22, But what is prefix length, what should i have to write here.


thnxs,
raktim
 
shielder
Member Candidate
Member Candidate
Posts: 221
Joined: Wed Feb 09, 2005 7:09 pm
Location: Indonesia

Re: help me to understand the BGP filter

Sat Oct 18, 2008 6:32 pm

1. if you wish to advertise route :

put you network (which is going to be advertise) on bgp/networks. then in routing filter, out-filter, add your network there.

2. routing-in filter:
means that the route you received from your upstream, and it would be shown as Rab on your ip/route menu.
 
raktim
Member Candidate
Member Candidate
Topic Author
Posts: 184
Joined: Fri Jun 15, 2007 7:22 am

Re: help me to understand the BGP filter

Fri Oct 24, 2008 12:36 pm

Can any one explain "BGP local pref" and "BGP prepend"??

thnxs,
raktim
 
thadem
Member Candidate
Member Candidate
Posts: 115
Joined: Fri Apr 18, 2008 1:40 am

Re: help me to understand the BGP filter

Sun Oct 26, 2008 3:11 pm

local pref: http://www.cisco.com/en/US/docs/interne ... #wp1020583

bgp-prepend: how often you prepend your as-number to make the path look longer and so less attractive to the bgp-calculation-process. then every path to the same as with a shorter link (with cheaper bandwidth, etc..) is used before this longer path.