A network engineer redistributes OSPF routes into BGP on router R1. R1 has: router bgp 65001, redistribute ospf 1 route-map RM_OSPF. The route-map RM_OSPF sets metric 100. OSPF routes from area 0 are redistributed, but routes from area 1 are missing in BGP. R1 shows: show ip ospf database shows area 1 routes as inter-area (IA). What is the root cause?
Inter-area routes are internal but the prefix-list restricts to area 0 prefixes only.
Why this answer
By default, when redistributing OSPF into BGP, only intra-area and inter-area routes are redistributed, but external routes (type 5/7) are not. However, the missing routes are inter-area (IA) from area 1, which should be redistributed. The issue is that the route-map RM_OSPF may have a match clause that inadvertently filters IA routes, or the redistribute command may be missing the match internal keyword.
In this case, the redistribute ospf 1 command without any match option defaults to match internal, which includes intra-area and inter-area. But if the route-map has a match ip address prefix-list that only permits specific prefixes, it could filter others. The root cause is that the route-map RM_OSPF uses match ip address prefix-list PL_INTRA which only permits prefixes from area 0, thus filtering inter-area routes from area 1.