The Wayback Machine - https://web.archive.org/web/20240626131918/https://www.geeksforgeeks.org/configuring-ospf-route-summarization-in-cisco/
Open In App

Configuring OSPF Route Summarization in Cisco

Last Updated : 04 Nov, 2022
Improve
Improve
Like Article
Like
Save
Share
Report

Pre-requisites:  Open Shortest Path First (OSPF) protocol States and  Configuring Multi-Area OSPF in Cisco

Route summarization in any Interior Gateway Protocol (IGP) creates a single route entry with a prefix & prefix length larger than one or smaller component routes. For example summary route 10.1.0.0/16 includes subnets 10.1.1.0/24,10.1.4.132/30 and other subnets in the range of 10.1.0.0 to 10.1.255.255. Summary routes reduce the size of routing tables and topology databases, indirectly improving convergence. All routers in the same OSPF area must have:

  1. Identical Link State Databases after flooding is complete.
  2. Same summary routes.
  3. Must be missing the same component subnets of each summary.

To make the above thing happen, OSPF allows route summarization only if the routes are injected into an area by the following types of the router:

  1. Area Border Router (ABR)   –inter-area routes
  2. Autonomous System Boundary Router (ASBR) -external routes 

OSPF Route Summarization Commands:

Type of router

Router OSPF subcommand

ASBR summary-address <network-id> <prefix-mask> [not-advertise]
ABR area <area-id> range <network-id> <prefix-mask> [advertise |not-advertise]

Note: Advertise and not-advertise keywords are optional. The not-advertise keyword is used to filter the subnets implied by the summary.

Configuring OSPF Route Summarization:

Step 1: Create the 2 router topology in GNS3 as shown in the image below :

 

Step 2: Configure the IPv4 address on the physical interface on the routers :

R1(config)#interface FastEthernet0/0
R1(config-if)#ip address 10.0.0.1 255.255.255.0
R1(config-if)#no shutdown
R2(config)#interface FastEthernet0/0
R2(config-if)#ip address 10.0.0.2 255.255.255.0
R2(config-if)#no shutdown

Step 3: Configure a loopback interface on R2 with an IPv4 address :

R2(config)#interface Loopback0
R2(config-if)#ip address 8.8.8.8 255.255.255.255

Step 4: Configure loopback interfaces on R1 with IPv4 address :

R1(config)#interface Loopback0
R1(config-if)#ip address 172.168.1.1 255.255.255.0
R1(config-if)#interface Loopback1
R1(config-if)#ip address 172.168.2.1 255.255.255.0

Step 5: Configuring the OSPF process on both routers with the command router OSPF <process-id> :

R1(config)#router OSPF 1
R1(config-router)#exit
R2(config)#router OSPF 1
R2(config-router)#exit

Step 6: Enabling OSPF on the interfaces with the interface level subcommand IP OSPF <process-id> area <area-id> :

R1(config)#interface FastEthernet0/0
R1(config-if)#ip OSPF 1 area 1
R1(config-if)#interface Loopback0
R1(config-if)#ip OSPF 1 area 0
R1(config-if)#interface Loopback1
R1(config-if)#ip OSPF 1 area 0
R2(config)#interface FastEthernet0/0
R2(config-if)#ip OSPF 1 area 1
R2(config-if)#interface Loopback0
R2(config-if)#ip OSPF 1 area 1

Step 7: Checking the IPv4 routing table on the routers and seeing OSPF route entry :

R1#show ip route

 

R2#show ip route

 

Step 8: Configuring R1 (ABR) to advertise a single Inter-Area summary route that encompasses all 2 routes that are :

  1. 192.168.1.0/24
  2. 192.168.2.0/24

So, summary route 172.168.0.0/22 includes the subnet range of 172.168.0.0 – 172.168.3.255.

R1(config)#router OSPF 1 
R1(config-router)#area 0 range 172.168.0.0 255.255.252.0    
R1(config-router)#end 

