Community discussions

MikroTik App
 
edmundas
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 55
Joined: Fri Nov 14, 2008 9:29 am

how to set local-pref in bgp

Wed Feb 06, 2013 7:56 pm

we were planning to replace cisco with ccr before replacing we thought of doing a simulation of router which it was going to be replaced. We made a labtest with linux quagga and rb-2011 router to check bgp. We were able to solve most of the things done on cisco but unable to advertise local-pref. Even though it was set set-bgp-local-pref in filter list and filter was applied to outgoing filter but no local prefix was advertised. Help would be appreciated
 
cupis
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Sun Apr 10, 2011 1:25 am

Re: how to set local-pref in bgp

Wed Feb 06, 2013 8:32 pm

Are you originating the route, or learning it from elsewhere? If the latter, set the localpref when you learn the route, in your inbound filter, rather than in your outbound filter.

If these are static routes on the Mikrotik, you need to set localpref under IP/Route.

Otherwise, could you give us more information about your setup, and perhaps the config you are using, please?
 
edmundas
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 55
Joined: Fri Nov 14, 2008 9:29 am

Re: how to set local-pref in bgp

Thu Feb 07, 2013 10:55 am

they are static routes. we had added bgp local pref = 200 in static routes. but still my peer shows no local pref

thanks
 
cupis
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Sun Apr 10, 2011 1:25 am

Re: how to set local-pref in bgp

Thu Feb 07, 2013 12:20 pm

they are static routes. we had added bgp local pref = 200 in static routes. but still my peer shows no local pref
Can you show your config, please? Can you confirm that both routers are configured with the same AS?
 
edmundas
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 55
Joined: Fri Nov 14, 2008 9:29 am

Re: how to set local-pref in bgp

Thu Feb 07, 2013 3:15 pm

for example
a 65000-cisco
n 65001-mikrotik
c 65002-cisco

65001 peering 65002
65002 advertising route 10.11.12.0/8 to 65001 with local pref 110

65001 peering with 65000 and advertising routes of 65002 with local pref 110
thanks
 
cupis
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Sun Apr 10, 2011 1:25 am

Re: how to set local-pref in bgp

Thu Feb 07, 2013 3:26 pm

local-pref will not propagate between two routers configured with different AS numbers. This is not a Mikrotik issue, that is just how BGP works.
 
edmundas
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 55
Joined: Fri Nov 14, 2008 9:29 am

Re: how to set local-pref in bgp

Sat Feb 09, 2013 7:07 am

thanks for your support. I have some queries.
when i connect to different AS like 65000 and 65001 why does it shows in mikrotik <>>bgp <> advertise<>origin ---- igp.

thanks
 
cupis
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Sun Apr 10, 2011 1:25 am

Re: how to set local-pref in bgp

Sat Feb 09, 2013 4:23 pm

thanks for your support. I have some queries.
when i connect to different AS like 65000 and 65001 why does it shows in mikrotik <>>bgp <> advertise<>origin ---- igp.
I'm not sure I understand your question, but I suspect one of your routers will show the route as originating from it's own AS (igp) and the other will show it as originating from a different AS (egp). If this is not what you are asking, can you provide more detail (config, output showing the "problem")?