cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1366
Views
0
Helpful
10
Replies

OSPF & BGP

m.abdullah.s
Level 1
Level 1

Start connecting MPLS.

I have branch which has 3 links, two of those are in stub area connected to 2 routers (ABR1 &ABR2).

When the third BGP link is added (connected new ABR3 router) and redistributes the branch network learned from BGP

to other ABRs, the ospf don't take it unless I take off the other 2 links from ospf.

Is there a way to let them all work and keep the BGP link as the preferred one!

10 Replies 10

guruprasadr
Level 7
Level 7

HI,

Can you post the OSPF & BGP Configuration.

Best Regards,

Guru Prasad R

Here is the config for both.

Harold Ritter
Cisco Employee
Cisco Employee

Mustafa,

The routes received via OSPF are seen as intra or inter area routes, where as the routes redistributed from BGP are seen as external routes. Intra area routes are preferred over Inter area routes and Inter area routes are preferred over external routes, which probably explains what you are seeing.

Regards

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Thanks;

I understand this very well and I knew that was the cause. However, I was looking for a way to get all z 3 works with the BGP link preferred.

Mustafa,

So if I understand correctly, you need to use te BGP route as the primary, right?

What are the ospf route learned as on the router where you need to decide which route is the best? Intra or Inter area? If they are learned as Intra area, you could try to summarize them so that the more specific external route (redistributed from BGP) would win.

Other wise you could try to inject more specific routes from BGP.

Regards

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Updates are intra area. It can't be more specfic since Im distributing connected as u can see.

Mustafa,

You could have more specific static routes pointing to these interfaces that you would then inject into BGP.

Regards

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Sure you can, however if these are static, they will always be advertise even if the other side is down (Eth is always up).

Mustafa,

These are user subnets, right? Isn't it the case with ospf connected route as well. As long as the interface is up, the update will show in ospf for these subnets.

Unfortunately, there is not many tricks you can use in your scenario as you are facing a comparison between an ospf external route vs. an intra area route. As far as I am concerned, only the prefix length can make a difference.

Regards

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

thanks so much.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card