09-07-2012 01:41 AM - edited 03-04-2019 05:30 PM
Hi all,
I have HQ and mutiple branches in Hub-Spoke environtment. All site comes with 2 link. Primary link is MPLS using BGP, backup with DMVPN over OSPF.
if let say one of the branch MPLS connection having problem(intermittent, high packet loss), I would need change the routing on that branch and HQ to prefer OSPF path, till MPLS connection resume stable. in Branch I can totaly change AD for BGP higher than 110, but how do I do in HQ. Since changing AD for BGP in HQ would effect connection to all branch? How to prefer OSPF over BGP for specific network only in HQ?
Solved! Go to Solution.
09-07-2012 01:52 AM
Hello,
You can configure the AD for individual routes using a standard ACL. Assuming you can modify the BGP configuration on the HQ, this would be the configuration example:
access-list 99 permit 192.0.2.0 0.0.0.255
access-list 99 permit 223.255.255.0 0.0.0.255
!
router bgp 64512
distance 111 0.0.0.0 255.255.255.255 99
This example will set the AD of BGP-learned routes 192.0.2.0/24 and 223.255.255.0/24 to 111. The "0.0.0.0 255.255.255.255" refers to the source of the BGP-learned route and is currently set to the value signifying "any source".
Best regards,
Peter
09-07-2012 02:06 AM
Hi Peter,
wouldn't it be easier to use the
network backdoor
BGP command?
See http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a00800c95bb.shtml#bgpbackdoor
for an example.
BR,
Milan
09-07-2012 01:52 AM
Hello,
You can configure the AD for individual routes using a standard ACL. Assuming you can modify the BGP configuration on the HQ, this would be the configuration example:
access-list 99 permit 192.0.2.0 0.0.0.255
access-list 99 permit 223.255.255.0 0.0.0.255
!
router bgp 64512
distance 111 0.0.0.0 255.255.255.255 99
This example will set the AD of BGP-learned routes 192.0.2.0/24 and 223.255.255.0/24 to 111. The "0.0.0.0 255.255.255.255" refers to the source of the BGP-learned route and is currently set to the value signifying "any source".
Best regards,
Peter
09-07-2012 01:55 AM
Hi peter,
thanks for the quick responce.. Will try it and let you know
09-07-2012 02:06 AM
Hi Peter,
wouldn't it be easier to use the
network backdoor
BGP command?
See http://www.cisco.com/en/US/tech/tk365/technologies_tech_note09186a00800c95bb.shtml#bgpbackdoor
for an example.
BR,
Milan
09-07-2012 02:20 AM
Milan,
Oh, yes, I forgot about that! I believe that using the network backdoor could also solve this issue nicely! The major difference, though, is that the neighbor backdoor will cause the route to be assiged the AD of 200 and not be advertised further in BGP. I am not sure if the original poster wants this particular behavior.
In any case, thank you!
Best regards,
Peter
09-07-2012 02:36 AM
Hi All,
Thanks. both config work for me.
07-14-2017 06:20 AM
Thank you. This works for me.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide