Pcornel
Networking · Network & Protocols › OSPF Protocol Reference

OSPF LSA Types Reference

Cheat sheet · https://pcornel.dk/topic.php?topic=210

Back to the Topic

Answer

OSPF describes the network in link-state advertisements (LSAs). Types 1 and 2 describe an area's topology, type 3 carries networks from other areas, type 4 locates an ASBR, type 5 carries redistributed routes, and type 7 is the NSSA form of type 5.

Remember

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.

First checks

  • show ip ospf database — all LSAs by area and type.
  • show ip ospf database summary <network> — the type 3 LSA and its ABR.
  • show ip ospf database external <network> — the type 5 LSA, metric type and forwarding address.
  • show ip route ospf — the resulting routes and their codes.

Verify in this order

network originated (type 1/2) → ABR advertises it to other areas (type 3) → for external routes: ASBR originates type 5, ABR adds type 4 → LSA present in the local database → SPF → route installed with the matching code

Where it usually breaks

underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=210

Confirmation

Confirm action

Continue?