As part of my study notes, this will be the last series of OSPF Prefix Summarization which I will be focusing on LSA TYPE 5 or what we also know as External Routes Summarizations.
OBJECTIVE:
1. To understand that Type 5 LSA prefixes can only be summarized on ABR or ASBR.
2. To used “redistributed connected subnets” on ASBR to emulate routes from other routing domains.
3. To summarized prefixes using the command “summary address” under OSPF process.
4. To show that any link failures on a summarized prefix will not affect the existing LSDB.
5. To check connectivity is working between SINGAPORE and MANILA router’s loopback addresses.
Here is my topology for this laboratory,
Here are my configurations for the routers:
Enter configuration commands, one per line. End with CNTL/Z.
MANILA(config)#hostname MANILA
MANILA(config-if)#ip add 10.10.10.1 255.255.255.0
MANILA(config-if)#exit
MANILA(config-if)#ip add 10.10.11.1 255.255.255.0
MANILA(config-if)#exit
MANILA(config-if)#ip add 10.10.12.1 255.255.255.0
MANILA(config-if)#exit
MANILA(config-if)#ip add 10.10.13.1 255.255.255.0
MANILA(config-if)#exit
MANILA(config-router)#network 192.168.12.0 0.0.0.255 area 0
MANILA(config-router)#redistribute connected subnets <<< This statement will redisribute all the connected networks for MANILA Router.
MANILA(config-router)#^Z
Enter configuration commands, one per line. End with CNTL/Z.
MELBOURNE(config)#int s3/0
MELBOURNE(config-if)#ip add 192.168.12.2 255.255.255.0
MELBOURNE(config-if)#no shut
MELBOURNE(config-if)#ip add 20.20.20.1 255.255.255.0
MELBOURNE(config-if)#no shut
MELBOURNE(config-if)#ip add 192.168.23.2 255.255.255.0
MELBOURNE(config-if)#no shut
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)#
Enter configuration commands, one per line. End with CNTL/Z.
SINGAPORE(config)#int s3/1
SINGAPORE(config-if)#ip add 192.168.23.3 255.255.255.0
SINGAPORE(config-if)#no shut
SINGAPORE(config-if)#ip add 30.30.30.1 255.255.255.0
SINGAPORE(config-if)#
Now, let’s check the OSPF adjacencies,
Neighbor ID Pri State Dead Time Address Interface
20.20.20.1 0 FULL/ – 00:00:34 192.168.12.2 Serial3/0
MANILA#
Neighbor ID Pri State Dead Time Address Interface
10.10.13.1 0 FULL/ – 00:00:39 192.168.12.1 Serial3/0
30.30.30.1 0 FULL/ – 00:00:38 192.168.23.3 Serial3/1
MELBOURNE#
So what does the LSDB on the router’s tells us so far, as we have not done the summarization on the ASBR yet.
>> Again as seen above, we can conclude that the 4 prefixes for the 10.x.x.x network were sent as LSU by MANILA router to the Melbourne & Singapore. We can see the Type-5 AS External LSA with the corresponding Link ID’s and from which router it came from ( in this case advertisement were all from 10.10.13.1 or the MA N ILA router)
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
10.10.10.0 10.10.13.1 1353 0x80000002 0x0070EE 0
10.10.11.0 10.10.13.1 1353 0x80000002 0x0065F8 0
10.10.12.0 10.10.13.1 1353 0x80000002 0x005A03 0
10.10.13.0 10.10.13.1 1353 0x80000002 0x00AB55 0
MANILA#
>> Similarly , we can see the same TYPE-5 LSA’s from MELBOURNE and MANILA router.
>> So as we can see, we are still NOT doing the summarizations as observed from LSDB’s on the routers. We should the fact that we can the same 4 prefixes for the 10.x.x.x network on the routing table entries.
So let’s start summarizing the 4 prefixes on the MANILA Router. Remember that we can used the
“summary address”command under OSPGF process to accomplish this. I will be summarizing the 4 prefixes into 10.0.0.0/8.
Enter configuration commands, one per line. End with CNTL/Z.
MANILA(config)#router ospf 1
MANILA(config-router)#summary-address 10.0.0.0 255.0.0.0 <<<< This is the key command to used when summarizing external routes redistributed into OSPF.
MANILA(config-router)#
VERIFICATIONS:
A. Let’s check the LSDB of the routers by this time that we have enable the summarizations on MANILA router.
>>> As seen above, I have the LINK ID of 10.0.0.0 which is being advertised by MANILA router (10.10.13.1). The Router ID of 10.10.13.1 will be the highest loopbacK interface on the router not unless we have manually set this up under OSPF process.
>>> Previously, we have 4 prefixes in LSDB of MANILA router for the 10.x.x.x subnets but now, we can only see just 1 summarized prefix.
>>> What about MELBOURNE & SINGAPORE router,
>>> As observed from both MELBOURNE & SINGAPORE routers, MANILA router have sent the LSU’s for the new LSA containing the summarized prefix with the LINK ID of 10.0.0.0.
B. So what’s the routing table tells us about this summarized prefix,
>>> As observed, we only have a single summarized prefix received by MELBOURNE router as we have manually summarized from MANILA router the 4 prefixes to a single prefix of 10.0.0.0/8. We can see it as O E2. If you still remember, This OSPF codes refers to OSPF External Routes or Routes that were redistributed into OSPF. I should be able to see the same results from SINGAPORE router as seen below,
Let’s try a bit of some failure scenarios here, I will disabled the Loopback Interface 0 & 1 on MANILA router and let’s check whether there will be a changes on the LSDB sequence numbers on both MELBOURNE and SINGAPORE routers for the 10.0.0.0 Link ID.
MANILA(config-if)#shut
*Jul 26 23:48:52.055: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to down
*Jul 26 23:48:52.059: %LINK-5-CHANGED: Interface Loopback0, changed state to administratively down
MANILA(config-if)#shut
MANILA(config-if)#
*Jul 26 23:48:56.659: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to down
*Jul 26 23:48:56.663: %LINK-5-CHANGED: Interface Loopback1, changed state to administratively down
MANILA(config-if)#
Now, let’s check the LSDB of MELBOURNE and SINGAPORE routers,
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
10.0.0.0 10.10.13.1 1576 0x80000001 0x00591B 0
MELBOURNE#
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
10.0.0.0 10.10.13.1 1660 0x80000001 0x00591B 0
SINGAPORE#
>>> As seen there were no changes on the SEQUENCE Number of both MELBOURNE & SINGAPORE router as compared with the previous LSDB records even though, I have manually shutdown Loopback 0 & Loopback 1.
>>> As we know, the sequence number will increase if there are changes on existing networks. We can proved by simply adding a new network in MANILA and advertise it into OSPF.
MANILA(config-if)#ip add 100.100.100.1 255.255.255.0
MANILA(config-if)#exit
My current configurations in MANILA will redistribute all “Connected Network”. So let’s check the LSDB updates on MELBOURNE & SINGAPORE. As we see below, once we add a new network of 100.100.100.0/24 , the sequence number for the Link ID 10.0.0.0 have incremented by 1.
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
10.0.0.0 10.10.13.1 95 0x80000002 0x00571C 0
100.100.100.0 10.10.13.1 25 0x80000001 0x00BD93 0
MELBOURNE#
That’s enough for proving how LSDB is being updated.
C. Let’s test the connectivity.
A successful ping sourcing SINGAPORE loopback towards any of MANILA loopback interface will proved our connectivity will be successful and we have setup the correct configurations.
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds:
Packet sent with a source address of 30.30.30.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 72/102/132 ms
SINGAPORE#ping 10.10.11.1 source 30.30.30.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.11.1, timeout is 2 seconds:
Packet sent with a source address of 30.30.30.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/89/148 ms
SINGAPORE#ping 10.10.12.1 source 30.30.30.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.12.1, timeout is 2 seconds:
Packet sent with a source address of 30.30.30.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/69/108 ms
SINGAPORE#ping 10.10.13.1 source 30.30.30.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.13.1, timeout is 2 seconds:
Packet sent with a source address of 30.30.30.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 68/87/108 ms
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 96 msec 76 msec 56 msec
2 192.168.12.1 108 msec 124 msec 80 msec
SINGAPORE#
Leave a comment