On this post which is again an online lecture notes for my CCIE preparations, I will be going through some details of OSPF Summarizations in particuilar TYPE 3 LSA Prefix Summarization.
OBJECTIVE:
1. To understand that prefix summarizations of OSPF only applies for LSA Type 3 (Summary LSA) and LSA Type 5 ( AS External LSA).
2. Understand Prefix Summarization by looking into details of the LSDB.
3. Verify the results of the routing table and test the connectivity of the whole network.
4. To proved that the interface with the lowest cost will be carried over by the summarized prefix.
5. To check that the ABR or ASBR which did the summarizations will create a Null Interface.
CONCEPTS:
![]()
Here is the topology for my laboratory about this topic,
![]()
Here are my router configurations
MANILA ROUTER:
R1#config t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#hostname MANILA
MANILA(config)#int s3/0
MANILA(config-if)#ip add 192.168.12.1 255.255.255.0
MANILA(config-if)#no shut
MANILA(config-if)#exit
MANILA(config)#int lo0
MANILA(config-if)#ip address 10.10.10.1 255.255.255.0
MANILA(config-if)#exit
MANILA(config)#int lo1
MANILA(config-if)#ip address 10.10.11.1 255.255.255.0
MANILA(config-if)#exit
MANILA(config)#int lo2
MANILA(config-if)#ip address 10.10.12.1 255.255.255.0
MANILA(config-if)#exit
MANILA(config)#int lo3
MANILA(config-if)#ip add 10.10.13.1 255.255.255.0
MANILA(config-if)#exit
MANILA(config)#router ospf 1
MANILA(config-router)#network 10.10.0.0 0.0.255.255 area 0 >>> I have summarized the whole 4 prefix into 10.10.0.0/16 but let’s check what does it shows on the LSDB.
MANILA(config-router)#network 192.168.12.0 0.0.0.255 area 0
MANILA(config-router)#^Z
MELBOURNE Router:
R2#config t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#hostname MELBOURNE
MELBOURNE(config)#int s3/0
MELBOURNE(config-if)#ip address 192.168.12.2 255.255.255.0
MELBOURNE(config-if)#no shut
MELBOURNE(config-if)#exit
MELBOURNE(config)#int lo2
MELBOURNE(config-if)#ip address 20.20.20.1 255.255.255.0
MELBOURNE(config-if)#exit
MELBOURNE(config)#int s3/1
MELBOURNE(config-if)#ip address 192.168.23.2 255.255.255.0
MELBOURNE(config-if)#no shut
MELBOURNE(config-if)# exit
MELBOURNE(config)#router ospf 1
MELBOURNE(config-router)#network 192.168.12.0 0.0.0.255 area 0
MELBOURNE(config-router)#network 20.20.20.0 0.0.0.255 area 0
MELBOURNE(config-router)#network 192.168.23.0 0.0.0.255 area 1
MELBOURNE(config-router)#^Z
SINGAPORE Router:
R3#config t
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#hostname SINGAPORE
SINGAPORE(config)#int s3/1
SINGAPORE(config-if)#ip address 192.168.23.3 255.255.255.0
SINGAPORE(config-if)#no shut
SINGAPORE(config-if)#exit
SINGAPORE(config)#int lo3
SINGAPORE(config-if)#ip address 30.30.30.1 255.255.255.0
SINGAPORE(config-if)#exit
SINGAPORE(config)#router ospf 1
SINGAPORE(config-router)#network 192.168.23.0 0.0.0.255 area 1
SINGAPORE(config-router)#network 30.30.30.0 0.0.0.255 area 1
SINGAPORE(config-router)#^Z
SINGAPORE#
Now, I want to show what does the router’s LSDB have at the moment,
<<< first let's start with MELBOURNE router.
MELBOURNE#show ip ospf database
OSPF Router with ID (20.20.20.1) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
10.10.13.1 10.10.13.1 1475 0x80000004 0x0091DB 6
20.20.20.1 20.20.20.1 1314 0x80000006 0x0026A0 3
Summary Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
30.30.30.1 20.20.20.1 1314 0x80000002 0x00E57C
192.168.23.0 20.20.20.1 1314 0x80000002 0x0072CB
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
20.20.20.1 20.20.20.1 1314 0x80000003 0x003692 2
30.30.30.1 30.30.30.1 1242 0x80000004 0x0073C9 3
Summary Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
10.10.10.1 20.20.20.1 1314 0x80000002 0x00B8E5
10.10.11.1 20.20.20.1 1314 0x80000002 0x00ADEF
10.10.12.1 20.20.20.1 1314 0x80000002 0x00A2F9
10.10.13.1 20.20.20.1 1314 0x80000002 0x009704
20.20.20.1 20.20.20.1 1314 0x80000002 0x00CCF3
192.168.12.0 20.20.20.1 1314 0x80000002 0x00EB5D
>>> As seen above, although, I have only advertise 10.10.0.0/16 from MANILA router, we can see that MELBOURNE router shows 4 LSDB entries for the summarized subnets 10.10.0.0/16.
>>> We should be observing the same results on SINGAPORE router as shown below,
SINGAPORE#show ip ospf database
OSPF Router with ID (30.30.30.1) (Process ID 1)
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
20.20.20.1 20.20.20.1 1536 0x80000003 0x003692 2
30.30.30.1 30.30.30.1 1461 0x80000004 0x0073C9 3
Summary Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
10.10.10.1 20.20.20.1 1536 0x80000002 0x00B8E5
10.10.11.1 20.20.20.1 1536 0x80000002 0x00ADEF
10.10.12.1 20.20.20.1 1536 0x80000002 0x00A2F9
10.10.13.1 20.20.20.1 1536 0x80000002 0x009704
20.20.20.1 20.20.20.1 1536 0x80000002 0x00CCF3
192.168.12.0 20.20.20.1 1536 0x80000002 0x00EB5D
SINGAPORE#
Let’s check the routing table entries. As expected, we should also be seeing 4 prefixes for the 10.10.0.0/16 on the routing table of both MELBOURNE & SINGAPORE Router as shown below.
MELBOURNE#show ip route ospf
Codes: L – local, C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route, H – NHRP, l – LISP
+ – replicated route, % – next hop override
Gateway of last resort is not set
10.0.0.0/32 is subnetted, 4 subnets
O 10.10.10.1 [110/164] via 192.168.12.1, 00:09:29, Serial3/0
O 10.10.11.1 [110/264] via 192.168.12.1, 00:09:19, Serial3/0
O 10.10.12.1 [110/364] via 192.168.12.1, 00:08:55, Serial3/0
O 10.10.13.1 [110/464] via 192.168.12.1, 00:08:45, Serial3/0
30.0.0.0/32 is subnetted, 1 subnets
O 30.30.30.1 [110/65] via 192.168.23.3, 01:33:46, Serial3/1
>>> Take note that MELBOURNE router has an OSPF interface in Area 0 and I have advertised the 10.10.x.x subnets on the same Area 0 from MANILA router so we can see them as a normal OSPF Routtes.
SINGAPORE#show ip route ospf
Codes: L – local, C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route, H – NHRP, l – LISP
+ – replicated route, % – next hop override
Gateway of last resort is not set
10.0.0.0/32 is subnetted, 4 subnets
O IA 10.10.10.1 [110/228] via 192.168.23.2, 00:11:44, Serial3/1
O IA 10.10.11.1 [110/328] via 192.168.23.2, 00:11:34, Serial3/1
O IA 10.10.12.1 [110/428] via 192.168.23.2, 00:11:10, Serial3/1
O IA 10.10.13.1 [110/528] via 192.168.23.2, 00:11:00, Serial3/1
20.0.0.0/32 is subnetted, 1 subnets
O IA 20.20.20.1 [110/65] via 192.168.23.2, 01:36:06, Serial3/1
O IA 192.168.12.0/24 [110/128] via 192.168.23.2, 01:36:06, Serial3/1
>>> As observed above, we can see the 4 prefixes but by this time they are considered as TYPE 3 LSA prefixes or Inter-Area Routes ( or so called Summary LSA ).
Now, before I will do the SUMMARIZATION, I would like to tweak a bit the Interface COST of the Loopbacks on MANILA router.
Let’s do this for each of the Loopback with the following COST Metrics:
Loopback 0: 100
Loopback 1: 200
Loopback 2: 300
Loopback 3: 400
Here are my configurations to modify the Interface COST metrics.
MANILA#config t
Enter configuration commands, one per line. End with CNTL/Z.
MANILA(config)#int lo0
MANILA(config-if)#ip ospf cost 100
MANILA(config-if)#exit
MANILA(config)#int lo1
MANILA(config-if)#ip ospf cost 200
MANILA(config-if)#exit
MANILA(config)#int lo2
MANILA(config-if)#ip ospf cost 300
MANILA(config-if)#exit
MANILA(config)#int lo3
MANILA(config-if)#ip ospf cost 400
MANILA(config-if)#^Z
Now, let’s check the OSPF interface COST on the MANILA Router with the “show ip ospf interface” command:
MANILA# show ip ospf interface lo0
Loopback0 is up, line protocol is up
Internet Address 10.10.10.1/24, Area 0, Attached via Network Statement
Process ID 1, Router ID 10.10.13.1, Network Type LOOPBACK, Cost: 100
Topology-MTID Cost Disabled Shutdown Topology Name
0 100 no no Base
Loopback interface is treated as a stub Host
MANILA# show ip ospf interface lo1
Loopback1 is up, line protocol is up
Internet Address 10.10.11.1/24, Area 0, Attached via Network Statement
Process ID 1, Router ID 10.10.13.1, Network Type LOOPBACK, Cost: 200
Topology-MTID Cost Disabled Shutdown Topology Name
0 200 no no Base
Loopback interface is treated as a stub Host
MANILA# show ip ospf interface lo2
Loopback2 is up, line protocol is up
Internet Address 10.10.12.1/24, Area 0, Attached via Network Statement
Process ID 1, Router ID 10.10.13.1, Network Type LOOPBACK, Cost: 300
Topology-MTID Cost Disabled Shutdown Topology Name
0 300 no no Base
Loopback interface is treated as a stub Host
MANILA# show ip ospf interface lo3
Loopback3 is up, line protocol is up
Internet Address 10.10.13.1/24, Area 0, Attached via Network Statement
Process ID 1, Router ID 10.10.13.1, Network Type LOOPBACK, Cost: 400
Topology-MTID Cost Disabled Shutdown Topology Name
0 400 no no Base
Loopback interface is treated as a stub Host
>>> As seen above the new interface metrics were applied.
Now, my objective is to apply Summarization on SINGAPORE Router (ABR) under the OSPF process through the command: Area
range
I will be using a class A subnet, 10.0.0.0/8 to summarized the Loopback Prefixes of MANILA Router.
MELBOURNE#config t
Enter configuration commands, one per line. End with CNTL/Z.
MELBOURNE(config)#router ospf 1
MELBOURNE(config-router)#area 0 range 10.0.0.0 255.0.0.0
MELBOURNE(config-router)#^Z
VERIFICATIONS:
A. Now, let’s check the LSDB of SINGAPORE router. I am expecting that the LSDB will have the summarized address for the 10.10.x.x prefixes which is 10.0.0.0/8 as I have applied under OSPF process from the MELBOURNE router.
SINGAPORE#show ip ospf database
OSPF Router with ID (30.30.30.1) (Process ID 1)
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
20.20.20.1 20.20.20.1 619 0x80000009 0x002A98 2
30.30.30.1 30.30.30.1 595 0x80000008 0x006BCD 3
Summary Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
10.0.0.0 20.20.20.1 269 0x80000002 0x008BC4
20.20.20.1 20.20.20.1 615 0x80000001 0x00CEF2
192.168.12.0 20.20.20.1 615 0x80000001 0x00ED5C
<< So as seen above, I have a single entry for the 10.10.x.x prefixes on the LSDB of SINGAPORE router. This is true because MELBOURNE router (20.20.20.1 ) below have updated SINGAPORE router with its LSDB entries with the LINK ID of 10.0.0.0.
MELBOURNE#show ip ospf database
OSPF Router with ID (20.20.20.1) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
10.10.13.1 10.10.13.1 1051 0x80000014 0x0093E1 6
20.20.20.1 20.20.20.1 1394 0x8000000E 0x0016A8 3
Summary Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
30.30.30.1 20.20.20.1 1390 0x80000001 0x00E77B
192.168.23.0 20.20.20.1 1390 0x80000001 0x0074CA
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
20.20.20.1 20.20.20.1 1394 0x80000009 0x002A98 2
30.30.30.1 30.30.30.1 1372 0x80000008 0x006BCD 3
Summary Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
10.0.0.0 20.20.20.1 1045 0x80000002 0x008BC4
20.20.20.1 20.20.20.1 1390 0x80000001 0x00CEF2
192.168.12.0 20.20.20.1 1390 0x80000001 0x00ED5C
B. Let us check what does the routing table of SINGAPORE router tell us,
SINGAPORE#show ip route ospf
Codes: L – local, C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route, H – NHRP, l – LISP
+ – replicated route, % – next hop override
Gateway of last resort is not set
O IA 10.0.0.0/8 [110/228] via 192.168.23.2, 00:06:16, Serial3/1
20.0.0.0/32 is subnetted, 1 subnets
O IA 20.20.20.1 [110/65] via 192.168.23.2, 00:12:01, Serial3/1
O IA 192.168.12.0/24 [110/128] via 192.168.23.2, 00:12:01, Serial3/1
>> As seen above, we have just a single routes for the 4 prefixes which is 10.0.0.0/8 and it does have a COST of 228. How did the SINGAPORE router arrived with a 228 cost here? Let’s check the interface metrics of the path from SINGAPORE towards MANILA router loopback 0.
MANILA#sh ip ospf interface s3/0
Serial3/0 is up, line protocol is up
Internet Address 192.168.12.1/24, Area 0, Attached via Network Statement
Process ID 1, Router ID 10.10.13.1, Network Type POINT_TO_POINT, Cost: 64
Topology-MTID Cost Disabled Shutdown Topology Name
0 64 no no Base
SINGAPORE#sh ip ospf int s3/1
Serial3/1 is up, line protocol is up
Internet Address 192.168.23.3/24, Area 1, Attached via Network Statement
Process ID 1, Router ID 30.30.30.1, Network Type POINT_TO_POINT, Cost: 64
Topology-MTID Cost Disabled Shutdown Topology Name
0 64 no no Base
Adding the Loopback interface from MANILA router with the lowest COST (Loopback 0 with a cost of 100).
100 + 64 + 64 = 228 , This is how the Interface COST as seen on the SINGAPORE routing table were obtained.
But what does the routing table of MELBOURNE tells us about the Summarized prefix?
MELBOURNE#show ip route ospf
Codes: L – local, C – connected, S – static, R – RIP, M – mobile, B – BGP
D – EIGRP, EX – EIGRP external, O – OSPF, IA – OSPF inter area
N1 – OSPF NSSA external type 1, N2 – OSPF NSSA external type 2
E1 – OSPF external type 1, E2 – OSPF external type 2
i – IS-IS, su – IS-IS summary, L1 – IS-IS level-1, L2 – IS-IS level-2
ia – IS-IS inter area, * – candidate default, U – per-user static route
o – ODR, P – periodic downloaded static route, H – NHRP, l – LISP
+ – replicated route, % – next hop override
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
O 10.0.0.0/8 is a summary, 00:13:16, Null0
O 10.10.10.1/32 [110/164] via 192.168.12.1, 00:13:36, Serial3/0
O 10.10.11.1/32 [110/264] via 192.168.12.1, 00:13:26, Serial3/0
O 10.10.12.1/32 [110/364] via 192.168.12.1, 00:13:26, Serial3/0
O 10.10.13.1/32 [110/464] via 192.168.12.1, 00:13:16, Serial3/0
30.0.0.0/32 is subnetted, 1 subnets
O 30.30.30.1 [110/65] via 192.168.23.3, 00:19:01, Serial3/1
MELBOURNE#
>> It does create a NULL interface for 10.0.0.0/8 to avoid routing loops. But as notice, we can still see the individual prefixes. This should be a normal behavior as we did the summarization on MELBOURNE router.
C. Test the connectivity
I just need to do a ping and traceroutes between MANILA routers and SINGAPORE router. When the SINGAPORE router can reach any of the Loopback interface address MANILA router, then that’s it. We’re done with this lab.
SINGAPORE#ping 10.10.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 80/100/124 ms
SINGAPORE#ping 10.10.11.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.11.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 88/95/112 ms
SINGAPORE#ping 10.10.12.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.12.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 92/101/112 ms
SINGAPORE#ping 10.10.13.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.13.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 80/97/136 ms
SINGAPORE#traceroute 10.10.10.1
Type escape sequence to abort.
Tracing the route to 10.10.10.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.23.2 104 msec 92 msec 92 msec
2 192.168.12.1 104 msec 132 msec 108 msec
Leave a comment