Troubleshooting OSPF: neighbours are up but a route is missing
In short: When OSPF neighbours are Full but a prefix is missing, the problem is in one of four places: the route is never advertised, it is not flooded into this area, it is in the database but SPF cannot use it, or it is calculated but a better source wins. Checking the LSDB on the right routers tells you which.
Start with the right question
If neighbours are not forming, see the note on OSPF neighbours and DR/BDR. This note starts after that: every adjacency is Full, yet show ip route 10.40.0.0 on one router says "not in table". Work through the stages in order, starting at the router that should originate the route.
1. Is the route being advertised?
- On the originating router, check that the interface is in OSPF:
show ip ospf interface brief. Anetworkstatement with the wrong wildcard is the classic mistake. - A passive interface is still advertised, so passive is not the cause; a missing interface is.
- If the route is external, check the redistribution:
redistribute static subnets(on older IOS, withoutsubnetsonly classful networks are redistributed), and any route map on that command. - Look for it in the originator's database:
show ip ospf database router self-originateorshow ip ospf database external.
2. Is it reaching this area?
- Check the database on the router missing the route:
show ip ospf database summary 10.40.0.0(type 3) orexternal(type 5). - Area type: stub areas block type 5, totally stubby areas also block type 3 except the default, and NSSAs use type 7. If your router is in a stub area, it should be relying on a default route instead.
- Filtering:
area X filter-list prefixorarea X range ... not-advertiseon the ABR can stop the type 3 LSA. - Summarisation: the ABR may be advertising a summary instead. Look for the bigger prefix.
3. Is it in the database but not used?
- A type 3 LSA is only usable if this router can reach the ABR that sent it. A type 5 LSA needs a path to the ASBR (via type 4 in other areas).
- Check the forwarding address in type 5 and 7 LSAs. If it is set and not reachable through an OSPF intra- or inter-area route, the external route is ignored.
- A discontiguous area 0 means inter-area routes cannot be calculated. Every area must touch the backbone, or use a virtual link.
distribute-list inunder OSPF does not stop LSAs; it only stops routes being installed on that router. It is a common hidden cause.
4. Is something better winning?
If show ip ospf rib (or the database) has the route but the routing table does not, look for the same prefix from a source with lower administrative distance, such as a static route or EIGRP. Also check for duplicate router IDs, which make routers ignore each other's LSAs and log "detected duplicate router-id".
Real-world example: the stubby surprise
An engineer added a new branch in area 20 and could not reach a cloud prefix redistributed at head office. Neighbours were Full and the branch had a default route, so most traffic worked. The cloud firewall, however, only accepted traffic from a specific path, and the branch's default route pointed elsewhere. Area 20 was totally stubby, so the specific external route never arrived. Changing the area to a normal area for that branch, with summarisation on the ABR, solved it.
Practice
Which OSPF area type blocks both type 3 and type 5 LSAs except a default route?
Does distribute-list in under OSPF stop LSAs from being flooded?
Why might a type 5 LSA be in the database but not used?
Key takeaways
- Work from the originating router towards the router missing the route.
- Check advertisement, flooding, calculation and installation in that order.
- Area types, filters and summaries on ABRs are common causes.
- A lower-AD source or a distribute-list can hide a perfectly good OSPF route.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.