Use it when a route is missing although neighbours are Full: the route's code — O, O IA, O E1/E2, O N1/N2 — tells which LSA type it comes from and therefore which router to examine.
OSPF LSA Types Reference
1. Decide which code the route should have: O, O IA or O E.
2. show ip ospf database — is the matching LSA present, and from which advertising router?
3. Missing → go to that router: originator, ABR or ASBR.
4. Present but not installed → another route source, or an unreachable ASBR or forwarding address.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ip ospf databaseVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational verification Verify boundary
show ip ospf database
show ip ospf database summary 10.20.0.0
show ip ospf database external 203.0.113.0
show ip route ospf
The database summary is grouped by type and area: "Router Link States", "Net Link States", "Summary Net Link States", "Summary ASB Link States", "Type-5 AS External Link States" and "Type-7 AS External Link States". The detailed commands show one LSA with its advertising router and metric. The routing table shows the routes that resulted, with their codes.
Known-good: the LSA for the network exists, from the expected advertising router, and the route is installed with the matching code.
Step 2 Typical faults & boundaries Narrow the fault
- An
Oroute is missing. The originating router does not have the interface in OSPF, or is not fully adjacent. - An
O IAroute is missing. The ABR does not create the type 3 LSA: no backbone connection, a filter, or a range. - An external route is missing in one area. It is a stub area — or the type 4 LSA to the ASBR is missing.
- The LSA is in the database but the route is not in the routing table. Another source with lower administrative distance has the prefix, or the forwarding address is unreachable.
- Applying OSPFv2 type numbers to OSPFv3. OSPFv3 has additional types and carries prefixes separately.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
O routes come from the originating router's own LSA; O IA from the ABR; O E from the ASBR, and need the ASBR to be reachable. Stub areas do not accept type 5. An LSA in the database does not guarantee a route in the routing table.
ReferenceWhat it is1 section · depth on demand
Mechanics & mental model
OSPF routers describe the network to each other in link-state advertisements (LSAs). There are several types, each carrying one kind of information and each flooded over a defined scope — a segment's routers, one area, or the whole OSPF domain.
ReferenceHow it works1 section · depth on demand
How it works
| Type | Name | Created by | Describes | Flooded | Route code |
|---|---|---|---|---|---|
| 1 | Router | Every router | The router's own links and their costs | Within the area | O |
| 2 | Network | The DR of a segment | The routers attached to a multi-access segment | Within the area | O |
| 3 | Summary | ABR | A network in another area | Into one area | O IA |
| 4 | ASBR Summary | ABR | The location of an ASBR in another area | Into one area | — |
| 5 | External | ASBR | A network redistributed into OSPF | All normal areas | O E1, O E2 |
| 7 | NSSA External | ASBR inside an NSSA | A redistributed network, within the NSSA | Within the NSSA | O N1, O N2 |
Types 1 and 2 are the map of an area. Every router in the area holds the same set, and runs SPF on it to find the shortest paths.
Type 3 is how one area learns about another. The ABR does not pass the map on; it advertises each network with its own cost to it. Beyond its own area, OSPF therefore behaves like a distance-vector protocol.
Type 5 is created where routes enter OSPF from elsewhere and is flooded unchanged. For routers in other areas to use it they must know how to reach the ASBR, which is what type 4 provides.
Stub areas do not accept type 5. An NSSA does not either, but lets its own ASBR originate type 7, which the ABR converts to type 5 for the rest of the network.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
LSA types 1–5 and how each is identified
RFC 2328 states that LS type, Link State ID and Advertising Router together identify an LSA uniquely. What the Link State ID means depends on the type:
| Type | Name | Originated by | Link State ID | Flooding scope |
|---|---|---|---|---|
| 1 | Router-LSA | Every router | Originating router's router ID | Area |
| 2 | Network-LSA | DR of a transit network | DR's interface IP address | Area |
| 3 | Summary-LSA (network) | ABR | Destination network | Area |
| 4 | Summary-LSA (ASBR) | ABR | Router ID of the ASBR | Area |
| 5 | AS-external-LSA | ASBR | Destination network (0.0.0.0 for the default route) | Whole AS, except stub areas |
Type 7 (NSSA external) is defined outside RFC 2328 and is translated to type 5 at the NSSA's ABR.
C9300# show ip ospf database
OSPF Router with ID (10.0.0.11) (Process ID 1)
Router Link States (Area 0)
Link ID ADV Router Age Seq# Checksum Link count
10.0.0.11 10.0.0.11 812 0x80000214 0x00A1C2 4
10.0.0.12 10.0.0.12 640 0x8000019E 0x0071E0 4
Summary Net Link States (Area 0)
Link ID ADV Router Age Seq# Checksum
10.10.0.0 10.0.0.11 1201 0x80000033 0x0028F4
Type-5 AS External Link States
Link ID ADV Router Age Seq# Checksum Tag
0.0.0.0 10.0.0.21 331 0x80000052 0x00B3A1 1
C9300# show ip ospf database router 10.0.0.12
C9300# show ip ospf database external 0.0.0.0
Using the types in troubleshooting
| Question | LSA to inspect |
|---|---|
| Which links and neighbours does router X report? | Type 1 from X |
| Which routers are on a broadcast segment? | Type 2 from the DR |
| Where does an inter-area route come from? | Type 3, advertising ABR |
| How do other areas reach an ASBR? | Type 4 |
| Which ASBR injects an external route, with which metric type? | Type 5 (or 7 in an NSSA) |
Types 1–4 stay within one area; type 5 floods everywhere except stub areas. An unexpected route in an area can therefore be traced to an ABR (type 3) or an ASBR (type 5).
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → OSPF LSA Types Reference. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2328.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Operational notes
Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.