cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1184
Views
9
Helpful
2
Replies

OSPF + BGP default route (Prefer OSPF?)

johnelliot
Level 1
Level 1

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 2

pkhatri
Level 11
Level 11

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

Sensational Paresh - Worked like a charm!