Skip to main content
Your first session is free. Claim mine
PacketMentor logo
Open menu
Home
Training
CCNA Library (74)
Browse all CCNA topics →
Network (13)
Device Operations (5)
Network Access (12)
Wireless (6)
IP Connectivity (10)
IP Services (11)
Security (10)
Automation (7)
CCNP Library (15)
LabsPricing
Contact 📞 +1 (860) 556-3010 Book a Call
← All topics
IP Connectivity Intermediate

OSPF Multi-Area

Why a single OSPF area stops working past ~50 routers, and how multi-area design fixes it. Covers ABRs, ASBRs, area 0 backbone rules, LSA types, and the area design decisions that scale OSPF to thousands of routers.

TL;DR
  • Single-area OSPF runs SPF over the entire network — every router stores every link. Doesn't scale.
  • Multi-area divides the network into smaller areas. Each area has its own link-state DB. Routes between areas summarized at ABRs.
  • Area 0 is the backbone. Every other area must touch it (directly or via virtual link). This is mandatory.

Mental model

Single-area OSPF (covered in OSPF Single-Area) works beautifully for small networks. Every router knows about every link. SPF runs on the full topology.

For 5 routers, that’s trivial. For 500 routers, it’s painful:

  • Memory: every router stores every link-state advertisement (LSA) for the whole network.
  • CPU: any topology change anywhere triggers SPF recalculation everywhere.
  • Convergence: a single flap somewhere causes a global re-SPF.

Multi-area OSPF fixes this by splitting the network into areas. Each area maintains its own link-state database. Routes between areas are summarized at the boundaries. A flap in Area 3 only triggers SPF inside Area 3 — Area 0 and other areas just see the summary update.

That’s the whole concept. The rest is the rules.

The rules of multi-area design

Rule 1 — Every non-backbone area must touch Area 0

Area 0 is the backbone. Every other area (1, 2, 3, …) must have at least one router (ABR) directly connected to area 0. No exceptions.

If two areas need to communicate, they do so through area 0. There’s no shortcut between Area 1 and Area 2 — packets go Area 1 → ABR → Area 0 → ABR → Area 2.

Rule 2 — Area 0 must be contiguous

You can’t split area 0 into disconnected pieces. If a router fails and disconnects part of area 0, the network has a backbone partition — a serious problem.

Virtual link is the (last-resort) workaround: a logical tunnel through a non-backbone area that lets two area-0 chunks talk. Use only to fix a temporary backbone gap; never as a design choice.

Rule 3 — Router roles

Every OSPF router has a role:

RoleWhat it is
InternalAll interfaces in one area
ABR (Area Border Router)Interfaces in area 0 + at least one other area
BackboneHas at least one interface in area 0
ASBR (Autonomous System Boundary Router)Redistributes routes from another protocol (OSPF ↔ BGP, OSPF ↔ static, etc.)

A single router can be both ABR and ASBR (touches area 0, touches non-area-0, and redistributes from another protocol).

LSA types — what each router sees

OSPF traffic between areas is summarized using different LSA types. For CCNA, know these:

LSA TypeNameOriginScope
1Router LSAEvery routerWithin its own area
2Network LSADR on multi-access networkWithin the area
3Summary LSAABRFloods between areas (summary of another area’s routes)
4Summary ASBR LSAABRLocates an ASBR in another area
5External LSAASBRRoutes redistributed from outside OSPF

The big-picture concept: inside an area, you see Types 1 + 2 (the actual topology). Between areas, ABRs translate that to Type 3 summaries — so internal routers in your area learn “prefix X is reachable, AD distance Y, exit via ABR Z” without seeing the actual topology of the other area.

Area types — choosing the right one

OSPF supports several special area types, each restricting which LSAs flow in. Less LSA = less memory + CPU on the area’s routers.

Area typeAllowed LSAs
Normal areaTypes 1, 2, 3, 4, 5
Stub areaTypes 1, 2, 3 (blocks 4, 5 — no external routes; ABR injects a default)
Totally StubbyTypes 1, 2 + a single default route (blocks 3, 4, 5) — Cisco-proprietary
NSSA (Not-So-Stubby)Stub + allows redistribution via Type 7 LSAs inside the area
Totally NSSANSSA + blocks Type 3 (Cisco-proprietary)