Step 9:  Verifying whether the summary route is being propagated correctly or not by R1 after configuring route summarization on R1 by viewing the IPv4 routing table of R2 :

R2#show ip route

 

Step 10: Verifying the connectivity through both routers :

Now, try pinging R2’s loop-back interface from R1 and vice versa :

R1#ping 8.8.8.8

 

R1#ping 172.168.1.1

R1#ping 172.168.2.1

 


Previous Article
Next Article

Similar Reads

Configuring RIP Route Summarization in Cisco
Pre-requisites: RIP, super netting Supernetting is mainly used in Route Summarization, where routes to multiple networks with similar network prefixes are combined into a single routing entry, with the routing entry pointing to a Super network, encompassing all the networks. This in turn significantly reduces the size of routing tables and also the
2 min read
Configuring OSPF Default Route Propagation
Pre-requisite: Open Shortest Path First (OSPF) protocol states Default Route Propagation method supported by OSPF is to learn and redistribute default routes. OSPF requires that the router subcommand default-information originate, which essentially tells OSPF to redistribute default routes found in the routing table, either of the following : Stati
3 min read
Configuring Per Interface OSPF in Cisco
A routing technique called OSPF (Open Shortest Path First) is used in computer networks to choose the optimum route for packet forwarding. As a link-state routing protocol, OSPF determines the shortest path between any two nodes using knowledge on the network topology, including the condition and price of network links. In order to divide the netwo
2 min read
Configuring Multi-Area OSPF in Cisco
OSPF listens to the neighbors and collects their link-state data to build a topology map containing all the routers within the network and saves this information in its Link-State Database. With this information (stored in the Link-State Database), it calculates the best/optimal path to reach a certain network using the SPF algorithm (Shortest Path
2 min read
Configuring OSPF For IPv6 – OSPFv3 in Cisco
Prerequisites: OSPF Implementation and Open Shortest Path First (OSPF) protocol States Open Shortest Path First (OSPF) is a link-state routing protocol used to find the best path between the source and destination router using its own shortest path first). OSPF was developed by the Internet Engineering Task Force (IETF) as one of the Internal Gatew
4 min read
Configuring OSPF Stub Areas in Cisco
Prerequisites: OSPF Implementation and Open Shortest Path First (OSPF) protocol States Open Shortest Path First (OSPF) is a link-state routing protocol used to find the best path between the source and destination router using its own shortest path first). OSPF was developed by the Internet Engineering Task Force (IETF) as one of the Internal Gatew
3 min read
Configuring OSPF Priority in Cisco
The Open Shortest Path First (OSPF) protocol belongs to a family of IP routing protocols and is an internal protocol for the Internet used to send IP routing information through a single Autonomous System (AS) and distribute it across IP networks. Gateway Protocol (GP). Priority in OSPF is used in the DR/BDR election process. DR/BDR election is don
2 min read
Configuring OSPF Passive Interface in Cisco
Pre-requisite: What is Passive-Interface Command Behavior in RIP, EIGRP &amp; OSPF? Configuring an interface as a passive interface in and OSPF domain causes OSPF to stop sending Hellos on that specified interface. OSPF will continue to advertise the subnet's passive interface as a stub network. The interface should only be configured as a passive
3 min read
Configuring OSPF Static Neighbors in Cisco
Pre-requisites : Open shortest path first (OSPF) router roles and configuration, OSPF network types OSPF Static Neighbors :In an OSPF autonomous system, when OSPF network type is configured either to be Non-broadcast (NBMA) Point-to-multipoint non-broadcast you must configure static neighbors to ensure that the OSPF can form neighbor relationship.T
3 min read
Configuring OSPF Interface Cost in Cisco
Pre-requisites: Open Shortest Path First (OSPF) Open Shortest Path First (OSPF)  is a routing protocol that exchanges routing information within an autonomous system (AS). it is a link-state protocol that provides a more efficient and scalable way of routing traffic compared to distance vector protocols like RIP.it uses a hierarchical network desig
11 min read
Practice Tags :