I am designing a solution where my client has to connect to a cloud service from two different locations. Here’s the criteria:
- Location 1 will be the primary path and the client will peer with the cloud service via eBGP
- Location 2 will be a backup path and the client will peer with the cloud service via a site-to-site Internet VPN on their ASA.
- The BGP and VPN connections will take place at the client’s network edge. The routes to the cloud service will then be redistributed into OSPF, which is the client’s LAN routing protocol.
The dilemma is that once I redistribute these routes from BGP and the site-to-site VPN (location 1 and location 2, respectively) into the internal LAN OSPF network, the routes will appear as E2 with a fixed and equal metric. Thus, I won’t be able to prefer the BGP path over the site-to-site VPN path.
The only idea I’ve come up with is to redistribute the route learned via BGP through a route-map/prefix list and set the metric-type for the this BGP-learned route to type E1, therefore having preference over the VPN path (since the VPN path when redistributed will have the standard E2 type).
How would you do this? Any ideas welcome!