CNE Lec7 Network layer - Routing_ MultiAreaOSPF
CNE Lec7 Network layer - Routing_ MultiAreaOSPF
Objectives
© 2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
OSPF Single Area - Review
• Link State Routing Protocol
• Faster Convergence
• Advertise Parameters
Hello Interval (Default 10 or 30 seconds)
Dead Interval (Default 4 x Hello)
Network Type
• (Interchangeable)
R1(config)#int s 0/0/0
R1(config-if)#ip address 192.168.10.1 255.255.255.252
R1(config)#int s 0/0/1
R1(config-if)#ip address 192.168.10.5 255.255.255.252
Command syntax:
R1(config-if)#router ospf 1
router ospf process-id
R1(config-router)#network 172.16.1.16 0.0.0.15 area 0
network network-address wildcard-mask area
R1(config-router)#network 192.168.10.0 0.0.0.3 area 0
area-id
R1(config-router)#network 192.168.10.4 0.0.0.3 area 0
Verification
R1(config)#router ospf 1
R1(config-router)#router-id 10.1.1.1
Reload or use "clear ip ospf process" command,
for this to take effect
Verification
© 2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
OSPF Issues with Large Networks
• Large LSDB
Solution:
• Divide the network into multiple OSPF
areas
• Backbone Routers
At least 1 interface in area 0
• Autonomous System
Boundary Routers (ASBR)
At least 1 interface in non-
OSPF network
© 2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
OSPF LSA Types (Revisited)
© 2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
Configuring Multiarea OSPFv2
R1 forwards a
summary LSA to
the core router
C1.
C1 in turn,
forwards the
summary LSA to
R2 and R3.
R2 and R3 then
forward it to their
respective internal
routers.
Cisco Networking Academy 38
OSPF Route Summarization
Specific to external routes that are injected into OSPF via route redistribution; ASBRs
summarize external routes
10.1.0.0.
R1
R3
Note - RIPv2 routes must also be redistributed into OSPF in this example
© 2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 50
Verifying Multiarea OSPFv2
Commands for verification:
• show ip ospf neighbor
• show ip ospf
For OSPFv3 simply
substitute ip with ipv6
• show ip ospf interface
• show ip protocols
© 2013 Cisco and/or its affiliates. All rights reserved. Cisco Public 58
Summary
Multiarea OSPF:
• Better choice for larger network than single-area
• Solves the issues of large routing tables, large link-state databases, and frequent SPF
algorithm calculations
• Main area is called the backbone area (area 0)
• A router simply becomes an ABR when it has two network statements in different areas
Cisco Networking Academy 59
Summary
Multiarea OSPF:
• Link State Advertisements (LSAs) are the building blocks of OSPF
• Type 1 LSAs are referred to as the router link entries
• Type 2 LSAs are referred to as the network link entries and are flooded by a DR
• Type 3 LSAs are referred to as the summary link entries and are created and propagated by
ABRs
• A type 4 summary LSA is generated by an ABR only when an ASBR exists within an area
• Type 5 external LSAs describe routes to networks outside the OSPF autonomous system,
originated by the ASBR and are flooded to the entire autonomous system
• OSPF routes in an IPv4 or IPv6 routing table are identified using the following descriptors:
O, O IA (OI), O E1 or O E2.
Multiarea OSPFv2:
• An example of multiarea OSPFv2 configuration:
• R1(config)#router ospf 10
• R1(config-router)#router-id 1.1.1.1
• R1(config-router)#network 10.1.1.0 0.0.0.15 area 1
• R1(config-router)#network 10.1.2.0 0.0.0.3 area 1
• R1(config-router)#network 192.168.10.1 0.0.0.0 area 0
• Does not perform auto summarization but can be manually configured using the area X
range or summary-address router configuration command
Multiarea OSPFv3:
• An example of multiarea OSPFv2 configuration:
• R1(config)#ipv6 unicast-routing
• R1(config)#ipv6 router ospf 10
• R1(config-rtr)# ipv6 router-id 1.1.1.1
• R1(config-rtr)# int fa0/0
• R1(config-if)# ipv6 ospf 10 area 0
• Does not perform auto summarization but can be manually configured using the area X
range or summary-address router configuration command
Multiarea OSPFv2:
• Commands that are used to verify OSPF configuration consist of the following:
show ip ospf neighbor
show ip ospf
show ip ospf interface
show ip protocols
show ip ospf interface brief
show ip route ospf
show ip ospf database
• Closed-book