Upload
others
View
13
Download
0
Embed Size (px)
Citation preview
Creating Multiple OSPF Areas
Creating Multiple OSPF Areas
© 2001, Cisco Systems, Inc. 6-1
BSCI v1.2—6-2© 2001, Cisco Systems, Inc.
Issues with Maintaining a Large OSPF Network
Issues with Maintaining a Large OSPF Network
My routing table is too big, and I am running low on memory.
The SPF is running toooften for me to route.
I am only receivingLSAs, no data.
OSPF OSPF
OSPF
OSPF
OSPF
BSCI v1.2—6-3© 2001, Cisco Systems, Inc.
Area 0
Area 1 Area 2
Autonomous System
• Consists of areas and autonomous systems
• Minimizes routing update traffic
The Solution: OSPF Hierarchical RoutingThe Solution: OSPF Hierarchical Routing
BSCI v1.2—6-4© 2001, Cisco Systems, Inc.
ExternalAS
Types of OSPF Routers (cont.)Types of OSPF Routers (cont.)
InternalRouters
Area 1 Area 2Backbone Area 0
InternalRouters
BSCI v1.2—6-5© 2001, Cisco Systems, Inc.
ExternalAS
InternalRouters
Area 1 Area 2
Backbone/InternalRouters
Backbone Area 0
InternalRouters
Types of OSPF Routers (cont.)Types of OSPF Routers (cont.)
BSCI v1.2—6-6© 2001, Cisco Systems, Inc.
ExternalAS
InternalRouters
Area 1 Area 2
Backbone/InternalRouters
ABR and Backbone
Router
Backbone Area 0ABR and Backbone
Router
InternalRouters
Types of OSPF Routers (cont.)Types of OSPF Routers (cont.)
BSCI v1.2—6-7© 2001, Cisco Systems, Inc.
ExternalAS
InternalRouters
Backbone/InternalRouters
ABR and Backbone
Router
ABR and Backbone
Router
InternalRouters
ASBR andBackbone
Router
Area 1 Area 2Backbone Area 0
Types of OSPF Routers (cont.)Types of OSPF Routers (cont.)
BSCI v1.2—6-8© 2001, Cisco Systems, Inc.
LSAs in OSPF DatabaseLSAs in OSPF Database
Router
Area 1 Area 0
Network
Summary
External
ABR
DR
p1r3#show ip ospf databaseOSPF Router with ID (10.64.0.1) (Process ID 1)
Router Link States (Area 1)Link ID ADV Router Age Seq# Checksum Link count10.1.2.1 10.1.2.1 651 0x80000005 0xD482 4
Net Link States (Area 1)Link ID ADV Router Age Seq# Checksum10.64.0.1 10.64.0.1 538 0x80000002 0xAD9A
Summary Net Link States (Area 1)Link ID ADV Router Age Seq# Checksum10.2.1.0 10.2.1.2 439 0x80000002 0xE6F8
ASBR ExternalAS
BSCI v1.2—6-9© 2001, Cisco Systems, Inc.
Area 0
10R4
R 3’s Cost to:AS1 (E1) via R1 = 1795AS1 (E1) via R3 = 1785
10
1785
1785
E1
Calculating Costs for Summary and AS External Routes
Calculating Costs for Summary and AS External Routes
R1
E1
AS1
R3
BSCI v1.2—6-10© 2001, Cisco Systems, Inc.
Area 1
10
R 3’s Cost to:AS1 (E1) via R1 = 1795AS1 (E1) via R3 = 1785
R 5’s Cost to:AS1 (E1) via R1 = 1815AS1 (E1) via R3 = 1805
E1
Area 0
10 10
1785
1785
E1
E1
AS1
Calculating Costs for Summary and AS External Routes (cont.)Calculating Costs for Summary and AS External Routes (cont.)
R4 R1R3R5
BSCI v1.2—6-11© 2001, Cisco Systems, Inc.
Types of AreasTypes of Areas
BSCI v1.2—6-12© 2001, Cisco Systems, Inc.
Types of Areas (cont.)Types of Areas (cont.)
Interconnectsareas;
accepts all LSAs.
Backbone Area 0
BSCI v1.2—6-13© 2001, Cisco Systems, Inc.
Stub Area
Does not acceptexternal LSAs.
Interconnectsareas;
accepts all LSAs.
Backbone Area 0
Types of Areas (cont.)Types of Areas (cont.)
BSCI v1.2—6-14© 2001, Cisco Systems, Inc.
Totally StubbyArea
Does not acceptexternal or summary LSAs.
Stub Area
Does not acceptexternal LSAs.
Backbone Area 0
Interconnectsareas;
accepts all LSAs.
Types of Areas (cont.)Types of Areas (cont.)
OSPF Operation Across Multiple Areas
OSPF Operation Across Multiple Areas
© 2001, Cisco Systems, Inc. 6-15
BSCI v1.2—6-16© 2001, Cisco Systems, Inc.
Forwarding Packets in a Multiarea Network
Forwarding Packets in a Multiarea Network
BBone
Internal InternalABR2ABR1
Area 50
Data
To ABR1 To Backbone To ABR2
To DestinationNetwork
Area 1 Area 0
afadjfjorqpoeru39547439070713
BSCI v1.2—6-17© 2001, Cisco Systems, Inc.
Flooding LSUs to Multiple Areas (cont.)
Flooding LSUs to Multiple Areas (cont.)
Type 1
afadjfjorqpoeru39547439070713
Area 1 Area 0
Area 50 Stub
BBone
Internal InternalABR2ABR1
BSCI v1.2—6-18© 2001, Cisco Systems, Inc.
Type 3Type 1
afadjfjorqpoeru39547439070713
afadjfjorqpoeru39547439070713
Type 3
afadjfjorqpoeru39547439070713
Area 1 Area 0
Area 50 Stub
Flooding LSUs to Multiple Areas (cont.)
Flooding LSUs to Multiple Areas (cont.)
BBone
Internal InternalABR2ABR1
BSCI v1.2—6-19© 2001, Cisco Systems, Inc.
Type 5
afadjfjorqpoeru
39547439070713
Type 5 Default
Area 1 Area 0
Area 50 StubRIP
Type 3 Type 3Type 1
afadjfjorqpoeru39547439070713
afadjfjorqpoeru39547439070713
afadjfjorqpoeru39547439070713
afadjfjorqpoeru39547439070713 afadjfjorqpoeru
39547439070713
Flooding LSUs to Multiple Areas (cont.)
Flooding LSUs to Multiple Areas (cont.)
BBone
Internal InternalABR2ABR1
BSCI v1.2—6-20© 2001, Cisco Systems, Inc.
Flooding LSUs to Multiple Areas (cont.)
Flooding LSUs to Multiple Areas (cont.)
Routing Table
InterareaRoutes
Intra-Area Routes
External (Non-OSPF Routes)
Area 1
Area 1 Area 0
Area 1 RIP
Using and Configuring OSPF Multiarea Components
Using and Configuring OSPF Multiarea Components
© 2001, Cisco Systems, Inc. 6-21
BSCI v1.2—6-22© 2001, Cisco Systems, Inc.
Configuring OSPF ABRsConfiguring OSPF ABRs
E010.64.0.1
10.64.0.2E0
S010.2.1.2
10. 2.1.1
S1A B C
ABR
<Output Omitted>interface Ethernet0ip address 10.64.0.1 255.255.255.0
!<Output Omitted>router ospf 77
network 10.0.0.0 0.255.255.255 area 0
Area 1Area 0
<Output Omitted>
interface Ethernet0ip address 10.64.0.2 255.255.255.0
!interface Serial0ip address 10.2.1.2 255.255.255.0
<Output Omitted>router ospf 50network 10.2.1.2 0.0.0.0 area 1network 10.64.0.2 0.0.0.0 area 0
BSCI v1.2—6-23© 2001, Cisco Systems, Inc.
Default
Default
Summary
Default
Using Stub and Totally Stubby Areas
Using Stub and Totally Stubby Areas
Area 1—Totally StubbyArea 0
InternalABR2ABR1
Area 50—Stub
Summary
External External
InternalNon-Cisco
Router
BBone
Summary
RIP
ASBR
afadjfjorqpoeru39547439070713
afadjfjorqpoeru39547439070713
afadjfjorqpoeru39547439070713
afadjfjorqpoeru39547439070713
afadjfjorqpoeru39547439070713
afadjfjorqpoeru39547439070713
afadjfjorqpoeru39547439070713
afadjfjorqpoeru39547439070713
BSCI v1.2—6-24© 2001, Cisco Systems, Inc.
• Typically a single exit point into area; if multiple exit points, suboptimal paths may be selected
• An ASBR cannot be internal to stub
• Area is not the backbone Area 0
• Virtual links are not allowed
Stub and Totally Stubby Area Restrictions
Stub and Totally Stubby Area Restrictions
Single Exit Point
Area 20.0.0.0
R3R4
ExternalAS
XX
BSCI v1.2—6-25© 2001, Cisco Systems, Inc.
• Creates a stub area
• Specifies cost for default route sent into stub area
Router(config-router)#
area area-id stub [no-summary]
Router(config-router)#
area area-id default-cost cost
Configuring Stub and Totally Stubby Areas
Configuring Stub and Totally Stubby Areas
BSCI v1.2—6-26© 2001, Cisco Systems, Inc.
OSPF Stub Area Configuration Example
OSPF Stub Area Configuration Example
192.168.15.2
Area 0
Stub Area 2
192.168.14.1 192.168.15.1S0
S0E0
R3#
interface Ethernet 0ip address 192.168.14.1 255.255.255.0interface Serial 0 ip address 192.168.15.1 255.255.255.252
router ospf 100network 192.168.14.0 0.0.0.255 area 0network 192.168.15.0 0.0.0.255 area 2area 2 stub
R4#
interface Serial 0 ip address 192.168.15.2 255.255.255.252
router ospf 15network 192.168.15.0 0.0.0.255 area 2area 2 stub
ExternalAS
R4
R3
BSCI v1.2—6-27© 2001, Cisco Systems, Inc.
R4#
router ospf 15network 192.168.15.0 0.0.0.255 area 2area 2 stub
OSPF Totally Stubby Configuration ExampleOSPF Totally Stubby
Configuration Example
R3#
router ospf 100network 192.168.14.0 0.0.0.255 area 0network 192.168.15.0 0.0.0.255 area 2area 2 stub no-summary
192.168.15.2
Area 0
192.168.14.1 192.168.15.1S0
S0E0
ExternalAS
R4
R3
Totally StubbyArea 2
BSCI v1.2—6-28© 2001, Cisco Systems, Inc.
Multiple-Area NBMA Environment
Multiple-Area NBMA Environment
Area 0
Area 1 (Stub Area)
R1
Frame Relay
BSCI v1.2—6-29© 2001, Cisco Systems, Inc.
Multiple-Area NBMA Environment (cont.)
Multiple-Area NBMA Environment (cont.)
Area 0
Area 2Area 3
Area 4
Frame Relay
Area 1
R1
BSCI v1.2—6-30© 2001, Cisco Systems, Inc.
• Minimizes number of routing table entries
• Localizes impact of a topology change
• Reduces LSAs and saves CPU
Supporting Route SummarizationSupporting Route Summarization
Area 0 Backbone
ABRs
Area 1
Summarization
xx
BSCI v1.2—6-31© 2001, Cisco Systems, Inc.
Supporting VLSMSupporting VLSM
• OSPF carries subnet mask information
• Use hierarchical addressing scheme
BSCI v1.2—6-32© 2001, Cisco Systems, Inc.
• Interarea (IA) summary link carries mask
• One entry can represent several subnets
Using Route SummarizationUsing Route Summarization
O 172.16.8.0 255.255.252.0O 172.16.12.0 255.255.252.0O 172.16.16.0 255.255.252.0O 172.16.20.0 255.255.252.0O 172.16.24.0 255.255.252.0O 172.16.28.0 255.255.252.0
Routing Table for BLSAs Sent to Router C
IA 172.16.16.0 255.255.240.0
Area 1 Area 0ABR
Summarization
BA C
IA 172.16.8.0 255.255.248.0
BSCI v1.2—6-33© 2001, Cisco Systems, Inc.
• Consolidates interarea (IA) routes on an ABR
• Consolidates external routes, usually on an ASBR
Router(config-router)#
area area-id range address mask
Router(config-router)#
summary-address address mask [not-advertise] [tag tag]
Configuring Route SummarizationConfiguring Route Summarization
BSCI v1.2—6-34© 2001, Cisco Systems, Inc.
Route Summarization Configuration ExampleRoute Summarization
Configuration Example
R2
R2#router ospf 100network 172.16.64.1 0.0.0.0 area 2network 172.16.127.1 0.0.0.0 area 0area 0 range 172.16.96.0 255.255.224.0area 2 range 172.16.64.0 255.255.224.0
R1#router ospf 100network 172.16.32.1 0.0.0.0 area 1network 172.16.96.1 0.0.0.0 area 0area 0 range 172.16.96.0 255.255.224.0area 1 range 172.16.32.0 255.255.224.0
172.16.64.0 - 172.16.95.0255.255.255.0
Area 2
172.16.64.1
172.16.96.0 - 172.16.127.0255.255.255.0
172.16.127.1172.16.96.1
172.16.32.0 - 172.16.63.0255.255.255.0
Area 1
172.16.32.1
Interface Addresses(255.255.255.0 Mask) Interface Addresses
(255.255.255.0 Mask)
R1 R2
Area 0
Verifying OSPF Operation
Verifying OSPF Operation
© 2001, Cisco Systems, Inc. 6-35
BSCI v1.2—6-36© 2001, Cisco Systems, Inc.
show ip ospf Commandshow ip ospf Command
• Lists the ABRs and ASBRs in the autonomous system
• Displays the status of the virtual link
• Displays statistics about each area to which the router is connected
• Displays the contents of the OSPF link-state database
show ip ospf process-idRouter#
show ip ospf virtual-linksRouter#
show ip ospf databaseRouter#
show ip ospf border-routersRouter#