Multi-Area OSPF Configuration on Cisco Routers

M. Ichsanul Fadhil•November 21, 2026•7 min read

Build an enterprise Multi-Area OSPF network connecting Area 0 backbone with Area 1 and Area 3 to control routing table size.

multi-area-ospf.simneta
Topology Preview

The Open Shortest Path First (OSPF) protocol is renowned for rapid network convergence. Because OSPF is a link-state routing protocol, every router builds a complete, identical map of the entire network topology inside its Link-State Database (LSDB).

However, when an enterprise network expands to hundreds of routers across dozens of branches within a single area (Single-Area OSPF), this shared database design hits a severe hardware ceiling. Every time an unstable cable flaps in a remote branch, that router floods Link-State Advertisements (LSAs) across the entire enterprise.

Every router across the company is forced to stop and recalculate the complex Dijkstra Shortest Path First (SPF) algorithm. In large single-area networks, continuous SPF recalculations drive router CPUs to 100%, deplete system memory, and cause transient packet drops. To solve this scalability crisis, enterprise networks implement Multi-Area OSPF.

Hierarchical OSPF Area Zoning and LSA Flood Containment

Figure 1. Hierarchical Area Partitioning: Isolating Dijkstra SPF Recalculations Behind Area Border Routers

The Two-Tier Architecture: Backbone Area 0 & Area Border Routers (ABRs)

Multi-Area OSPF enforces a strict two-tier hierarchical design. All non-backbone areas must connect directly to the central transit core, known as Backbone Area 0:

  • Backbone Area 0: The central distribution spine. All traffic passing between different areas must traverse Area 0 to prevent routing loops.
  • Regular Areas (Area 1 & Area 3): Leaf branches where user workstations and local departmental servers reside.
  • Area Border Routers (ABRs): Gateways like R1 and R2 that maintain separate LSDB databases for each attached area.
OSPF LSA Type Flood Boundary
LSA Type 1 & 2 (Detailed Topology) → Stopped at ABR Border
LSA Type 3 (Summary Prefixes) → Injected into Area 0 & Adjacent Areas
Routing Table Code: "O" for Intra-Area | "O IA" for Inter-Area Summaries

When a link flaps inside Area 1, only routers within Area 1 rerun the Dijkstra SPF algorithm. ABR R1 absorbs the link-state event, shielding the Area 0 backbone and Area 3 from unnecessary CPU spikes.

Multi-Area Addressing Plan & Router Roles

Our multi-area enterprise topology connects West Branch (Area 1) and East Campus (Area 3) across an Area 0 serial backbone link:

Device Interface IP Address OSPF Area & Architectural Role
R1 Serial0/0/0 192.168.12.1/30 Area 0 Backbone Link
R1 Gi0/0.5, Gi0/0.10 192.168.1.1, 192.168.0.1 Area 1 ABR Gateway
R2 Serial0/0/0 192.168.12.2/30 Area 0 Backbone Link
R2 Serial0/0/1, Gi0/0 192.168.23.1, 192.168.6.1 Area 3 ABR Gateway
R3 Serial0/0/1, Gi0/0, Gi0/1 192.168.23.2, .4.1, .5.1 Area 3 Internal Router
PC0, PC1 FastEthernet0 DHCP (VLAN 5 & 10) Area 1 User Workstations
PC2, PC3, PC4 FastEthernet0 192.168.4.10, .5.10, .6.10 Area 3 Department Workstations
Inter-Area End-to-End Packet Forwarding and Routing Code Transformation

Figure 2. Inter-Area Route Propagation: Crossing the Backbone with OSPF Summary Prefix Code O IA

Step-by-Step Hands-On OSPF Walkthrough

1

Configure ABR R1 Across Area 0 and Area 1

Enable OSPF process 1 on R1, set its unique router ID, and place the serial interface into Area 0 while assigning the branch subinterfaces into Area 1:

# Configure OSPF on ABR R1:
R1(config)# router ospf 1
R1(config-router)# router-id 1.1.1.1
R1(config-router)# network 192.168.12.0 0.0.0.3 area 0
R1(config-router)# network 192.168.0.0 0.0.0.255 area 1
R1(config-router)# network 192.168.1.0 0.0.0.255 area 1
R1(config-router)# exit
2

Configure ABR R2 Across Area 0 and Area 3

Set up R2 with router ID 2.2.2.2. Place its backbone interface into Area 0, and advertise its eastern serial and Gigabit interfaces into Area 3:

# Configure OSPF on ABR R2:
R2(config)# router ospf 1
R2(config-router)# router-id 2.2.2.2
R2(config-router)# network 192.168.12.0 0.0.0.3 area 0
R2(config-router)# network 192.168.23.0 0.0.0.3 area 3
R2(config-router)# network 192.168.6.0 0.0.0.255 area 3
R2(config-router)# exit
3

Configure Internal Router R3 within Area 3

Configure R3 entirely inside Area 3 so all its attached subnets advertise up toward ABR R2:

# Configure OSPF on internal router R3:
R3(config)# router ospf 1
R3(config-router)# router-id 3.3.3.3
R3(config-router)# network 192.168.23.0 0.0.0.3 area 3
R3(config-router)# network 192.168.4.0 0.0.0.255 area 3
R3(config-router)# network 192.168.5.0 0.0.0.255 area 3
R3(config-router)# exit
4

Verify Inter-Area Routes (O IA) & End-to-End Ping

Inspect the routing table on R3. Confirm that subnets from Area 1 appear labeled with the O IA code. Finally, verify packet transmission from PC0 across all three areas:

# Check learned inter-area routes on R3:
R3# show ip route ospf
O IA 192.168.0.0/24 [110/66] via 192.168.23.1, 00:03:12, Serial0/0/1
O IA 192.168.1.0/24 [110/66] via 192.168.23.1, 00:03:12, Serial0/0/1
O IA 192.168.12.0/30 [110/65] via 192.168.23.1, 00:03:12, Serial0/0/1
# Test inter-area ping from PC0 (Area 1) to PC2 (Area 3):
PC0> ping 192.168.4.10
Pinging 192.168.4.10 with 32 bytes of data:
Reply from 192.168.4.10: bytes=32 time<1ms TTL=125
Reply from 192.168.4.10: bytes=32 time<1ms TTL=125
Reply from 192.168.4.10: bytes=32 time<1ms TTL=125
Reply from 192.168.4.10: bytes=32 time<1ms TTL=125
Ping statistics: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)
Key Takeaways: Multi-Area OSPF Architecture
  • SPF Recalculation Isolation: Partitioning subnets into multiple areas prevents link-flapping events in branch areas from triggering Dijkstra calculations across the core.
  • Mandatory Backbone Connection: All standard non-backbone areas must physically link to Backbone Area 0 to ensure loop-free inter-area routing.
  • Area Border Router Filtering: ABRs act as firebreaks by stopping detailed LSA Type 1 and 2 flooded packets and converting them into lightweight LSA Type 3 summaries.
  • Inter-Area Route Labeling: Routes learned across area boundaries appear in Cisco routing tables designated with the O IA code.

Discussion & Community Notes

Ask questions, share configuration solutions, or discuss this practice lab.

0 Comments
Posting as Guest • 1-level replies supported