1 ccnp – advanced routing ch. 6 ospf - multi-areas (part ii) ch. 6 ospf - multi-areas (part ii)...
TRANSCRIPT
![Page 1: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/1.jpg)
1
CCNP – Advanced RoutingCCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II)Ch. 6 OSPF - Multi-areas (Part II)
This presentation was created by Rick Graziani.Some modifications were made by Prof. Yousif
![Page 2: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/2.jpg)
2
Quick Review
Areas LSAs Stub Area Totally Stubby Area
![Page 3: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/3.jpg)
3
Area Types
Standard or Normal Areas– Backbone– Non-Backbone
Stub– Stub Area– Totally Stubby Area (TSA)– Not-so-stubby-area (NSSA)
![Page 4: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/4.jpg)
4
Area Types
![Page 5: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/5.jpg)
5
LSA-1 - Router LSA
![Page 6: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/6.jpg)
6
ASBR
ABR-1 ABR-2
InternalArea 51
Area 1
Area 0
172.16.0.0/16
172.16.1.0/24
172.16.51.0/24172.16.10.4/30
172.16.20.0/24
10.1.0.0/24
11.0.0.0/812.0.0.0/813.0.0.0/8
.1
.1
.2 .3
.5
.6
.1
Lo - RouterID192.168.2.1/32
Lo - RouterID192.168.1.1/32
Lo - RouterID192.168.3.1/32
Pri 100Pri 200
Lo - RouterID192.168.4.1/32
Multi Area OSPF
Normal AreasLSA 1’s being sent within Area 0
LSA 1LSA 1LSA 1
![Page 7: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/7.jpg)
7
ASBR
ABR-1 ABR-2
InternalArea 51
Area 1
Area 0
172.16.0.0/16
172.16.1.0/24
172.16.51.0/24172.16.10.4/30
172.16.20.0/24
10.1.0.0/24
11.0.0.0/812.0.0.0/813.0.0.0/8
.1
.1
.2 .3
.5
.6
.1
Lo - RouterID192.168.2.1/32
Lo - RouterID192.168.1.1/32
Lo - RouterID192.168.3.1/32
Pri 100Pri 200
Lo - RouterID192.168.4.1/32
Multi Area OSPF
Normal Areas
LSA 1’s being sent within other areas
LSA 1
LSA 1
LSA 1
LSA 1
![Page 8: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/8.jpg)
8
ASBR
ABR-1 ABR-2
InternalArea 51
Area 1
Area 0
172.16.0.0/16
172.16.1.0/24
172.16.51.0/24172.16.10.4/30
172.16.20.0/24
10.1.0.0/24
11.0.0.0/812.0.0.0/813.0.0.0/8
.1
.1
.2 .3
.5
.6
.1
Lo - RouterID192.168.2.1/32
Lo - RouterID192.168.1.1/32
Lo - RouterID192.168.3.1/32
Pri 100Pri 200
Lo - RouterID192.168.4.1/32
Multi Area OSPF
Normal Areas
LSA 1 Originated
LSA 1’s are flooded out other interfaces within the same area.
LSA 1 flooded
![Page 9: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/9.jpg)
9
LSA-2 - Network LSA
![Page 10: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/10.jpg)
10
ASBR
ABR-1 ABR-2
InternalArea 51
Area 1
Area 0
172.16.0.0/16
172.16.1.0/24
172.16.51.0/24172.16.10.4/30
172.16.20.0/24
10.1.0.0/24
11.0.0.0/812.0.0.0/813.0.0.0/8
.1
.1
.2 .3
.5
.6
.1
Lo - RouterID192.168.2.1/32
Lo - RouterID192.168.1.1/32
Lo - RouterID192.168.3.1/32
Pri 100Pri 200
Lo - RouterID192.168.4.1/32
Multi Area OSPF
Normal Areas
LSA 2
No LSA 2’s for ABR-1 in Area 51, or for Internal because no other routers on multi-access segment.
flooded
DR
DR
LSA 2
LSA 2flooded
LSA 2
LSA 2
![Page 11: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/11.jpg)
11
LSA-3 - Summary LSA
![Page 12: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/12.jpg)
12
ASBR
ABR-1 ABR-2
InternalArea 51
Area 1
Area 0
172.16.0.0/16
172.16.1.0/24
172.16.51.0/24172.16.10.4/30
172.16.20.0/24
10.1.0.0/24
11.0.0.0/812.0.0.0/813.0.0.0/8
.1
.1
.2 .3
.5
.6
.1
Lo - RouterID192.168.2.1/32
Lo - RouterID192.168.1.1/32
Lo - RouterID192.168.3.1/32
Pri 100Pri 200
Lo - RouterID192.168.4.1/32
Multi Area OSPF
Normal AreasLSA 1’s are sent as LSA 3’s into other areas by the ABRs.
LSA 1LSA 1
LSA 3LSA 3
LSA 1
![Page 13: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/13.jpg)
13
ASBR
ABR-1 ABR-2
InternalArea 51
Area 1
Area 0
172.16.0.0/16
172.16.1.0/24
172.16.51.0/24172.16.10.4/30
172.16.20.0/24
10.1.0.0/24
11.0.0.0/812.0.0.0/813.0.0.0/8
.1
.1
.2 .3
.5
.6
.1
Lo - RouterID192.168.2.1/32
Lo - RouterID192.168.1.1/32
Lo - RouterID192.168.3.1/32
Pri 100Pri 200
Lo - RouterID192.168.4.1/32
Multi Area OSPF
Normal AreasLSA 1’s are sent as LSA 3’s into other areas by the ABRs.
LSA 1
LSA 1
LSA 1
LSA 3
LSA 3
LSA 3
LSA 3
LSA 1
LSA 3
LSA 3
![Page 14: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/14.jpg)
14
LSA-4 – ASBR Summary LSA
![Page 15: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/15.jpg)
15
ASBR
ABR-1 ABR-2
InternalArea 51
Area 1
Area 0
172.16.0.0/16
172.16.1.0/24
172.16.51.0/24172.16.10.4/30
172.16.20.0/24
10.1.0.0/24
11.0.0.0/812.0.0.0/813.0.0.0/8
.1
.1
.2 .3
.5
.6
.1
Lo - RouterID192.168.2.1/32
Lo - RouterID192.168.1.1/32
Lo - RouterID192.168.3.1/32
Pri 100Pri 200
Lo - RouterID192.168.4.1/32
Normal Areas
LSA 4
LSA 4
LSA 4
LSA 5’s flooded
LSA 4
Area 1
![Page 16: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/16.jpg)
16
LSA-5 - External LSA
![Page 17: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/17.jpg)
17
ASBR
ABR-1 ABR-2
InternalArea 51
Area 1
Area 0
172.16.0.0/16
172.16.1.0/24
172.16.51.0/24172.16.10.4/30
172.16.20.0/24
10.1.0.0/24
11.0.0.0/812.0.0.0/813.0.0.0/8
.1
.1
.2 .3
.5
.6
.1
Lo - RouterID192.168.2.1/32
Lo - RouterID192.168.1.1/32
Lo - RouterID192.168.3.1/32
Pri 100Pri 200
Lo - RouterID192.168.4.1/32
Normal Areas
LSA 5
LSA 5
LSA 5LSA 5
LSA 5’s floodedLSA 5
ASBR
router ospf 1
redistribute static
network 172.16.1.0 0.0.0.255 area 0
ip route 11.0.0.0 255.0.0.0 Null0
ip route 12.0.0.0 255.0.0.0 Null0
ip route 13.0.0.0 255.0.0.0 Null0
![Page 18: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/18.jpg)
18
Stub Area
![Page 19: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/19.jpg)
19
ASBR
ABR-1 ABR-2
InternalArea 51
Area 1
Area 0
172.16.0.0/16
172.16.1.0/24
172.16.51.0/24172.16.10.4/30
172.16.20.0/24
10.1.0.0/24
11.0.0.0/812.0.0.0/813.0.0.0/8
.1
.1
.2 .3
.5
.6
.1
Lo - RouterID192.168.2.1/32
Lo - RouterID192.168.1.1/32
Lo - RouterID192.168.3.1/32
Pri 100Pri 200
Lo - RouterID192.168.4.1/32
Stub Area
LSA 4
LSA 4
X Blocked
LSA 5
Blocked XLSA 5
LSA 3
LSA 3
Default route to ABR injected
![Page 20: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/20.jpg)
20
Totally Stubby Area
![Page 21: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/21.jpg)
21
ASBR
ABR-1 ABR-2
InternalArea 51
Area 1
Area 0
172.16.0.0/16
172.16.1.0/24
172.16.51.0/24172.16.10.4/30
172.16.20.0/24
10.1.0.0/24
11.0.0.0/812.0.0.0/813.0.0.0/8
.1
.1
.2 .3
.5
.6
.1
Lo - RouterID192.168.2.1/32
Lo - RouterID192.168.1.1/32
Lo - RouterID192.168.3.1/32
Pri 100Pri 200
Lo - RouterID192.168.4.1/32
Totally Stubby Area
LSA 4
LSA 4
X Blocked
LSA 5
Blocked XLSA 5
LSA 3
LSA 3
Default route to ABR injected Area 1
X
![Page 22: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/22.jpg)
22
NSSA Example
NSSAArea 2
Backbone AreaArea 0
ASBR
ABR(Possible
ASBR)
RIP
RTARTB
RTC
RTD
RTE
RTF
RTG
RTH
![Page 23: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/23.jpg)
23
NSSA Relatively new, standards based OSPF enhancement, RFC
1587. NSSA allows an area to remain a stub area, but carry external
routing information (Type 7 LSAs) from its stubby end back towards the OSPF backbone.
ASBR in NSSA injects external routing information into the backbone and the NSSA area, but rejects external routing information coming from the ABR.
The ABR does not inject a default route into the NSSA. – This is true for a NSSA Stub, but a default route is injected
for a NSSA Totally Stubby area. Note: RFC 1587, “A default route must not be injected into the
NSSA as a summary (type-3) LSA as in the stub area case.” What??? Following scenario is only example of how NSSA works. For
the purposes of learning about NSSAs, don’t get hung up on the why’s and what if’s.
![Page 24: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/24.jpg)
24
NSSA Stub Area Area 2 would like to be a stub network. RTH only supports RIP, so RTG will run RIP and redistribute those
routes in OSPF. Unfortunately, this makes the area 2 router, RTG, an ASBR and
therefore area 2 can no longer be a stub area. RTH does not need to learn routes from OSPF, a default route to RTG
is all it needs. But all OSPF routers must know about the networks attached to the
RIP router, RTH, to route packets to them.
NSSAArea 2
Backbone AreaArea 0
ASBR
ABR(Possible
ASBR)
RIP
RTARTB
RTC
RTD
RTE
RTF
RTG
RTH
Default route via RTG
![Page 25: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/25.jpg)
25
NSSA allow external routes to be advertised into the OSPF AS while retaining the characteristics of a stub area to the rest of the OSPF AS.
ASBR RTG will originate Type-7 LSAs to advertise the external destinations.
These LSA 7s are flooded through the NSSA but are blocked by the NSSA ABR.
The NSSA ABR translates LSA 7s into LSA 5s and flood other areas.
NSSAArea 2
Backbone AreaArea 0
ASBR
ABR(Possible
ASBR)
RIP
RTARTB
RTC
RTD
RTE
RTF
RTG
RTH
Default route via RTG
LSA 7LSA 7
LSA 7
LSA 7
LSA 7
LSA 7LSA 5
LSA 7s Blocked
NSSA Stub Area (cont.)
![Page 26: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/26.jpg)
26
LSA Types (con’t)
Type 7 LSA NSSA External Link Entry Originated by an ASBR connected to an NSSA. Type 7 messages can be flooded throughout NSSAs
and translated into LSA Type 5 messages by ABRs. Routes learned via Type-7 LSAs are denoted by
either a default “N1” or an “N2” in the routing table. (Relative to E1 and E2).
![Page 27: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/27.jpg)
27
Configuring NSSA Stub AreaConfigured for all routers in Area 2:router ospf 1 network 172.16.2.0 0.0.0.255 area 2 area 2 nssa
NSSAArea 2
Backbone AreaArea 0
ASBR
ABR(Possible
ASBR)
RIP
RTARTB
RTC
RTD
RTE
RTF
RTG
RTH
Default route via RTG
LSA 7LSA 7
LSA 7
LSA 7
LSA 7
LSA 7LSA 5
LSA 7s Blocked
NSSA Generic
![Page 28: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/28.jpg)
28
NSSA Stub and NSSA Totally Stubby There are two flavors in NSSA:
– stub
– totally stubby Area 2 routers may or may not receive Inter-area routes from
RTA, depending upon NSSA configuration NSSA areas have take on the same characteristics as stub and
totally stubby areas, along with the characteristics of NSSA areas.
NSSA stub areas: NSSAs that block type 4 and 5, but allow type 3. To make a stub area into an NSSA, use the following command
under the OSPF configuration. This command must be configured on all routers in area 2.
router ospf 1 area 2 nssa
![Page 29: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/29.jpg)
29
NSSAArea 2
Backbone AreaArea 0
ASBR
ABR(Possible
ASBR)
RIP
RTARTB
RTC
RTD
RTE
RTF
RTG
RTH
LSA 7LSA 7
LSA 7
LSA 7
LSA 7
LSA 7LSA 5
LSA 7s Blocked
NSSA Stub Areas
0.0.0.0/0
LSA 3s
XRTH routes:E1/E2
RTH routes:N1/N2LSA 4s & LSA 5s
X
NSSA Stub Area Routing Tables: RTG: Area 2 routes, Area 0 routes (IA), RTH RIP routes
– No 0.0.0.0/0 (IA) route from RTB (ABR), despite documentation Area 2 Internal Routers: Area 2 routes, RTH routes (N1/N2), Area 0 routes (IA)
– No 0.0.0.0/0 (IA) route from RTB (ABR), despite documentation RTB: Area 2 routes, Area 0 routes, RTH routes (N1/N2), External routes if
redistributed from RTA ASBR (E1/E2) RTA: Area 0 routes, Area 2 routes, RTH routes (E1/E2), External routes if
redistributed from RTA (E1/E2) Note: Area 2 routers may or may not receive E1/E2 routes from RTA, depending
upon NSSA configuration (next).
Default route via RTG
![Page 30: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/30.jpg)
30
NSSAArea 2
Backbone AreaArea 0
ASBR
ABR(Possible
ASBR)
RIP
RTARTB
RTC
RTD
RTE
RTF
RTG
RTH
Default route via RTG
LSA 7LSA 7
LSA 7
LSA 7
LSA 7
LSA 7LSA 5
LSA 7s Blocked
NSSA Stub Areas
Area 2 routers:
router ospf 1
network 172.16.2.0 0.0.0.255 area 2
area 2 nssa
0.0.0.0/0
LSA 3s
XRTH routes:E1/E2
RTH routes:N1/N2LSA 4s & LSA 5s
X
![Page 31: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/31.jpg)
31
NSSA Totally Stubby Area NSSA totally stub areas: Allow only summary default routes
and filters everything else. To configure an NSSA totally stub area, use the following
command under the OSPF configuration on the NSSA ABR: router ospf 1 area 2 nssa no-summary
Configure this command on NSSA ABRs only. All other routers in area 2 (internal area 2 routers):
router ospf 1 area 2 nssa
After defining the NSSA totally stub area, area 2 has the following characteristics (in addition to the above NSSA characteristics):
No type 3 or 4 summary LSAs are allowed in area 2. This means no inter-area routes are allowed in area 2.
A default route is injected into the NSSA totally stub area as a type 3 summary LSA by the ABR.
![Page 32: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/32.jpg)
32
NSSAArea 2
Backbone AreaArea 0
ASBR
ABR(Possible
ASBR)
RIP
RTARTB
RTC
RTD
RTE
RTF
RTG
RTH
Default route via RTG
LSA 7LSA 7
LSA 7
LSA 7
LSA 7
LSA 7LSA 5
LSA 7s Blocked
NSSA Totally Stubby Areas
0.0.0.0/0
LSA 3sX
RTH routes:E1/E2
RTH routes: N1/N2LSA 4s & LSA 5s
X
RTB (ABR): router ospf 1 network 172.16.1.0 0.0.0.255 area 0 network 172.16.2.0 0.0.0.255 area 2 ... area 2 nssa no-summaryArea 2 routers: router ospf 1 network 172.16.2.0 0.0.0.255 area 2 area 2 nssa
![Page 33: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/33.jpg)
33
NSSAArea 2
Backbone AreaArea 0
ASBR
ABR(Possible
ASBR)
RIP
RTARTB
RTC
RTD
RTE
RTF
RTG
RTH
Default route via RTG
LSA 7LSA 7
LSA 7
LSA 7
LSA 7
LSA 7LSA 5
LSA 7s Blocked
NSSA Totally Stubby Areas
0.0.0.0/0
LSA 3sX
RTH routes:E1/E2
RTH routes: N1/N2LSA 4s & LSA 5s
X
NSSA Totally Stubby Area Routing Tables: RTG: Area 2 routes, RTH RIP routes, 0.0.0.0/0 (IA) route from RTB (ABR)
– Totally Stubby: No Area 0 routes or external routes from RTA Area 2 Internal Routers: Area 2 routes, RTH routes (N1/N2), 0.0.0.0/0 (IA) route
from RTB (ABR)– Totally Stubby: No Area 0 routes or external routes from RTA
RTB: Area 2 routes, Area 0 routes, RTH routes (N1/N2), External routes from RTA ASBR (E1/E2) if redistributed by ASBR
RTA: Area 0 routes, Area 2 routes, RTH routes (E1/E2), External routes (E1/E2)
![Page 34: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/34.jpg)
34
Area 2NSSA Area 0
RTARTBRTCRTD
RTE
RIPDefault Route
172.16.3.0/24 172.16.2.0/24 172.16.1.0/24
10.0.0.0/8
200.200.200.0/24
222.222.222.0/24
Examples See NSSA document on my web site for more info.
More on NSSA
![Page 35: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/35.jpg)
35
Virtual Links
![Page 36: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/36.jpg)
36
All areas in an OSPF autonomous system must be physically connected to the backbone area (area 0).
In some cases where this is not possible, you can use a virtual link to connect to the backbone through a non-backbone area.
As mentioned above, you can also use virtual links to connect two parts of a partitioned backbone through a non-backbone area.
The area through which you configure the virtual link, known as a transit area, must have full routing information.
Must be configured between two ABRs.
The transit area cannot be a stub area.
Virtual Links
![Page 37: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/37.jpg)
37
A virtual link has the following two requirements:– It must be established between two routers that
share a common area and are both ABRs.– One of these two routers must be connected to
the backbone. Doyle, “should be used only as a temporary fix to an
unavoidable topology problem.”
Virtual Links
![Page 38: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/38.jpg)
38
The command to configure a virtual link is as follows:
area <area-id> virtual-link <remote-router-id>
RTA(config)#router ospf 1RTA(config-router)#network 192.168.0.0 0.0.0.255 area 51RTA(config-router)#network 192.168.1.0 0.0.0.255 area 3RTA(config-router)#area 3 virtual-link 10.0.0.1...
RTB(config)#router ospf 1RTB(config-router)#network 192.168.1.0 0.0.0.255 area 3RTB(config-router)#network 192.168.2.0 0.0.0.255 area 0RTB(config-router)#area 3 virtual-link 10.0.0.2
Virtual Links
![Page 39: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/39.jpg)
39
OSPF allows for linking discontinuous parts of the backbone using a virtual link.
In some cases, different area 0s need to be linked together. This can occur if, for example, a company is trying to merge two separate OSPF networks into one network with a common area 0.
In other instances, virtual-links are added for redundancy in case some router failure causes the backbone to be split into two. (CCO)
Whatever the reason may be, a virtual link can be configured between separate ABRs that touch area 0 from each side and having a common area.
Virtual Links
![Page 40: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/40.jpg)
40
Route Summarization
Inter-Area Route Summarization - Area Range By default ABRs do not summarize routes between areas. Route summarization is the consolidation of advertised
addresses. This feature causes a single summary route to be advertised to
other areas by an ABR. In OSPF, an ABR will advertise networks in one area into
another area. If the network numbers in an area are assigned in a way such
that they are contiguous, you can configure the ABR to advertise a summary route that covers all the individual networks within the area that fall into the specified range.
On the ABR (Summarizes routes before injecting them into different area)
Router(config-router)# area area-id range network-address subnet-mask
area-id - Identifier of the area about which routes are to be summarized. (From area)
![Page 41: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/41.jpg)
41
Route Summarization
RTB is summarizing the range of subnets from 128.213.64.0 to 128.213.95.0 into one range: 128.213.64.0 255.255.224.0.
This is achieved by masking the first three left most bits of 64 using a mask of 255.255.224.0.
128.213.64.0/24 - 01000000
128.213.95.0/24 – 01011111
-----------------------------------------
128.213.64.0/19 - 01000000
![Page 42: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/42.jpg)
42
Route Summarization
In the same way, RTC is generating the summary address 128.213.96.0 255.255.224.0 into the backbone.
Note that this summarization was successful because we have two distinct ranges of subnets, 64-95 and 96-127.
128.213.96.0/24 - 01100000
128.213.127.0/24 – 01111111
-----------------------------------------
128.213.96.0/19 - 01100000
![Page 43: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/43.jpg)
43
Route Summarization
128.213.64.0/24 - 01000000
128.213.95.0/24 – 01011111
-----------------------------------------
128.213.64.0/19 - 01000000
RTB
router ospf 100
area 1 range 128.213.64.0 255.255.224.0
![Page 44: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/44.jpg)
44
Route Summarization
128.213.96.0/24 - 01100000
128.213.127.0/24 – 01111111
-----------------------------------------
128.213.96.0/19 - 01100000
RTC
router ospf 100
area 2 range 128.213.96.0 255.255.224.0
![Page 45: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/45.jpg)
45
External Route Summarization - summary-address When redistributing routes from other protocols into OSPF
(later), each route is advertised individually in an external link state advertisement (LSA).
However, you can configure the Cisco IOS software to advertise a single route for all the redistributed routes that are covered by a specified network address and mask.
Doing so helps decrease the size of the OSPF link state database.
On the ASBR only (Summarizes external routes before injecting them into the OSPF domain.)
Router(config-router)# summary-address network-address subnet-mask
Route Summarization
![Page 46: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/46.jpg)
46
Route Summarization
RTA router ospf 100 summary-address 128.213.64.0 255.255.224.0 redistribute bgp 50 metric 1000 subnets (later)
RTD router ospf 100 summary-address 128.213.96.0 255.255.224.0 redistribute bgp 20 metric 1000 subnets (later)
![Page 47: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/47.jpg)
47
Injecting Default Routes into OSPF By default, 0.0.0.0/0 route is not propagated from the ASBR to
other routers.
An autonomous system boundary router (ASBR) can be forced to generate a default route into the OSPF domain.
As discussed earlier, a router becomes an ASBR whenever routes are redistributed into an OSPF domain.
However, an ASBR does not, by default, generate a default route into the OSPF routing domain.
![Page 48: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/48.jpg)
48
How Does OSPF Generate Default Routes?
The way that OSPF generates default routes (0.0.0.0) varies depending on the type of area the default route is being injected into.
Stub and Totally Stubby Areas For stub and totally stubby areas, the area border
router (ABR) to the stub area generates a summary link-state advertisement (LSA) with the link-state ID 0.0.0.0.
This is true even if the ABR doesn't have a default route.
In this scenario, you don't need to use the default-
information originate command.
![Page 49: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/49.jpg)
49
ASBR
ABR-1 ABR-2
InternalArea 51
Area 1
Area 0
172.16.0.0/16
172.16.1.0/24
172.16.51.0/24172.16.10.4/30
172.16.20.0/24
10.1.0.0/24
11.0.0.0/812.0.0.0/813.0.0.0/8
.1
.1
.2 .3
.5
.6
.1
Lo - RouterID192.168.2.1/32
Lo - RouterID192.168.1.1/32
Lo - RouterID192.168.3.1/32
Pri 100Pri 200
Lo - RouterID192.168.4.1/32
Stub Area
LSA 4
LSA 4
X Blocked
LSA 5
Blocked XLSA 5
LSA 3
LSA 3
Default route to ABR injected Area 1
All routers in the area must be configured as “stub” including the ABR: router ospf 1
area 1 stub
Stub Area
![Page 50: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/50.jpg)
50
ASBR
ABR-1 ABR-2
InternalArea 51
Area 1
Area 0
172.16.0.0/16
172.16.1.0/24
172.16.51.0/24172.16.10.4/30
172.16.20.0/24
10.1.0.0/24
11.0.0.0/812.0.0.0/813.0.0.0/8
.1
.1
.2 .3
.5
.6
.1
Lo - RouterID192.168.2.1/32
Lo - RouterID192.168.1.1/32
Lo - RouterID192.168.3.1/32
Pri 100Pri 200
Lo - RouterID192.168.4.1/32
Totally Stubby Area
LSA 4
LSA 4
X Blocked
LSA 5
Blocked XLSA 5
LSA 3
LSA 3
Default route to ABR injected Area 1
X
Totally Stubby Area
All routers in the area must be configured as “stub” except the ABR “stub no summary”:
ABR: router ospf 1 Other: router ospf 1 area 1 stub no-summary area 1 stub
![Page 51: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/51.jpg)
51
How Does OSPF Generate Default Routes?
Normal Areas By default, in normal areas routers don't generate
default routes. To have an OSPF router generate a default route,
use the default-information originate command. This generates an external type-2 link with link-state
ID 0.0.0.0 and network mask 0.0.0.0. This command should only be used on the ASBR.
– Some documentation states this command works only on an ASBR while other documentation states this command turns a router into an ASBR.
![Page 52: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/52.jpg)
52
Injecting Default Routes into OSPF
To have OSPF generate a default route use the following:
router ospf 10default-information originate [always] [metric
metric-value] [metric-type type-value] [route-map map-name]
![Page 53: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/53.jpg)
53
There are two ways to generate a default.
1) default-information originate If the ASBR already has the default route (ip route
0.0.0.0 0.0.0.0), you can advertise 0.0.0.0 into the area.
2) default-information originate always If the ASBR doesn't have the route (ip route 0.0.0.0
0.0.0.0), you can add the keyword always to the default-information originate command, and then
advertise 0.0.0.0. You should be careful when using the always keyword.
If your router advertises a default (0.0.0.0) inside the domain and does not have a default itself or a path to reach the destinations, routing will be broken.
![Page 54: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/54.jpg)
54
ASBR
ABR-1 ABR-2
InternalArea 51
Area 1
Area 0
172.16.0.0/16
172.16.1.0/24
172.16.51.0/24172.16.10.4/30
172.16.20.0/24
10.1.0.0/24
11.0.0.0/812.0.0.0/813.0.0.0/8
.1
.1
.2 .3
.5
.6
.1
Lo - RouterID192.168.2.1/32
Lo - RouterID192.168.1.1/32
Lo - RouterID192.168.3.1/32
Pri 100Pri 200
Lo - RouterID192.168.4.1/32
Injecting Default Routes into OSPF
0.0.0.0/00.0.0.0/00.0.0.0/0
0.0.0.0/0 0.0.0.0/0
0.0.0.0/0
0.0.0.0/0
ASBRrouter ospf 1
redistribute static
network 172.16.1.0 0.0.0.255 area 0
default-information originate
ip route 0.0.0.0 0.0.0.0 10.0.0.2
![Page 55: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/55.jpg)
55
ASBR
ABR-1 ABR-2
InternalArea 51
Area 1
Area 0
172.16.0.0/16
172.16.1.0/24
172.16.51.0/24172.16.10.4/30
172.16.20.0/24
10.1.0.0/24
11.0.0.0/812.0.0.0/813.0.0.0/8
.1
.1
.2 .3
.5
.6
.1
Lo - RouterID192.168.2.1/32
Lo - RouterID192.168.1.1/32
Lo - RouterID192.168.3.1/32
Pri 100Pri 200
Lo - RouterID192.168.4.1/32
Injecting Default Routes into OSPF
0.0.0.0/00.0.0.0/00.0.0.0/0
0.0.0.0/0 0.0.0.0/0
0.0.0.0/0
ASBRrouter ospf 1
redistribute static
network 172.16.1.0 0.0.0.255 area 0
default-information originate always
ip route 0.0.0.0 0.0.0.0 10.0.0.2
No 0.0.0.0/0 route, but propagated anyway or “always”
![Page 56: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/56.jpg)
56
E1 vs. E2 External Routes External routes fall under two categories, external
type 1 and external type 2. The difference between the two is in the way the cost
(metric) of the route is being calculated. A type 1 (E1) cost is the addition of the external cost
and the internal cost used to reach that route. The cost of a type 2 (E2) route is always the external
cost, irrespective of the interior cost to reach that route.
Type 2 (E2) is the default!
Redistributing External Routes
![Page 57: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/57.jpg)
57
router ospf 1
redistribute routing-protocol metric-type [1|2]
metric-type 1 - A type 1 cost is the addition of the external cost and the internal cost used to reach that route.
redistribute rip metric-type 1 metric-type 2 - The cost of a type 2 route is always
the external cost, irrespective of the interior cost to reach that route.
redistribute rip metric-type 2 We will look at this command, along with
internal/external costs, later in the chapter discussion route redistribution.
Redistributing External Routes
![Page 58: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/58.jpg)
58
RouterELoop 1.10.202.206/24
RouterALoop 1.0.202.206/24
RouterBLoop 2.0.202.206/24
RouterCLoop 1.2.202.206/24
RouterDLoop 2.2.202.206
Switch
Switch
RouterFLoop 2.10.202.206/24
ASBRLoop 1.5.202.206/24
AS-Rem ote
10.0.0.0/8
192.10.10.0
/24206.202.0.0/24
192.10.5.0/24
206.202.1.0/24206.202.2.0/24
OSPFArea 1
OSPFArea 51
OSPFArea 0
.2
.1
.2
.1
.2.1
.3
.4.1
.2
.1
Loop 162.10.5.1/16
RIPRIP
.1
.2
574 510
510 574
510
510574
574 584584
ASBR router ospf 1
redistribute rip metric 500 metric-type 1
network 206.202.0.0 0.0.0.255 area 0
RIP routes redistributed with a metric (cost) of 500 plus the outgoing cost of the interface and a metric-type 1
metric-type 1Redistributing External Routes
![Page 59: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/59.jpg)
59
RouterELoop 1.10.202.206/24
RouterALoop 1.0.202.206/24
RouterBLoop 2.0.202.206/24
RouterCLoop 1.2.202.206/24
RouterDLoop 2.2.202.206
Switch
Switch
RouterFLoop 2.10.202.206/24
ASBRLoop 1.5.202.206/24
AS-Rem ote
10.0.0.0/8
192.10.10.0
/24206.202.0.0/24
192.10.5.0/24
206.202.1.0/24206.202.2.0/24
OSPFArea 1
OSPFArea 51
OSPFArea 0
.2
.1
.2
.1
.2.1
.3
.4.1
.2
.1
Loop 162.10.5.1/16
RIPRIP
.1
.2
500
500
500
500500
500 500ASBR router ospf 1
redistribute rip metric 500 metric-type 2
network 206.202.0.0 0.0.0.255 area 0
RIP routes redistributed with a metric (cost) of 500 and a metric-type 2 (default)
metric-type 2
Redistributing External Routes
![Page 60: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/60.jpg)
60
So when should you redistribute a Type-1 (E1) External route?
If there is more than one ABR for the area and the area is not a stub or totally stubby area.– In this case one of the ABRs may provide a shorter
path for certain non-area 0 internal routers, than other ABRs.
– E1 routes will include all internal costs from the internal router to the ABR and to the ASBR, allowing each router to choose which ABR provides the shorter path.
Multiple ASBRs redistributing the same networks.– In this case the routers’ cost to each ASBR can be
used to choose the shortest path to the destination.
Redistributing External Routes
![Page 61: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/61.jpg)
61
Know your outputs
show ip route show ip ospf show ip ospf neighbor show ip ospf border-router show ip database show ip interface
![Page 62: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/62.jpg)
62
show ip route
Internal#show ip routeCodes: C - connected, S - static, I - IGRP, 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, E - EGP <text omitted> Gateway of last resort is not set 172.16.0.0/16 is variably subnetted, 4 subnets, 3 masksO IA 172.16.51.1/32 [110/783] via 172.16.10.5, 00:13:48, Serial0C 172.16.20.0/24 is directly connected, FastEthernet0C 172.16.10.4/30 is directly connected, Serial0O IA 172.16.1.0/24 [110/782] via 172.16.10.5, 00:13:53, Serial0 192.168.4.0/32 is subnetted, 1 subnetsC 192.168.4.1 is directly connected, Loopback0O E2 11.0.0.0/8 [110/20] via 172.16.10.5, 00:14:41, Serial0O E2 12.0.0.0/8 [110/20] via 172.16.10.5, 00:14:41, Serial0O E2 13.0.0.0/8 [110/20] via 172.16.10.5, 00:14:42, Serial0Internal# LSA 1 and LSA 2: Denoted by “O” or “C” LSA 3: Denoted by “IA” LSA 5: Denoted by “E1” or “E2” (default)
![Page 63: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/63.jpg)
63
show ip ospfABR-2#show ip ospf Routing Process "ospf 1" with ID 192.168.3.1 Supports only single TOS(TOS0) routes It is an area border router SPF schedule delay 5 secs, Hold time between two SPFs 10 secs Minimum LSA interval 5 secs. Minimum LSA arrival 1 secs Number of external LSA 3. Checksum Sum 0x97E3 Number of DCbitless external LSA 0 Number of DoNotAge external LSA 0 Number of areas in this router is 2. 2 normal 0 stub 0 nssa External flood list length 0 Area BACKBONE(0)
Number of interfaces in this area is 1 Area has no authentication SPF algorithm executed 8 times <text omitted>
Area 1 Number of interfaces in this area is 1 Area has no authentication
SPF algorithm executed 5 times <text omitted>
![Page 64: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/64.jpg)
64
show ip ospf neighbor
Displays a list of neighbors and their link state status
ASBR#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
192.168.3.1 100 FULL/BDR 00:00:37 172.16.1.3 FastEthernet0/0
192.168.2.1 200 FULL/DR 00:00:33 172.16.1.2 FastEthernet0/0
![Page 65: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/65.jpg)
65
show ip ospf border-router To display the internal OSPF routing table entries to an Area Border Router (ABR)
and Autonomous System Boundary Router (ASBR), use the show ip ospf border-routers privileged EXEC command.
LSA 4’s (routes to ASBRs) are not installed in the main IP routing table but in the special internal OSPF routing table.
ABR-1#show ip ospf border
OSPF Process 1 internal Routing Table
Codes: i - Intra-area route, I - Inter-area route
i 192.168.1.1 [1] via 172.16.1.1, FastEthernet0/0, ASBR, Area 0, SPF 38
i 192.168.3.1 [1] via 172.16.1.3, FastEthernet0/0, ABR, Area 0, SPF 38
ABR-1#
This command will displays any ABRs in the area or any ASBRs in the OSPF routing domain. Destination - Router ID of the destination. Next Hop - Next hop toward the destination. Cost - Cost of using this route. Type - The router type of the destination; it is either an ABR or ASBR or both. Rte Type - The type of this route; it is either an intra-area or interarea route. Area - The area ID of the area from which this route is learned. SPF No - The internal number of the shortest path first (SPF) calculation that installs this route.
![Page 66: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/66.jpg)
66
show ip ospf database Displays a summary of the topological, link-state databaseInternal#show ip ospf data
OSPF Router with ID (192.168.4.1) (Process ID 1)
Router Link States (Area 1)
Link ID ADV Router Age Seq# Checksum Link count
192.168.3.1 192.168.3.1 898 0x80000003 0xCE56 2
192.168.4.1 192.168.4.1 937 0x80000003 0xFD44 3
Summary Net Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
172.16.1.0 192.168.3.1 848 0x80000005 0xD339
172.16.51.1 192.168.3.1 843 0x80000001 0xB329
Summary ASB Link States (Area 1)
Link ID ADV Router Age Seq# Checksum
192.168.1.1 192.168.3.1 912 0x80000003 0x93CC
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
11.0.0.0 192.168.1.1 1302 0x80000001 0x3FEA 0
12.0.0.0 192.168.1.1 1303 0x80000001 0x32F6 0
13.0.0.0 192.168.1.1 1303 0x80000001 0x2503 0
![Page 67: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/67.jpg)
67
Router Link States (LSA 1) Router Link States (LSA1’s) should display all the RouterIDs of routers in that area, including
its own. Link State ID is always the same as the Advertising Router. ADV Router is the Router ID of the router that created this LSA 1. Net Link States (LSA 2) Net Link States (LSA2’s) should display the RouterIDs of the DRs on all multi-access
networks in the area and their IP addresses. Link ID is the IP address of DR on MultiAccess Network. ADV Router is the Router ID of the DR. Summary Link States (LSA 3) Should see networks in other areas and the ABR advertising that route. Link ID is the IP network addresses of networks in other areas. ADV Router is the ABR Router ID sending the LSA-3. Summary ASB Link States (LSA 4) Routers in non-area 0, should see Router ID of ASBR and its ABR to get there. Link ID is the Router ID of ASBR ADV Router is the Router ID of the ABR advertising route Type-5 AS External Link States (LSA 5) All Routers should see External networks and the Router ID of ASBR to get there Link ID is the External Network ADV Router is the Router ID of ASBR advertising the LSA 5.
![Page 68: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/68.jpg)
68
show ip ospf interface
Displays OSPF information regarding a specific interface or interfaces
(next slide)
![Page 69: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/69.jpg)
69
SanJose3#show ip ospf interface fa 0FastEthernet0 is up, line protocol is up Internet Address 192.168.1.3/24, Area 0 Process ID 1, Router ID 192.168.31.33, Network Type BROADCAST,
Cost: 1 Transmit Delay is 1 sec, State DR, Priority 1 Designated Router (ID) 192.168.31.33, Interface address
192.168.1.3 Backup Designated router (ID) 192.168.31.22, Interface address
192.168.1.2 Timer intervals configured, Hello 10, Dead 40, Wait 40,
Retransmit 5 Hello due in 00:00:08 Index 1/1, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 1, maximum is 2 Last flood scan time is 0 msec, maximum is 0 msec Neighbor Count is 2, Adjacent neighbor count is 2 Adjacent with neighbor 192.168.31.11 Adjacent with neighbor 192.168.31.22 (Backup Designated
Router) Suppress hello for 0 neighbor(s)SanJose3#
Do you know these?
![Page 70: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/70.jpg)
70
OSPF Extra’s, FAQs, and FYIs
The following sections contain information to help you understand OSPF.
This information is not necessarily on the CCNP Advanced Routing Exam.
![Page 71: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/71.jpg)
71
OSPF Hello traffic can keep an ISDN link up indefinitely. By entering the command “ip ospf demand-circuit” on one side
of a BRI, adjacencies will be formed and:– Ongoing OSPF Hellos will be suppressed– The DNA (Do-Not-Age) bit is set in the LSA so that this entry
is not aged in the router’s LSDB.• LSA is not flooded when reaching LSRefresh• LSA is not flooded if there is a new version but the
contents are the same
show ip ospf interface bri 0 “Run as demand circuit” “(Hello Suppressed)”
show ip ospf neighbor Dead Time: “-”
Extra: OSPF over ISDN
![Page 72: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/72.jpg)
72
Extra: OSPF over ISDN
Note: You need to configure the demand circuit at one end of the link only. However, if you configure this command on both ends it does not cause any harm.
Suggestion: To reduce the affect of link flaps on the demand circuit, configure the area that contains the demand circuit as totally stub.
In this case configure Area 1 to be a totally stubby area. Summarizing routes on Router 1 can also help if the flapping
link is within the summarized range.
Router1
interface BRI1/1
ip address 192.158.254.13 {/30}
ip ospf demand-circuit
router ospf 20
network 192.158.254.0 0.0.0.255 area 0
Router2
interface BRI1/0
ip address 192.158.254.14 {/30}
router ospf 20
network 192.158.254.0 0.0.0.255 area 0
![Page 73: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/73.jpg)
73
Extra: OSPF and Load Balancing
OSPF only supports equal-cost load balancing. By default, four equally good routes to the same destination are
kept in the routing table for load balancing. This can be increased up to six with the maximum-paths
command. The bandwidth and/or ip ospf cost (or in the case of serial links
[1.544 Mbps] the lack of) commands can be used to make unequal-cost links look like equal-cost links to OSPF for load balancing.– This should be done with caution, as it may burden slower
links and/or not make efficient use of faster links.
![Page 74: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/74.jpg)
74
Extra: OSPF and DNS Lookups Loopback interfaces simplify the management and
troubleshooting of OSPF routing domains by providing predictable Router Ids.
This can be taken one step further by recording the Router Ids in a Domain Name Service (DNS) database.
The router can then be configured to consult the server address-to-name mappings, or Reverse DNS lookups, and then display the routers by name instead of by Router ID.
![Page 75: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/75.jpg)
75
For example:ASBR#show ip ospf data OSPF Router with ID (192.168.1.1) (Process ID 1)
Router Link States (Area 0) Link ID ADV Router Age Seq# Checksum Link
count172.16.10.5 ABR-1 412 0x8000000F 0x6F9C 1192.168.1.1 ABR-2 201 0x80000012 0x8D3D 1192.168.2.1 ABR-2 205 0x80000016 0x7E46 1192.168.3.1 ABR-2 205 0x80000005 0x9C36 1
ASBR was configured to perform DNS lookups as follows: ip name-server 172.16.1.100 ip ospf name-lookup
The first command specifies the DNS server. The second command enables the OSPF process to perform DNS
lookups. This can also be used for identifying router interfaces such as ABR-1
and ABR-2
Extra: OSPF and DNS Lookups
![Page 76: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/76.jpg)
76
Extra: IOS 12.01(T) – router-id
router-id To use a fixed router ID, use the router-id router
configuration command. To force OSPF to use the previous OSPF router ID
behavior, use the no form of this command. Takes precedence over Loopback address
router ospf 1
router-id ip-address
![Page 77: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/77.jpg)
77
OSPF and Redistribution (later) “Before Cisco IOS Software Release 12.1.3, when redistributing
connected routes into OSPF, connected networks included in the network statements under router OSPF advertised in Type-1, Type-2, or Type-3 link-state advertisements (LSAs) were also announced in Type-5 LSAs.”
In other words, if you are using the redistributed connected command, any connected networks included using the OSPF network command, were not only advertised as normal using LSA Type 1, 2, or 3, but also as an external LSA Type-5.
“Memory is required to store those Type-5 LSAs. The storage also requires a CPU to process the LSAs during full or partial Shortest Path First (SPF) runs and to flood them when some instability occurs.”
“In Cisco IOS Software Release 12.1(3) and later, the Type-5 LSAs are no longer created for connected networks included in the network statements under router OSPF.”
Redistributing Connected Networks into OSPF http://www.cisco.com/warp/public/104/redist-conn.html
![Page 78: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/78.jpg)
78
OSPF FAQs and FYIs
Q: Why are loopbacks advertised as /32 host routes in OSPF?
A: Loopbacks are considered host routes in OSPF, and they're advertised as /32. For more information, see section 9.1 of RFC 2328. In Cisco IOS ® version 11.3T and 12.0, if the ip ospf network point-to-point command is configured under loopbacks, then OSPF advertises the loopback subnet as the actual subnet configured on loopbacks.
http://www.cisco.com/warp/public/104/9.html
Q: Can a virtual link cross more than one area.
A: No.
![Page 79: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/79.jpg)
79
OSPF FAQs and FYIsQ: What happens within OSPF if there is more than one route to a
destination? What is the preference of OSPF in choosing a best route?
A: Here is the OSPF preference rules: Intra-area routes area always most preferred. Inter-area routes are preferred over AS or NSSA external routes. AS-external routes and NSSA-external routes are of equal
preference. Within these routes, preferences are as follows:– External Type-1 routes are always preferred
• If equal, route-metric (cost) is the tie-breaker– External Type-2 routes
• If equal, route metric and distance to the originating router are used as tie-breakers.
– If still a tie (Type-1 or Type-2), AS-external (LSA 5) routes are preferred over NSSA external (LSA 7) routes.
If these rules do not solve the tie, routes are installed as parallel routes.
![Page 80: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/80.jpg)
80
OSPF FAQs and FYIs
OSPF Packet Pacing Introduced in Cisco IOS 11.3 Helps avoid packet drops at the receiving side, caused by
uncontrolled bursts of link-state updates. The receiving router may not be able to queue and process all of
the packets so some packets are dropped. To make matters worse, when the sending router does not
receive LSAcks for all of the LSAs sent, so retransmits along with other LSAs needed to be sent.
Currently Cisco IOS Packet Pacing, every 33 milliseconds (non-configurable) the router builds a link-state update and sends it to its neighbors.
The next group of LSAs is transmitted after another 33 milliseconds.
This speeds up convergence and decreases the length of the transition period.
![Page 81: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/81.jpg)
81
OSPF FAQs and FYIsOSPF Group Pacing Introduced in Cisco IOS 11.3 Every LSA is aged whiled stored in the LSDB. ALL LSAs are aged independently of one another. When an LSA reaches LSRefreshTime (30 minutes) the router
that originated the it floods the LSA. When an LSA reaches MaxAge (60 minutes) the router floods the
LSA, even if it did not originate the LSA. If a router has a lot of LSAs, maintaining a separate timer can be
expensive. With Cisco OSPF Group Pacing, LSAs are collected into groups
by their ages, with ages within 4 minutes by default (can be configured).
The router maintains timers for LSA groups instead of individual LSAs.
This is used for all LSA operations including LSA aging and LSA refreshing.
![Page 82: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/82.jpg)
82
OSPF FAQs and FYIs – know this one!Cisco SPF Scheduling (Review) SPF algorithm is CPU intensive and takes some time depending
upon the size of the area (coming next week), the number of routers, the size of the link state database.
A flapping link can cause an OSPF router to keep on recomputing a new routing table, and never converge.
To minimize this problem:– SPF calculations are delayed by 5 seconds after receiving
an LSU (Link State Update)– Delay between consecutive SPF calculations is 10
seconds You can configure the delay time between when OSPF receives a
topology change and when it starts a shortest path first (SPF) calculation (spf-delay).
You can also configure the hold time between two consecutive SPF calculations (spf-holdtime).
Router(config-router)#timers spf spf-delay spf-holdtime
![Page 83: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/83.jpg)
83
OSPF Design Issues
Number of Routers per Area Number of Neighbors Number of Areas per ABR Full Mesh vs. Partial Mesh Memory Issues
![Page 84: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/84.jpg)
84
OSPF Design Issues - FYI The following information is taken from Cisco CCO. http://www.cisco.com/warp/public/104/3.html The OSPF RFC (1583) did not specify any guidelines for the
number of routers in an area or number the of neighbors per segment or what is the best way to architect a network.
Different people have different approaches to designing OSPF networks.
The important thing to remember is that any protocol can fail under pressure.
The idea is not to challenge the protocol but rather to work with it in order to get the best behavior.
The following are a list of things to consider. – Number of Routers per Area
– Number of Neighbors
– Number of Areas per ABR
– Full Mesh vs. Partial Mesh
– Memory Issues
![Page 85: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/85.jpg)
85
OSPF Design Issues Number of Routers per Area
The maximum number of routers per area depends on several factors, including the following:
What kind of area do you have? What kind of CPU power do you have in that area? What kind of media? Will you be running OSPF in NBMA mode? Is your NBMA network meshed? Do you have a lot of external LSAs in the network? Are other areas well summarized? For this reason, it's difficult to specify a maximum number of
routers per area.
![Page 86: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/86.jpg)
86
OSPF Design Issues Number of Neighbors The number of routers connected to the same LAN is also
important. Each LAN has a DR and BDR that build adjacencies with all
other routers. The fewer neighbors that exist on the LAN, the smaller the
number of adjacencies a DR or BDR have to build. That depends on how much power your router has. You could
always change the OSPF priority to select your DR. Also if possible, try to avoid having the same router be the DR
on more than one segment. If DR selection is based on the highest RID, then one router
could accidentally become a DR over all segments it is connected to.
This router would be doing extra effort while other routers are idle.
![Page 87: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/87.jpg)
87
OSPF Design Issues Number of Areas per ABR ABRs will keep a copy of the database for all areas they service. If a router is connected to five areas for example, it will have to keep a
list of five different databases. The number of areas per ABR is a number that is dependent on many
factors, including type of area (normal, stub, NSSA), ABR CPU power, number of routes per area, and number of external routes per area.
For this reason, a specific number of areas per ABR cannot be recommended.
Of course, it's better not to overload an ABR when you can always spread the areas over other routers.
The following diagram shows the difference between one ABR holding five different databases (including area 0) and two ABRs holding three databases each.
Again, these are just guidelines, the more areas you configure per ABR the lower performance you get. In some cases, the lower performance can be tolerated.
![Page 88: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/88.jpg)
88
OSPF Design Issues Full Mesh vs. Partial Mesh Non Broadcast Multi-Access (NBMA) clouds such as Frame
Relay or X.25, are always a challenge. The combination of low bandwidth and too many link-states is a
recipe for problems. A partial mesh topology has proven to behave much better than
a full mesh. A carefully laid out point-to-point or point-to-multipoint network
works much better than multipoint networks that have to deal with DR issues.
![Page 89: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/89.jpg)
89
OSPF Design Issues Memory Issues It is not easy to figure out the memory needed for a particular OSPF configuration.
Memory issues usually come up when too many external routes are injected in the OSPF domain. A backbone area with 40 routers and a default route to the outside world would have less memory issues compared with a backbone area with 4 routers and 33,000 external routes injected into OSPF.
Memory could also be conserved by using a good OSPF design. Summarization at the area border routers and use of stub areas could further minimize the number of routes exchanged.
The total memory used by OSPF is the sum of the memory used in the routing table (show ip route summary) and the memory used in the link-state database. The following numbers are a rule of thumb estimate. Each entry in the routing table will consume between approximately 200 and 280 bytes plus 44 bytes per extra path. Each LSA will consume a 100 byte overhead plus the size of the actual link state advertisement, possibly another 60 to 100 bytes (for router links, this depends on the number of interfaces on the router). This should be added to memory used by other processes and by the IOS itself. If you really want to know the exact number, you can do a show memory with and without OSPF being turned on. The difference in the processor memory used would be the answer (keep a backup copy of the configs).
Normally, a routing table with less than 500K bytes could be accommodated with 2 to 4 MB RAM; Large networks with greater than 500K may need 8 to 16 MB, or 32 to 64 MB if full routes are injected from the Internet.
![Page 90: 1 CCNP – Advanced Routing Ch. 6 OSPF - Multi-areas (Part II) Ch. 6 OSPF - Multi-areas (Part II) This presentation was created by Rick Graziani. Some modifications](https://reader036.vdocuments.site/reader036/viewer/2022062309/56649ee45503460f94bf39d3/html5/thumbnails/90.jpg)
90
Whew!