A branch with one exit and many routes
Area 1 is a branch: R1 and its LANs, with one link to the ABR. R1 holds every inter-area route in the company and external routes from the partner. In this single-exit design, those destinations all use R2. Reducing unnecessary detail can lower the branch's routing state. A special area type controls which external and inter-area information enters, with a default route covering the destinations it no longer lists.
On small screens, swipe sideways or focus the diagram and use the arrow keys.
An area groups OSPF interfaces sharing detailed topology. R2 is an area border router (ABR): it connects area 1 to backbone area 0. R4 connects area 2 to area 0. R5 imports partner routes learned through EIGRP, so it is an autonomous system boundary router (ASBR). The partner prefix is 10.50.0.0/16.
A default route, 0.0.0.0/0, matches when no more specific route matches the destination. It says where to send those packets; it does not prove that the border router has working Internet or partner access.
Which LSAs each area type lets in
A link-state advertisement (LSA) is a stored record used in route calculation. Types 1 and 2 describe routers and shared segments inside an area. Type 3 describes inter-area network reachability, including a stub default. Type 4 describes inter-area reachability to an ASBR. Type 5 describes external reachability in normal areas.
On small screens, swipe sideways or focus the diagram and use the arrow keys.
An NSSA (not-so-stubby area) adds type 7 records so a local ASBR can introduce external prefixes without admitting type 5 records from outside. Types 5 and 7 have related purposes but different scope and translation rules. The table covers these basic OSPFv2 route-record types, not every OSPF extension.
| Area type | Type 1, 2 | Type 3 | Type 4, 5 | Type 7 | Default route |
|---|---|---|---|---|---|
| Normal | Yes | Yes | Yes | No | Only if originated |
| Stub | Yes | Yes | Blocked | No | Type 3 from the ABR, automatic |
| Totally stubby | Yes | Blocked (except default) | Blocked | No | Type 3 from the ABR, automatic |
| NSSA | Yes | Yes | Blocked | Yes (local ASBR) | Not automatic: configure it (type 7) |
| Totally NSSA | Yes | Blocked (except default) | Blocked | Yes | Type 3 from the ABR, automatic |
Rules that apply to all of them:
- Area 0 must remain normal, not stub or NSSA.
- Neighbours must agree on normal, stub or NSSA capability. The ABR-only
no-summaryoption does not need to appear on every router. - Stub and totally stubby areas can't contain an ASBR. NSSAs exist to allow one.
- A virtual link cannot use a stub or NSSA area as its transit area.
Device key: LAN 1 (network / site) · R1, R2 (ABR), R3, R4 (ABR), R5 (ASBR) (router) · Partner (EIGRP) (network / service)
Lines show the example’s network connections. Thick links: uplinks/WAN, as labelled. Read the numbered steps for traffic direction and changes.
Reading the addresses
IP labels identify interfaces or destinations. Subnet labels identify networks; /n is the prefix length. A router ID (RID) identifies a routing process and need not be a reachable interface.
An IP address alone is not a URL. A web URL includes a scheme such as https://; an address on a router or printer does not imply a website.
- LAN 1: Subnet 172.16.1.0/24
- R1: RID 1.1.1.1
- R2 (ABR): RID 2.2.2.2
- R3: RID 3.3.3.3
- R4 (ABR): RID 4.4.4.4
- R5 (ASBR): RID 5.5.5.5
- Partner (EIGRP): Subnet 10.50.0.0/16
- 1. Stub area 1: R2 stops type 4 and 5 LSAs at the border and sends R1 a type 3 default. Totally stubby also suppresses non-default type 3 records.
- 2. NSSA area 2: R5 redistributes the partner's routes as type 7 LSAs, which only exist inside the NSSA.
- 3. R4 translates: R4 is this NSSA's translator. It creates type 5 records for eligible propagated type 7 routes, advertised by R4 into normal areas. The type 7 itself stays in area 2.
What you gain, and what detail you lose
A router in a branch with one exit makes the same forwarding decision for every outside destination, so the detailed routes may not change its next-hop choice. A stub area removes external detail; a totally stubby area also removes non-default inter-area detail. Changes to retained information and to the default can still reach the branch. NSSA was added later for branches that do have something external of their own, such as a local internet link or a partner, which a plain stub area would forbid.
On small screens, swipe sideways or focus the diagram and use the arrow keys.
Turning area 1 into a stub and area 2 into an NSSA
These are Cisco IOS/IOS XE style examples, starting in global configuration mode. The five-router network must already work, with area 0 normal and outgoing costs 1. Treat stub versus NSSA as the policy for the named area, not commands to stack on the same area. A one-sided area-type change can interrupt neighbours, so use an isolated lab for this exercise.
On small screens, swipe sideways or focus the diagram and use the arrow keys.
Stub
! R1 and R2
router ospf 1
area 1 stubOn every router in area 1, including the ABR. R2 then sends a default route into area 1 and stops type 4 and 5 LSAs.
Totally stubby
! R2 (ABR) only
router ospf 1
area 1 stub no-summaryno-summary is only needed on the ABR; R1 keeps area 1 stub. Type 3 LSAs are now blocked too, except the default.
NSSA and totally NSSA
! R4 and R5
router ospf 1
area 2 nssaOn every router in area 2. R5 can keep redistributing the partner's routes; they become type 7 LSAs, and R4 translates them to type 5.
! R4 (ABR)
router ospf 1
area 2 nssa default-information-originateOn this NSSA ABR, originate a type 7 default towards R4. A plain NSSA does not get this automatically; without another usable route, R5 cannot reach outside external destinations. Check the command's origination conditions for your platform and role.
! R4 (ABR)
router ospf 1
area 2 nssa no-summaryTotally NSSA: type 3 LSAs are blocked as well, and R4 sends a type 3 default automatically.
router ospf 1
area 1 default-cost 10R2, separate optional change: sets the type 3 stub default's advertised cost to 10. R1 adds its own link cost 1, so its route metric becomes 11. The output below retains the unchanged advertised default cost 1.
The no-summary forms shown are Cisco-style extensions. A normal NSSA default configured with default-information-originate is a type 7 external default; the automatic default with nssa no-summary is type 3. Check the route code and LSA, not just the presence of 0.0.0.0.
Spotting O*IA and N2 routes in the table
R1#show ip route ospf Gateway of last resort is 10.1.12.2 to network 0.0.0.0 O*IA 0.0.0.0/0 [110/2] via 10.1.12.2, 00:02:10, GigabitEthernet0/1 10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks O IA 10.0.23.0/30 [110/2] via 10.1.12.2, 00:02:10, GigabitEthernet0/1 O IA 10.0.34.0/30 [110/3] via 10.1.12.2, 00:02:10, GigabitEthernet0/1 O IA 10.2.45.0/30 [110/4] via 10.1.12.2, 00:02:10, GigabitEthernet0/1
O E2 10.50.0.0/16 is gone, and O*IA 0.0.0.0/0 replaces it (default cost 1 from R2 plus R1's link cost 1). As totally stubby, only the default remains for destinations outside area 1. Intra-area and directly connected routes remain as applicable.R4#show ip route ospf | include 10.50 O N2 10.50.0.0/16 [110/20] via 10.2.45.2, 00:04:41, GigabitEthernet0/1
O E2 route, from the type 5 that R4 created.R4#show ip ospf | include BACKBONE|Area 2|NSSA area|translation Area BACKBONE(0) Area 2 It is a NSSA area Perform type-7/type-5 LSA translation
show ip ospf database nssa-externalLists the type 7 LSAs inside the NSSA, created by R5.
In a design with multiple NSSA ABRs, translation is selected according to translator rules; do not assume every ABR translates every type 7. A propagated type 7 normally supplies a non-zero forwarding address that the rest of OSPF must be able to reach internally. Summarisation or filtering must preserve the reachability needed by the translated route.
On small screens, swipe sideways or focus the diagram and use the arrow keys.
Lost neighbours and missing defaults
In practice, the first symptom of a half-finished stub change is a neighbour going down the moment the ABR is changed. Configure the branch router and the ABR in the same maintenance window.
On small screens, swipe sideways or focus the diagram and use the arrow keys.
- Adjacency lost after configuring a stub. Only one router in the area was changed. The stub flag in the hellos no longer matches.
- Redistribution stopped working after the area became a stub: stub areas can't contain an ASBR. Use an NSSA.
- The NSSA has no default route. NSSAs don't get one automatically; add
default-information-originatetoarea X nssaon the ABR, or use totally NSSA. - Inter-area routes still present in a "totally stubby" area.
no-summarywas put on an internal router instead of the ABR.
Where stub and NSSA setups usually break
- Configuring the area type on the ABR only.
- Putting
no-summaryon every router; it only has an effect on the ABR. - Expecting type 7 LSAs outside the NSSA. The ABR translates them to type 5.
- Area 0 configured as a stub, which IOS doesn't allow.
Area types at a glance
- Stub: no type 4/5, automatic default. Totally stubby: also no type 3 (Cisco,
no-summaryon the ABR). - NSSA: no outside externals, but a local ASBR uses type 7, translated to type 5 by the ABR.
- NSSA default route is not automatic; totally NSSA's is.
- Every router in the area must agree on its type; area 0 can't be special.
Short lab: compare stub and totally stubby
Record R1's routes with normal area 1. Configure area 1 stub on both R1 and R2. After Full returns, R1 should retain inter-area networks, lose the partner's explicit external route and learn O*IA 0.0.0.0/0 through R2.
show ip ospf neighbor
show ip ospf database
show ip route ospfR1, privileged EXEC. Compare adjacency health, the LSA sections and installed route codes after each planned change. With unmodified cost 1 on the link and default, the default route metric is 2.
Add area 1 stub no-summary on R2 only. Confirm that non-default O IA routes disappear while the default remains. R1's connected LANs do not disappear. Restore R2 with no area 1 stub no-summary and then area 1 stub, and verify ordinary stub behaviour returns before saving. This lab leaves area 2 unchanged.
Sources: Cisco NSSA configuration; Cisco special areas and virtual links; RFC 3101 NSSA translation. Outputs are illustrative, not captures from a tested router image.
Test yourself on stub and NSSA areas
Area 1 becomes totally stubby. Which OSPF route information does R1 keep for destinations outside its area?
R5 must keep redistributing the partner's routes, but area 2 should not receive other external routes. Which area type?
You configure area 1 stub on R2 only. What happens to the R1–R2 adjacency?