An OSPF route won't appear in the routing table though it exists in LSDB and forward address is reac
I encountered a situation where an OSPF External route won't appear in the routing table even though it exists in LSDB and the forward address is reachable.
My understanding is OSPF Type-5 external routes won't get into the routing table if:
- Forward Address is set AND
- The forward address is not reachable
To prove the above, I set up the following OSPF areas where a router in Area 1 receives a default route via BGP.
[BGP] -- [Area 1] -- [Area 0] -- [Area 2]
*Note OSPF is enabled on the WAN interface in addition to BGP though there's no OSPF neighbor in that direction for the sake of experiment. (Without it, the Forward Address is not set.)
In this state, I checked the routing table on a router in Area 2 and, as expected, found the default route installed as OSPF E2.
Next, I set up a filter on ABR between areas 0 and 1 so that the forward address for the default route won't be propagated into Area 0.
area 1 range 126.96.36.199 255.255.255.0 not-advertise (188.8.131.52 is the WAN link address and forward address for the default route)
After this, the default route is gone from the routing table although it's still in LSDB. That's because there's no reachability to the Forward Address.