OSPF LSA scope and route types
An advertisement is not a route
A link-state advertisement (LSA) is a unit of routing information stored in the link-state database (LSDB). A route is a forwarding candidate calculated from that information. In ordinary OSPFv2 areas, Type 1 describes a router’s area links, Type 2 describes a transit multiaccess network from its designated router, and both are scoped to that area. Type 3 carries network reachability from an ABR into another area; Type 4 describes reachability to an ASBR in another area. Type 5 represents external reachability and is distributed across areas that accept it. Type 7 is used inside NSSAs (next lesson). These are selected core types, not an exhaustive registry.
Classify routes from R1
Use the previous topology, with a second subnet attached to a different area-1 router and a fictional ASBR in area 0 importing 203.0.113.0/24. Suppose the following destinations are learned, without overlapping prefixes or alternative protocols. Directly connected networks are not OSPF-learned routes on the router that owns the interface. Intra-area paths come from the same area topology; inter-area paths use information advertised across an area boundary; external paths describe imported destinations.
192.0.2.64/26 intra-area198.51.100.0/26 inter-area203.0.113.0/24 externalCompare external metrics carefully
For an ordinary Type 5 external destination, E1 adds the advertised external metric to the internal cost toward the ASBR or forwarding address. E2 primarily compares the external metric and uses internal cost as a tie-break under otherwise equal eligible conditions. For example, external metric 20 and internal cost 8 give E1 cost 28; the E2 external metric stays 20, with internal cost 8 considered separately. For the same destination in ordinary OSPFv2 path selection, internal paths are preferred over external paths, and E1 over E2. This does not replace longest-prefix forwarding or route selection between protocols, and advanced external path selection has further rules.
Inspect scope and route evidence
The following are read-only FRRouting 10.0 OSPFv2 CLI examples for an authorized lab, not captured output. Compare the LSDB with the OSPF route calculation and installed route table; the presence of an LSA does not guarantee forwarding. OSPFv3 encodes link, area and AS flooding scope in LS types and uses different LSA formats; do not copy this OSPFv2 type table directly into OSPFv3.
show ip ospf databaseshow ip ospf routeshow ip route ospfPractice
Two eligible E2 paths have equal external metric 12 and internal costs 4 and 9. Under the simplified tie-break above, choose the first path. If the second path advertises external metric 10 instead, it wins. Next, explore how area type changes which LSAs are visible.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
OSPF LSA scope and route types — knowledge check
Apply multi-area OSPF concepts to fictional routing situations.
Which OSPFv2 LSA carries network reachability between areas?
R1 learns a subnet attached to a different area-1 router. What path type is it?
R1 learns a redistributed static prefix from an area-0 ASBR. What path category applies?
An eligible E1 path has external metric 15 and internal cost 6. What is its metric?
Two otherwise equal eligible E2 paths have metrics 9 and 11. Their internal costs are 30 and 2. Which is preferred?