BGP - OSPF - BGP

I have two CCR1036-12G-4S that are border router of my Autonomous System Routing Network. Between the two routers i have my public/private network with a lot of routers Mikrotiks connected by Wireless PTP and the routing Policy is OSPF.

All the PPPOE are on one CCR by using MPLS/VPLS infrastructure.

I need to create a balancing of the traffic through the two Border Routers CCR.

In the Past i have internet interconnection only on one CCR, now i have interconnection with other provider in all two routers.

By maintaining the MPLS/VPLS infrastructure of my network and the OSPF, in which way i can create a balancing and failover policy?

I am thinking about the shifting of PPPOE and NAT through the 2 CCR Routers, but in this case is all ok when all the 2 internet interconnections work fine. If one of them gone down i will have a network that cannot surf internet.

Is there a tutorial or an example to understand in which way i can do this?

Thanks a lot.

If you are terminating PPPoE on the same CCRs that provide outbound Internet connectivity, you might want to put the VPLS and PPPoE termination on a separate set of routers so that either Internet pipe can be used more easily based on a routing decision to your Internet edge routers.

Is your BGP receiving full routes or just default GW prefixes?

You’re going to get load sharing based on your routing policy if all of your backbone routers speak iBGP with each other and your border routers receive full routes from the Internet. Your P routers need not participate in BGP since you’re using MPLS.

Tweak outbound policy by setting local_pref on routes as you receive them in your border routers. (e.g. if you want to route out to YouTube primarily on ISP1, then match their ASN on received routes and set local_pref higher than the default 100 - your entire network would then use ISP1 to reach YouTube when that path is available).

Tweak inbound policy by doing as-prepend and sending policy community strings to a provider (each ISP implements communities their own way, so you’ll have to request a document from them describing their community structure).

For instance, If ISP-1 is sending a lot more traffic to you than ISP-2, you could as-prepend 1x on your announcements into ISP1 so that other networks on the Internet will see this as a “longer way” to get to you, and more of them will decide to use ISP2.