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:


Manila Router:

MANILA#config t
Enter configuration commands, one per line.  End with CNTL/Z.
MANILA(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 add 10.10.10.1 255.255.255.0
MANILA(config-if)#exit
MANILA(config)#int lo1
MANILA(config-if)#ip add 10.10.11.1 255.255.255.0
MANILA(config-if)#exit
MANILA(config)#int lo2
MANILA(config-if)#ip add 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 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

MELBOURNE Router: 


MELBOURNE#config t
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)#int lo2
MELBOURNE(config-if)#ip add 20.20.20.1 255.255.255.0
MELBOURNE(config-if)#no shut
MELBOURNE(config)#int s3/1
MELBOURNE(config-if)#ip add 192.168.23.2 255.255.255.0
MELBOURNE(config-if)#no shut

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)#

SINGAPORE Router:

SINGAPORE#config t
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)#int lo3
SINGAPORE(config-if)#ip add 30.30.30.1 255.255.255.0
SINGAPORE(config-if)#


Now, let’s check the OSPF adjacencies,

 

MANILA#show ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
20.20.20.1        0   FULL/  –        00:00:34    192.168.12.2    Serial3/0
MANILA#


MELBOURNE#show ip ospf neighbor

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#

SINGAPORE#show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
20.20.20.1        0   FULL/  –        00:00:38    192.168.23.2    Serial3/1
SINGAPORE#


So what does the LSDB on the router’s tells us so far, as we have not done the summarization on the ASBR yet.

 

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      1465        0x80000003 0x003692 2
30.30.30.1      30.30.30.1      1478        0x80000003 0x0075C8 3
                Summary Net Link States (Area 1)
Link ID         ADV Router      Age         Seq#       Checksum
20.20.20.1      20.20.20.1      1465        0x80000002 0x00CCF3
192.168.12.0    20.20.20.1      1465        0x80000002 0x00EB5D
                Summary ASB Link States (Area 1)
Link ID         ADV Router      Age         Seq#       Checksum
10.10.13.1      20.20.20.1      695         0x80000002 0x007F1C
                Type-5 AS External Link States
Link ID         ADV Router      Age         Seq#       Checksum Tag
10.10.10.0      10.10.13.1      744         0x80000002 0x0070EE 0
10.10.11.0      10.10.13.1      744         0x80000002 0x0065F8 0
10.10.12.0      10.10.13.1      744         0x80000002 0x005A03 0
10.10.13.0     10.10.13.1      744         0x80000002 0x00AB550

>> 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)

 

MELBOURNE#sh ip ospf database | begin Type-5
                Type-5 AS External Link States
Link ID         ADV Router      Age         Seq#       Checksum Tag
10.10.10.0      10.10.13.1      1247        0x80000002 0x0070EE 0
10.10.11.0      10.10.13.1      1247        0x80000002 0x0065F8 0
10.10.12.0      10.10.13.1      1247        0x80000002 0x005A03 0
10.10.13.0     10.10.13.1      1247        0x80000002 0x00AB55 0
MELBOURNE#
MANILA#show ip ospf database | begin Type-5

                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.


MANILA#config t
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.

 

MANILA#show ip ospf database
            OSPF Router with ID (10.10.13.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      47          0x80000009 0x00DA52 2
20.20.20.1      20.20.20.1      773         0x80000004 0x002A9E 3
                Summary Net Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum
30.30.30.1      20.20.20.1      773         0x80000003 0x00E37D
192.168.23.0    20.20.20.1      773         0x80000003 0x0070CC
                Type-5 AS External Link States
Link ID         ADV Router      Age         Seq#       Checksum Tag
10.0.0.0        10.10.13.1      280         0x80000001 0x00591B 0


>>> 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,


MELBOURNE#show ip ospf database | Begin Type-5
                Type-5 AS External Link States
Link ID         ADV Router      Age         Seq#       Checksum Tag
10.0.0.0        10.10.13.1      588         0x80000001 0x00591B 0
MELBOURNE#

SINGAPORE#sh ip ospf database | be Type-5
                Type-5 AS External Link States
Link ID         ADV Router      Age         Seq#       Checksum Tag
10.0.0.0        10.10.13.1      655         0x80000001 0x00591B 0
SINGAPORE#


>>> 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,

 

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
O E2  10.0.0.0/8 [110/20] via 192.168.12.1, 00:15:12, Serial3/0
      30.0.0.0/32 is subnetted, 1 subnets
O        30.30.30.1 [110/65] via 192.168.23.3, 01:30:55, Serial3/1
MELBOURNE#



>>> 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,

 

 

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 E2  10.0.0.0/8 [110/20] via 192.168.23.2, 00:18:35, 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:34:14, Serial3/1
O IA  192.168.12.0/24 [110/128] via 192.168.23.2, 01:34:14, Serial3/1
SINGAPORE#


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)#int lo0
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)#int lo1
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,

 

 

MELBOURNE#sho ip ospf database | begin Type-5

                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#

 

SINGAPORE#show ip ospf database | begin Type-5

                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)#int lo100
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.


MELBOURNE#sho ip ospf database | begi Type-5
 
                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#

SINGAPORE#show ip ospf database | begin Type-5
                Type-5 AS External Link States
Link ID         ADV Router      Age         Seq#                Checksum Tag
10.0.0.0        10.10.13.1      109         0x80000002       0x00571C 0
100.100.100.0   10.10.13.1      39          0x80000001     0x00BD93 0
SINGAPORE#


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.


SINGAPORE#ping 10.10.10.1 source 30.30.30.1
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
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 96 msec 76 msec 56 msec
  2 192.168.12.1 108 msec 124 msec 80 msec

SINGAPORE#

Leave a comment

Quote of the week

"People ask me what I do in the winter when there's no baseball. I'll tell you what I do. I stare out the window and wait for spring."

~ Rogers Hornsby