I am writing a new config for our sites.
Basically we have main lines and backup lines. We run BGP through the main lines and OSPF over the backup lines, the BGP is redistributed into OSPF at the main line router for each site, and that OSPF runs between the main line router, the backup line router, and the core layer 3 switch on each site.
Now the problem is that, due to the redistribution, the main line route to a particular site becomes an E2, and the backup route to the same site is an IA, which goes into the routing table.
How can I engineer to have the E2 route preferred over the IA route? Is it even possible?
Thanks for reading
you can only prefer an O E2 route over another O E2 route for its lower metric.
in your scenario you need to use a second OSPF process on the backup lines and to redistribute carefully among the two OSPF processes.
In this way you can make routes comparable = of the same type and those coming from BGP primary links preferred for their lower metric
Hope to help