Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

OSPF area route summary


I have a question about OSPF area route summarization using "area range " command. what if ip address is discontinuous, then how can I achive this route summarization

for example

in this case, how can i acheive area route summary for this address range?



Re: OSPF area route summary

Since your ranges are discontiguous, the best you can do is two use 3 'area range' statements as such:

area 1 range

area 1 range

area 1 range

The only range you can summarise is: and, giving you

Hope that helps... pls rate the post if it does.



New Member

Re: OSPF area route summary

Thanks for answer,,

I need to summarize as 1 route....

VIP Purple

Re: OSPF area route summary


if you summarize as one route, you can configure it as following:

area 1 range

This, obviously, will result in other networks being advertised as well, but it is the only way to get all your routes into one single summary...




Re: OSPF area route summary

It might still be possible to summarize to, depending on other factors in the network. For instance, if the address space between through, and the address space between through, aren't used anyplace in the network, and you don't project using them anyplace, then you could aggregate to with no problems.

The trickier option is to aggregate anyway, and assume the longer prefix matches of the "missing" networks are going to route traffic correctly. For instance, suppose exists, and it's not behind the aggregation point you're considering. Suppose you aggregate to anyway, what will happen? Some router "in the middle" will get, and, which is two different routes of two different prefix lengths. This router would route all the traffic correctly, since the longer prefix wins.

It's worth taking a look to see if you can aggregate because the "holes" simply aren't used, or if all the routers impacted would actually receive the longer prefix advertisements for the "holes," and routing would work anyway.




New Member

Re: OSPF area route summary


The very idea of the area range command is to group many advertisements into one and this can happen only if a whole chunk of ip subnets can be grouped which means they have to be contiguous.

Hope this answers your question.

Also, you can group through

To do this, use the command,

area x range [cost ..]




Re: OSPF area route summary


in principle there are many solutions to your question. The given

A) area x range [cost ..]

would do it, but also the command

B) area x range [cost ..]

would create one summary route to be announced. So both would fulfil the requirement you gave. But in most cases the smaller summary would be preferable, because with it the ABR does not claim to represent a large IP address space, which in reality is not reachable behind the ABR.

Generally you can calculate the summary by looking at the common bits of all routes you like to summarize. Example:

gives in bit notation:





So the common part is


and the mask is


and recalculating this into decimal gives: - exactly what you have seen in the previous post.

Did this help? Rate all posts please.


P.S.: decimal to binary and vice versa can f.e. be done with windows calculator in scientific mode.

New Member

Re: OSPF area route summary

Hi guys, thanks for attention..

actually, this was one of my last CCIE lab questions.

i configured as "area x range" and ABR advertise and, to the Backone. so i thought just not advertising all /24 routes on ABR then can acheive the goal. does is make sense?

and the reason i posted this issue is i just wondering is there any fancy way to acheive this, seem like no,,,

another is there any fancy way to not advertise particular routes on ABR...

or just using "distribut-list" is best?


Re: OSPF area route summary


There is a reasonably new feature that you can use to do this - OSPF ABR Type 3 LSA filtering. The URL that describes it is:

With this feature, you use the 'area filter-list prefix [out|in]' to specify which routes you want to advertise. All prefixes that match the prefix-list will be advertised. Any that don't will not be advertised. This is a really handy feature that provides you granularity in filtering prefixes between areas.

Hope that helps.


CreatePlease login to create content