For CCNA: know Normal, Stub, Totally Stubby, and NSSA exist. Memorize the LSA types each blocks.

Commands

Add a second area

! On the ABR — interfaces in area 0 + area 1
R-ABR(config)# router ospf 1
R-ABR(config-router)# router-id 1.1.1.1
R-ABR(config-router)# network 10.0.0.0 0.0.0.255 area 0       ! backbone-side
R-ABR(config-router)# network 192.168.1.0 0.0.0.255 area 1    ! area 1 side

Configure a stub area

! On EVERY router in the stub area (including the ABR)
R-ABR(config-router)# area 1 stub

! Totally stubby — only on the ABR
R-ABR(config-router)# area 1 stub no-summary

Verify

R1# show ip ospf neighbor
R1# show ip ospf database
R1# show ip ospf database summary           ! Type 3 LSAs
R1# show ip ospf border-routers              ! ABRs / ASBRs in the network
R1# show ip route ospf                       ! routes learned via OSPF (with O, O IA, O E1, O E2 markers)

The route-table markers tell you how a route was learned:

  • O — Intra-area (same area)
  • O IA — Inter-area (different area, learned via Type 3)
  • O E1 / O E2 — External (Type 5, redistributed)
  • O N1 / O N2 — NSSA external (Type 7)

Common mistakes

  1. Forgetting area 0. A two-area design where the second area is “just connected somewhere” → traffic doesn’t flow between areas because area 0 isn’t between them.

  2. Disconnected area 0. Don’t design this on purpose. If you find yourself there, virtual link is the patch — but redesign.

  3. Stub area with a redistributing ASBR. Stub blocks external routes (Type 5). If you need to redistribute from BGP inside that area, use NSSA instead.

  4. Mismatched stub config. Every router in a stub area must agree it’s stub. If R1 thinks area 1 is stub and R2 thinks area 1 is normal, they won’t form an adjacency.

  5. Treating area number = priority. Area numbers are identifiers, not priorities. Area 5 isn’t worse than Area 1. The only special area is 0.

  6. Using area 0 as a non-backbone area. Area 0 must be the backbone. You can’t “rename” it. If you’ve grown beyond your original area design, restructure rather than redefining area 0.

  7. Forgetting Type 7 → Type 5 conversion at the ABR. NSSA Type 7 LSAs only live inside the NSSA area. The ABR converts them to Type 5 when sending into area 0. Misunderstand this and you wonder where the routes went.

Lab to try tonight

  1. Three areas: area 0 (R1, R2), area 1 (R1, R3), area 2 (R2, R4).
  2. R1 and R2 are ABRs (each in area 0 + a non-backbone area).
  3. Configure OSPF, verify all routers form adjacencies and reach FULL state with their neighbors.
  4. From R3 (area 1), traceroute to a loopback on R4 (area 2). The path should go R3 → R1 → R2 → R4 (through area 0).
  5. Run show ip ospf database summary on R3 — see the Type 3 LSAs for area 2’s networks.
  6. Make area 1 a stub: area 1 stub on R1 and R3. Verify R3 now has a default route (O*IA) instead of external routes.
  7. Bonus: redistribute a static route on R5 (in area 2) into OSPF. Verify O E2 appears in R3’s table.

Cheat strip

ConceptPlain English
Area 0Backbone. Every area must touch it.
ABRRouter with interfaces in 2+ areas. Translates between them.
ASBRRouter that redistributes from another routing source
LSA Type 1Router LSA (within area)
LSA Type 3Summary LSA from ABR (between areas)
LSA Type 5External LSA from ASBR
Stub areaBlocks external LSAs (4, 5). Default route from ABR.
Totally StubbyStub + blocks inter-area too. Just a default. Cisco-only.
NSSAStub + allows redistribution via Type 7 inside it
Virtual linkTunnel through non-backbone to fix area-0 partition. Last resort.
Master this on a real network

Want this drilled into reflex?

1:1 weekly sessions, live feedback on your labs, and US interview prep — built around the CCNP® exam blueprint. Free first session. No card on file until you decide.

Claim my free session →

One topic per email, every fortnight

VLANs, OSPF, ACLs, subnetting, automation — written like this. Unsubscribe in one click.

We respect your inbox. One email per week, max. Unsubscribe any time.

Start typing — or browse popular topics below.

↑↓ navigate open Searches topics · labs · programs · pages