Tuesday, September 15, 2020

OSPF EXT2 routes with OSPF internal (forward) metrics to BGP

Basically I have BGP and static routes coming into OSPF (on R1 and R2, from ) and I want to redistribute them to BGP (at R7 & R8) with proper metrics. What are my options? Preferably the solution should be as automated as possible - meaning we do not want to use any route-maps and the like to modify metrics, if possible.

Routing diagram of the network

All OSPF internal metrics are ignored for External Type 2 routes, when redistributing from OSPF to BGP.

The BGP endpoints (R9 & R10) will get the routes from two different routers (R7 and R8), so having the same metric is undesirable, since the endpoints would have no clue, which route to prefer and would choose the oldest one.

Which means it can happen, that R9 chooses a path of R9 -> R8 -> R2 -> R1 -> R3 -> R5 - the path colored red on the diagram.

How to always consider the metrics of the E2 routes coming from the R5 and R6 (and also static routes from R1 and R2) and have the traffic go the most direct path in such a situation?

We can only modify heavily the configurations of R7 to R10. A solution that works, but is not preferable is to use AREA 0 OSPF for R7-R10.



No comments:

Post a Comment