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

OSPF + BGP default route (Prefer OSPF?)

We have a site(Site A) that is connected to one upstream (Only accepting default route via BGP). Site A is also connected via ATM+FE to our "Primary"(Site B) site, and we run OSPF over these two links(Preferring ATM over FE via cost) and redistribute default over the OSPF(default-information originate) - I would like to prefer the defaults provided via OSPF from Site B, over the default received via BGP from Upstream at Site A - I have tried adding a weight to Site A's BGP conf(Eg 1000), but as soon as BGP comes up, the OSPF defaults are ingnored.

2 REPLIES
Purple

Re: OSPF + BGP default route (Prefer OSPF?)

John,

Try adding the following command under your BGP config:

network 0.0.0.0 backdoor

That command has the effect of setting the AD for that route to 200, making it less preferable to the IGP learned route.

Hope that helps - pls do remember to rate posts that help.

Paresh

New Member

Re: OSPF + BGP default route (Prefer OSPF?)

Sensational Paresh - Worked like a charm!

780
Views
9
Helpful
2
Replies
CreatePlease to create content