Use it when a link, cost or neighbour is missing from the OSPF topology, or when reading Type 1 and Type 2 LSAs on a multiaccess segment.
OSPF Router & Network LSA Field Reference
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ip ospf database router 10.0.0.1Verification & 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 Field/LSDB/capture verification and known-good sequence Verify boundary
show ip ospf database router 10.0.0.1
show ip ospf database network
show ip ospf neighbor
The Router LSA output lists each link as "Link connected to: …" with its Link ID, Link Data and metric. The Network LSA output shows the DR's address, the mask and the attached routers. The neighbour table confirms who the DR is.
To check a path, read the Router LSA at each end of every link along it: both must list the link, with the cost each side intends.
Known-good: each link appears in the LSAs of both ends, the Network LSA lists every router on the segment, and the metrics are as designed.
Step 2 Failure signatures and field-level troubleshooting Narrow the fault
- A link is missing from one Router LSA. No full adjacency on that interface, or the interface is not in OSPF.
- A link is listed as stub where transit was expected. There is no DR or no full neighbour on the segment.
- No Network LSA for a segment. No DR was elected, or the network type is point-to-point on one side and broadcast on the other — the neighbours can be Full while the LSAs do not fit together, and no routes result.
- A path is not used although it exists. The metric in the Router LSA is higher than assumed; costs are per direction.
- A router is missing from the Network LSA. It is not fully adjacent with the DR.
Step 3 When the problem is really fixed Narrow the fault
- Both ends of every link list it in their Router LSA, with the intended metric.
- Each multi-access segment has a Network LSA listing all its routers.
- The routing table shows the intra-area routes with the expected cost.
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.
Type 1: one per router per area; link types point-to-point, transit (to a DR's Type 2), stub (a prefix) and virtual link, each with a cost. Type 2: originated by the DR, lists every router attached to the segment. A link appears only when the adjacency is FULL; a two-way-only DROther does not list the other DROthers.
show ip ospf database router <rid>— the router's links, link types and metrics.show ip ospf database network <dr-ip>— attached routers on a multiaccess segment.show ip ospf neighbor— FULL adjacencies behind each link.show ip ospf interface <if>— network type, DR/BDR and cost.
ReferenceWhat it is1 section · depth on demand
Mechanics & mental model
Router LSAs (type 1) and Network LSAs (type 2) describe the topology inside an OSPF area. Every router issues a Router LSA listing its own links; the designated router of each multi-access segment issues a Network LSA listing the routers attached to it. SPF builds its map from these two.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
When the neighbours are up but a path inside the area is missing or takes an unexpected route, the answer is in these LSAs. They show exactly what each router has told the others about its links and costs.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Router-LSAs describe each router's links; network-LSAs describe transit segments
Together these two LSA types describe the topology inside an area, and SPF builds its tree from them.
Router-LSA (type 1)
RFC 2328 defines the router-LSA body with V (virtual-link endpoint), E (ASBR) and B (ABR) flags, the number of links, and per link: Link ID, Link Data, link type, TOS count and metric.
| Link type | Meaning | Link ID | Link Data |
|---|---|---|---|
| 1 | Point-to-point to another router | Neighbour's router ID | Local interface IP (or ifIndex for unnumbered) |
| 2 | Connection to a transit network | DR's interface IP | Local interface IP |
| 3 | Stub network | Network address | Network mask |
| 4 | Virtual link | Neighbour's router ID | Local interface IP |
Network-LSA (type 2)
Originated by the DR of a broadcast or NBMA segment with at least one other router. The body holds the network mask and the list of attached routers (router IDs).
C9300# show ip ospf database router 10.0.0.12
LS Type: Router Links
Link State ID: 10.0.0.12
Advertising Router: 10.0.0.12
Area Border Router
Number of Links: 3
Link connected to: another Router (point-to-point)
(Link ID) Neighboring Router ID: 10.0.0.11
(Link Data) Router Interface address: 10.255.0.2
TOS 0 Metrics: 10
Link connected to: a Transit Network
(Link ID) Designated Router address: 10.100.0.1
(Link Data) Router Interface address: 10.100.0.2
TOS 0 Metrics: 100
Link connected to: a Stub Network
(Link ID) Network/subnet number: 10.0.0.12
(Link Data) Network Mask: 255.255.255.255
C9300# show ip ospf database network 10.100.0.1
Reading the flags
| Flag shown | Router role |
|---|---|
| Area Border Router (B) | Has interfaces in several areas, including area 0 |
| AS Boundary Router (E) | Redistributes external routes |
| Virtual link endpoint (V) | Terminates a fully adjacent virtual link |
Uses
- A link missing from a router-LSA explains a missing path in SPF.
- A broadcast segment with only one OSPF router appears as a stub network, not a transit network.
- Point-to-point network type on Ethernet links removes type 2 LSAs and the DR election for those links.
Documented example, not captured output.
Field structure, identity and state ownership
Router LSA. Its Link State ID and advertising router are both the originator's router ID. The body has flag bits — B when the router is an ABR, E when it is an ASBR — and a list of links. Each link has a type, two values whose meaning depends on the type, and a metric:
| Link type | Link ID | Link Data | Describes |
|---|---|---|---|
| 1 Point-to-point | Neighbour's router ID | Own interface address | A direct connection to another router |
| 2 Transit | The DR's interface address | Own interface address | A connection to a multi-access segment with a DR |
| 3 Stub | Network address | Network mask | A network with no OSPF neighbour on it |
| 4 Virtual link | Neighbour's router ID | Own interface address | A virtual link |
A point-to-point interface produces two entries: a type 1 link to the neighbour and a type 3 link for the subnet.
Network LSA. Issued by the DR. Its Link State ID is the DR's interface address on the segment; the body holds the segment's mask and the router IDs of all attached routers. It exists only while the DR has at least one full neighbour.
For SPF, a link counts only if both ends agree: router A must list a link to B, and B a link to A. On a multi-access segment, each router points at the Network LSA and the Network LSA lists each router.
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 Router & Network LSA Field 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.
Quick lookup tables
OSPF Router & Network LSA Field Reference field-level operational reference
Identity-first field interpretation, suspicious signatures and the next protocol/forwarding proof boundary.
| Field boundary | Known-good for OSPF Router & Network LSA Field Reference | Suspicious signature | Next proof |
|---|---|---|---|
| Identity/length | Exact object/peer and coherent structure | Wrong identity, type or boundary | Raw packet/LSDB object + peer state |
| Field semantics | Type-1 router flags, link count, Link ID, Link Data, link type and metric; Type-2 network mask and attached Router-ID list, correlated with the LSA header identity and the DR that originated the pseudonode match intended design | missing or wrong Type-1 link, unexpected metric, wrong link-type interpretation, stale Type-2 after DR change, expected Router ID absent from attached-router list, Type-2 present where network-type assumptions differ, or complete-looking LSDB objects that nevertheless yield an unexpected SPF graph because one edge/pseudonode is wrong | Compare same object across both sides |
| State consequence | Field predicts expected protocol/route transition | Object looks valid but local state disagrees | LSDB/SPF or BGP policy → RIB/FIB |
| Closure | Original workload succeeds for the explained reason | Protocol state recovered only transiently | Repeat state/capture + regression test |