Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Prefer OSPF route to BGP

Hi,

I have a headquarters site with a single router that has two links.  One link is an OSPF link via Metro and the second is an eBGP link via MPLS.  There are multiple remote sites at the far end with an OSPF and eBGP link also into a single router in each site.  If I want traffic to take the OSPF route as the primary path what is the best practise method to make eBGP the less perferrable path?

Thank you

Brian

5 REPLIES
Hall of Fame Super Blue

Re: Prefer OSPF route to BGP

Brian.oflynn wrote:

Hi,

I have a headquarters site with a single router that has two links.  One link is an OSPF link via Metro and the second is an eBGP link via MPLS.  There are multiple remote sites at the far end with an OSPF and eBGP link also into a single router in each site.  If I want traffic to take the OSPF route as the primary path what is the best practise method to make eBGP the less perferrable path?

Thank you

Brian

Brian

Two options -

1) Can you summarise the remote networks across the BGP link so that the OSPF routes are more specific and are always used as long as the OSPF link is up ?

2) If not you can look to manipulate the AD (Administrative Distance). Either change OSPF to below 20 or increase EBGP to above 110.

Jon

New Member

Re: Prefer OSPF route to BGP

Hi Jon, Option 1 is out unfortunately. I had been looking into option 2 but it seems to be an all or nothing when it comes to changing admin distance.  Wasn't sure if there was a more granular way of doing it with a route map.

Cheers

Brian

Cisco Employee

Re: Prefer OSPF route to BGP

I think, you can use the BGP backdoor that makes the IGP route the preferred route.

It's depend of the topology but maybe help you.

router bgp 1

neighbor 1.1.1.1 remote-as 2

network 10.1.1.0 backdoor

Best regards

Marcelino

New Member

Re: Prefer OSPF route to BGP

Thanks Marcelino, I will look into that command.

cheers

Brian

Cisco Employee

Re: Prefer OSPF route to BGP

Hi Brian,

I found out interesting file, Can you check this file that mentioned using the "weight" value
that one prefix with the higher weight will be installed in the
routing table based on the BGP best path selection process
but you can play with this value.

https://supportforums.cisco.com/docs/DOC-5748

I hope this help
Marcelino

3540
Views
0
Helpful
5
Replies