Community discussions

MikroTik App
 
cotcomsol
just joined
Topic Author
Posts: 6
Joined: Thu May 24, 2007 10:46 pm

BGP conditional advertisement

Wed Jun 03, 2009 1:25 am

Is there a way to do a conditional BGP advertisement in routeros? Here is my situation. I have 2 connections, a big pipe and a small pipe. The provider I get the small pipe from buys transit from some of the big tier 1s. They propogate my route advertisement to these tier 1 isps who then preference that route over the advertisement via my other provider, who is a tier 1 and has peering with them. We have tried as path prepending, community strings, etc and haven't had any luck. I only want inbound traffic via the small pipe if the big pipe is down. On a cisco router I can accomplish this using a conditional advertisement using something like this:

neighbor 10.10.10.1 advertise-map ADVERTISE non-exist-map NON-EXIST

is there any way to do something like this with mikrotik?

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

Re: BGP conditional advertisement

Wed Jun 03, 2009 12:05 pm

in RouterOS you will not find similar feature, however to achieve your goal, you can set routing filters to reject the prefix going to one peer. Then write a script that will check if second peer running, if not - disable filter rule.
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: BGP conditional advertisement

Wed Jun 03, 2009 6:59 pm

another idea might be to use local-pref with your providers ?
 
cotcomsol
just joined
Topic Author
Posts: 6
Joined: Thu May 24, 2007 10:46 pm

Re: BGP conditional advertisement

Thu Jun 04, 2009 6:54 pm

thanks for the suggestions. we have tried local-pref but haven't achieved what we are looking for. I will try writing a script to enable/disable the advertisement.
 
Muqatil
Trainer
Trainer
Posts: 573
Joined: Mon Mar 03, 2008 1:03 pm
Location: London - UK
Contact:

Re: BGP conditional advertisement

Mon Jun 08, 2009 10:51 am

An easier way is to do an asymmetrical announcement of your prefixes

announce your full prefixes to both peers ( IE: 10.10.222.0/23 )
then announce smaller prefixes of the same subnet to the preferred peer (IE: 10.10.222.0/24 and 10.10.223.0/24 )
this way the more focused prefix is always choosen by remote ASs.
If your main link goes down, the second peer still announces the routes to your network.


That's how i do load balancing, in a very basic way.
I apologize for my english.