Troubleshooting notes · OSPF
OSPF stub area: neighbours never form and nothing is logged
Routers in an OSPF stub area never become neighbours because only one side is configured as stub. Why the stub flag must match, and the fix.
The symptom
After making an area a stub, the routers inside it disappear from show ip ospf neighbor on the ABR. Nothing is logged; in our test on IOS XE 17.18 there was no message at all, just no neighbours.
Why it happens
Every OSPF hello carries the area type in its options field: the E-bit is cleared in a stub area, and an NSSA uses the N-bit. Two routers become neighbours only if these bits match. Here the ABR had area 23 stub, but the router inside the area had nothing, so each one ignores the other's hellos.
Every router in a stub or NSSA area must be configured with the same area type, not just the ABR.
The fix
R3(config)# router ospf 1
R3(config-router)# area 23 stub
no-summary (totally stubby) is different: it's configured only on the ABR, and the internal routers still use plain area 23 stub.
Check it
show ip ospf neighbor on the ABR should list the routers in the area again, and they should receive a default route (O*IA) from the ABR instead of the external routes.
Practise this fault
This fault is in ENARSI Lab 17 of ENARSI Troubleshooting Labs: a ready-made GNS3 project where you find and fix it yourself, alongside the other faults in the ticket, with the tested solution.
Or start with 15 free labs (5 each from CCNA, ENARSI and ENCOR), by email:
We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.