# How to configure OSPF Summarization

**URL:** https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923
**Category:** Lessons Discussion
**Created:** [December 22, 2016, 1:07am UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923 "2016-12-22T01:07:31Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [December 22, 2016, 1:07am UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/1 "2016-12-22T01:07:31Z")

</div>

This topic is to discuss the following lesson:

> **[How to configure OSPF Summarization](https://networklessons.com/ospf/how-to-configure-ospf-summarization)**
>
> In this lesson, we'll take a look at OSPF summarization for inter-area and external prefixes and how to configure this.

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [September 10, 2013, 7:37am UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/2 "2013-09-10T07:37:52Z")

</div>

Thanks a ton to clear summarisation of LSA type 3 and LSA type 5 so easily..The website has been helping a lot in my learning in CCNP R&S.

I am indebted to you…

---

<div class="post-metadata">

### Author: ![system](https://cdn-forum.networklessons.com/uploads/default/original/1X/1d2ef66728c7fbac8377748594345a3f474fce5f.png) [@system](https://forum.networklessons.com/u/system)
#### Post date: [September 24, 2013, 2:41pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/3 "2013-09-24T14:41:46Z")

</div>

Hi Rene,  
I want to ask for summarisation on ospf.  
If we do a summary and one router behind router Donna down, how the other routers know that one router is down and change their LSDB so do not send ip packet to it?  
Whether OSPF not have or work lika a Split-horizon on RIP ??

Thanks  
Ael Irsal

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [September 25, 2013, 3:44pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/4 "2013-09-25T15:44:53Z")

</div>

Hi Ael,

Split Horizon is only for distance vector based routing protocols like RIP and EIGRP. OSPF doesn’t need this as routers within the area know what the topology looks like…the LSDB is synchronized.

When a router goes down, the neighbor adjacency will be removed and as a result LSAs will be removed and SPF will be re-run.

---

<div class="post-metadata">

### Author: ![Openlearner](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/o/ad7895/32.png) [@Openlearner](https://forum.networklessons.com/u/Openlearner)
#### Post date: [November 23, 2014, 3:03am UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/5 "2014-11-23T03:03:30Z")

</div>

I have spend thousand of dollars training on my CCNA and CCNP and different instructors teaching but the way you explain with small lab and verification has help me to learn and clarify doubts I had.  
It’s nice you keep this chapters short. You were born to teach.  
Thanks

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [November 24, 2014, 9:10am UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/6 "2014-11-24T09:10:44Z")

</div>

Hi Alfredo,

Thanks for your kind words, I’m really glad to hear that my material is so helpful to you!

Rene

---

<div class="post-metadata">

### Author: ![lucaseki](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/l/fbc32d/32.png) [@lucaseki](https://forum.networklessons.com/u/lucaseki)
#### Post date: [November 28, 2014, 9:21pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/7 "2014-11-28T21:21:59Z")

</div>

I agree the same, it’s very clear and useful.

Thanks.

---

<div class="post-metadata">

### Author: ![bruce89012](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/b/a9a28c/32.png) [@bruce89012](https://forum.networklessons.com/u/bruce89012)
#### Post date: [November 30, 2014, 2:58am UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/8 "2014-11-30T02:58:15Z")

</div>

I cannot get this to work in a three router topology R1R2R3. R1 & R2 are in Area 0. R2 & R3 are in Area 23.  
On R1 I’m seeing type 3 and type 5 routes from R3 (172 & 10 networks). However, on r2 (the ABR) when I put the following config under the OSPF process:

```
 area 0 range 10.0.0.0 255.0.0.0
 summary-address 172.16.0.0 255.255.0.0

```

I still see the full type 3 & 5 routes on R1. For some reason they’re not being summerized.

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [December 1, 2014, 1:32pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/9 "2014-12-01T13:32:59Z")

</div>

Hi Bruce,

On R2, what O IA and O E2 entries do you have in the routing table?

The area range command is for the O IA routes and the summary-address command is for the O E2 routes.

Rene

---

<div class="post-metadata">

### Author: ![bruce89012](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/b/a9a28c/32.png) [@bruce89012](https://forum.networklessons.com/u/bruce89012)
#### Post date: [December 2, 2014, 3:59am UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/10 "2014-12-02T03:59:43Z")

</div>

Rene,

I figured this out. Once I moved the ‘summary-address 172.16.0.0 255.255.0.0’ from R2 to R3 (the owner of the 172.16 routes) I was able to see summarized routes on R1. So, in summary (pun intended), when summarizing routes, summarization needs to be done on the router who owns those networks.

As far as the ‘area 0 range 10.0.0.0 255.0.0.0’ command; changing the config to ’ area 23 range 10.0.0.0 255.0.0.0’ did the job. So the ‘area X range’ command needs to face the area sourcing those networks (area 23 in my case). Not the area we’re advertising the range (area 0 in my case). Whew.

Thanks for your help

bruce

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [December 2, 2014, 9:16am UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/11 "2014-12-02T09:16:05Z")

</div>

Hi Bruce,

Good job. the summary-address has to be configured on the ASBR while the area range command is for the ABR. Using the correct source area is easy to forget 🙂

Rene

---

<div class="post-metadata">

### Author: ![lkhanna2012](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@lkhanna2012](https://forum.networklessons.com/u/lkhanna2012)
#### Post date: [July 10, 2015, 1:31pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/12 "2015-07-10T13:31:38Z")

</div>

HI Rene

Can you pl explain below mentioned statement by giving some example -

A summary route will have the cost of the subnet with the lowest cost that falls within the summary range.

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [July 12, 2015, 9:57am UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/13 "2015-07-12T09:57:51Z")

</div>

Hi Lokesh,

Let’s say you have these routes:

192.168.0.0/24 - cost 10  
192.168.1.0/24 - cost 20  
192.168.2.0/24 - cost 5  
192.168.3.0/24 - cost 30

When you create a summary route that matches these 4 routes then we will have to pick a cost. By default, it will use the lowest cost for the summary route…5 in this case.

Rene

---

<div class="post-metadata">

### Author: ![johnfrades](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/j/e0b2c6/32.png) [@johnfrades](https://forum.networklessons.com/u/johnfrades)
#### Post date: [August 3, 2015, 6:23am UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/14 "2015-08-03T06:23:25Z")

</div>

rene, does this apply on Inter-area and External? or only INter-area? or only External? thanks!

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [August 3, 2015, 8:11pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/15 "2015-08-03T20:11:03Z")

</div>

Hi John,

the “area range” command is for inter-area prefixes, the “summary-address” command is for external prefixes.

Rene

---

<div class="post-metadata">

### Author: ![johnfrades](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/j/e0b2c6/32.png) [@johnfrades](https://forum.networklessons.com/u/johnfrades)
#### Post date: [August 3, 2015, 8:14pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/16 "2015-08-03T20:14:00Z")

</div>

what im talking about is picking the lowest cost. sorry i didnt clear my question.

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [August 3, 2015, 8:23pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/17 "2015-08-03T20:23:12Z")

</div>

Ah ok…I think this also applies to external routes but I’m not sure how it will behave with O E1 and O E2 routes (or a mix of those two). That would be nice to lab 🙂

---

<div class="post-metadata">

### Author: ![ashoklukose](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/a/9fc29f/32.png) [@ashoklukose](https://forum.networklessons.com/u/ashoklukose)
#### Post date: [January 23, 2016, 7:09am UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/18 "2016-01-23T07:09:46Z")

</div>

Hi Rene,  
Thanks for your nice explanation on this topic. I have one query here. All the IA routes shows the metric as 2 and the E2 routes shows metric as 20, but physical topology is exactly the same. what we are really achieves here with this change in metric?

Regards  
Ashok

---

<div class="post-metadata">

### Author: ![ReneMolenaar](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/renemolenaar/32/488_2.png) [@ReneMolenaar](https://forum.networklessons.com/u/ReneMolenaar)
#### Post date: [January 24, 2016, 10:28am UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/19 "2016-01-24T10:28:06Z")

</div>

Hi Ashok,

In this topology, it doesn’t matter. It’s just that the default cost of E2 routes is 20.

Rene

---

<div class="post-metadata">

### Author: ![jmwalker24](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/j/278dde/32.png) [@jmwalker24](https://forum.networklessons.com/u/jmwalker24)
#### Post date: [January 30, 2016, 1:14pm UTC](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923/20 "2016-01-30T13:14:18Z")

</div>

```auto
Donna(config)#router ospf 1
Donna(config-router)#network 172.16.0.0 0.0.3.255 area 0
Donna(config-router)#network 192.168.12.0 0.0.0.255 area 1

```

Why is the 0.0.3.255 (255.255.252.0) wild card mask used? If they are /24 networks why not use 0.0.0.255 (255.255.255.0)?

[Next page](https://forum.networklessons.com/t/how-to-configure-ospf-summarization/923.md?page=2)
