- Router R11, R12 are managed by service provider 1.
- Router R21, R22, R23 are managed by service provider 2.
- Router R31, R32 are managed by me (Sergio).
- Service provider 2 hasta an international MPLS link and a national MPLS Link.
- R22 has a BGP session with R32.
- R23 has a BGP session with R32.
- R12 hasta a BGP session with R31.
- R31, R32 and R33 run OSPF between them.
** - I want to load balance the traffic comming from Provider 2 National and send some through Provider 2 international (R32, R22, R21) and some through provider 1 international (R32, R31, R12, R11) using OSPF.
- I made a similar configuration in R33, so it receives the routes to 10.10.10.0/24 through OSPF, from R31 and R32, with the same metric and load balances it. That works ok.
- I tried to configure the same in R32 but I have the difficulty that one path is learned through BGP and the other through OSPF.
- I know that BGP cant load balance, so I need to introduce the routes learned in R32 from R22 using BGP into OSPF with the same metric that the ones learned through OSPF from R31.
- How can I make that configuration?
- I have tried to redistribute BGP into OSPF but the route that uses is always the ones from OSPF from R31 and not the one redistributed.
Could you please post the configuration and an output of the routing table ? Have you verified that you are receiving via BGP both prefixes, check this out with show ip bgp neighbors routes ? Also, I suppose you are running eBGP between your routers and the CPE's managed by the Service Provider, can you confirm it?
The reason why it is preferring the OSPF route and not the BGP one is because it is learned via iBGP which has a worse AD of 200 than OSPF of 110, and this is why you can see the RIB failure in the BGP table. However, you said that you are running eBGP, then, where is this iBGP session ?
You should make the routes received from other remote sites advertised by the CPE's of the Service Provider via BGP better than the ones received via the LAN via OSPF. Remember that the redistribution process works taking the routes from the RIB. You may change the AD to prefer the BGP ones in case you are receiving it via iBGP, but it would be better to have a clear and entire picture of the scenario. Also, I suppose you are applying filtering in order to advertise towards the CPE's via BGP the local prefixes of the site and not other ones from remote sites.
As Jose already pointed, that in BGP table the prefix which you are mentioning is learned from iBGP ( default AD 200 ) whereas same is learned from OSPF ( default AD 110 ), hence OSPF learned route is getting installed in the routing table.
Couple of points of concern is as you mentioned that you have eBGP with telco managed CPE, I suggest you relook your configs when simulation was done, as simulation output is clearly at oppsoite tanget with the provided configs of production.
Now coming to load balance between eBGP and OSPF. Assuming that you have no iBGP session in your network ( as if there are iBGP in your network, then it needs a deeper look, or else you might end up having loop in your network). The simplest thing you can do, is to change the OSPF AD to 20.
We are pleased to announce availability of Beta software for 16.6.3.
16.6.3 will be the second rebuild on the 16.6 release train targeted
towards Catalyst 9500/9400/9300/3850/3650 switching platforms. We are
looking for early feedback from customers befor...
Introduction Featured Speakers Luis Espejel is the Telecommunications
Manager of IENova, an Oil & Gas company. Currently he works with Cisco
IOS® and Cisco IOS XE platforms, and NX to some extent. He has also
worked as a Senior Engineer with the Routing P...
In this session you can learn more about Layer 3 multicast and the best
practices to identify possible threats and take security measures. It
provides an overview of basic multicast, the best security practices for
use of this technology, and recommendati...