Community discussions

MikroTik App
 
jmay
Member
Member
Topic Author
Posts: 336
Joined: Tue Jun 23, 2009 8:26 pm

How to advertise BGP routes when smaller than /24

Thu Dec 04, 2014 5:37 am

First time BGP setup. I have the basic BGP working fine on 1 of my 2 connections with cogent using full routes. Right now I am advertising a /24 out of one of my /21s and internet is working great. However Cogent will not allow me to advertise smaller than a /24. Is there a way around this? Here's my scenario. End result will be bgp at 2 separate fiber drops in 2 different towns. Between these 2 towns are 17 routers linked together via ospf and wireless backhauls. OSPF is already up and running I don't need help there. We will be sending some ips through one town, and other ips through another town. I need the option for those ips to reroute through the opposite town on the fly if needed. Some of these towns are small and require minimal ips so everything is broken up in various sizes as small as /29s in some cases.

So lets say I have 3 routers going out town 1 normally, and the rest go out the other. Can I take a /24 and split that up between those 3 routers but still advertise it through bgp as a /24? If so how?
 
faisali
Member Candidate
Member Candidate
Posts: 180
Joined: Fri Oct 08, 2010 5:11 am

Re: How to advertise BGP routes when smaller than /24

Thu Dec 04, 2014 4:19 pm

First time BGP setup. I have the basic BGP working fine on 1 of my 2 connections with cogent using full routes. Right now I am advertising a /24 out of one of my /21s and internet is working great. However Cogent will not allow me to advertise smaller than a /24. Is there a way around this? Here's my scenario. End result will be bgp at 2 separate fiber drops in 2 different towns. Between these 2 towns are 17 routers linked together via ospf and wireless backhauls. OSPF is already up and running I don't need help there. We will be sending some ips through one town, and other ips through another town. I need the option for those ips to reroute through the opposite town on the fly if needed. Some of these towns are small and require minimal ips so everything is broken up in various sizes as small as /29s in some cases.

So lets say I have 3 routers going out town 1 normally, and the rest go out the other. Can I take a /24 and split that up between those 3 routers but still advertise it through bgp as a /24? If so how?

FYI... It is normal for eBGP (external bgp), to be setup not to accept any prefixes larger than /24 (or, any chunks of ip's smaller than a call 'c')
(notation / lingo: Prefix size is an increasing number for smaller groups of ip's, and a reducing number for larger groups of ip's)

How to do the network configuration that you are trying to accomplish is best described in this MUM presentation.
http://mum.mikrotik.com/presentations/H ... ktech1.pdf
 
jmay
Member
Member
Topic Author
Posts: 336
Joined: Tue Jun 23, 2009 8:26 pm

Re: How to advertise BGP routes when smaller than /24

Thu Dec 04, 2014 8:34 pm

So if I am reading this properly it cannot be done? I would need to have a /24 in each of my 3 routers?
 
User avatar
paoloaga
Member Candidate
Member Candidate
Posts: 227
Joined: Tue Mar 08, 2011 2:52 am
Location: Lugano - Switzerland
Contact:

Re: How to advertise BGP routes when smaller than /24

Fri Dec 05, 2014 1:54 am

If everyone would announce small subnets, the full routing table would become huge. It has already more than 500K routes.
 
jmay
Member
Member
Topic Author
Posts: 336
Joined: Tue Jun 23, 2009 8:26 pm

Re: How to advertise BGP routes when smaller than /24

Fri Dec 05, 2014 3:20 am

I get that. I think im getting it. I can use aggregates to advertise as /24 but internally route them smaller right? Can someone show me the proper config to do that? Mikrotik manuals are headhurting some times.
 
tirkitneth
newbie
Posts: 31
Joined: Wed Nov 06, 2013 9:17 pm

Re: How to advertise BGP routes when smaller than /24

Fri Dec 05, 2014 8:24 pm

I get that. I think im getting it. I can use aggregates to advertise as /24 but internally route them smaller right?
Yes, that's it.
 
jmay
Member
Member
Topic Author
Posts: 336
Joined: Tue Jun 23, 2009 8:26 pm

Re: How to advertise BGP routes when smaller than /24

Wed Dec 10, 2014 12:00 am

Can someone kindly explain how to configure this?? The documentation is written as if I should already know all this. The following does not help me at all.

BGP allows the aggregation of specific routes into one route with. This menu ('/routing bgp aggregate') allows to specify which routes you want to aggregate, and what attributes to use for the route created by aggregation.


Property Description
advertise-filter (string;) name of the filter chain used to select the routes from which to inherit attributes
attribute-filter (string;) name of the filter chain used to set the attributes of the aggregate route
include-igp (yes | no; Default: ) By default, BGP aggregate takes into account only BGP routes. Use this option to take IGP and connected routes into consideration.
inherit-attributes (yes | no; Default: yes) whether to inherit BGP attributes from aggregated routes
instance (string;) the instance this network belongs to
prefix (IP prefix;) the aggregate prefix
summary-only (yes | no; Default: yes) whether to suppress advertisements of all routes that fall within the range of this aggregate
suppress-filter (string;) name of the filter chain used to select the routes to be suppressed

Read only status property:

routes-used (integer) aggregated route statistics.
in console- list of route console IDs used;
in winbox- number of routes used.

Who is online

Users browsing this forum: No registered users and 4 guests