Octet

Explain stub and totally stubby areas. What do they block and how do you configure them?

Show the answer

Say this first

A stub area blocks Type 5 externals, and so Type 4, and the ABR injects a default route as a Type 3. A totally stubby area also blocks Type 3 summaries, so internal routers only see their own area plus one default. Every router in the area needs area X stub. Only the ABR adds no-summary for totally stubby.

Go deeper

Comparison

Area typeType 3Type 4Type 5Type 7Default route
NormalYesYesYesNoOnly if originated
StubYesNoNoNoType 3 from ABR, automatic
Totally stubbyOnly the defaultNoNoNoType 3 from ABR, automatic
NSSAYesNoNoYesNot automatic on IOS
Totally NSSAOnly the defaultNoNoYesType 3 from ABR, automatic

Config

Cisco IOS
! ABR R2, area 1 totally stubby
router ospf 1
 area 1 stub no-summary
!
! Internal router R1 in area 1
router ospf 1
 area 1 stub

Rules

  • The stub flag is in every hello. Every router in the area must agree or adjacencies fail.
  • No ASBR inside a stub area. Use NSSA if you need one.
  • Area 0 can never be a stub.
  • A stub area cannot be the transit area of a virtual link.
  • area 1 default-cost 10 on the ABR changes the cost of the injected default (default 1).

Result on R1

Output
O*IA  0.0.0.0/0 [110/2] via 10.0.12.2, 00:01:05, GigabitEthernet0/0/0

Traps

  • Configuring area 1 stub on the ABR only. Internal routers then refuse the ABR's hellos.
  • Saying stub areas block Type 3. Only totally stubby does, apart from the default.
How did you do?