05-26-2022 07:02 AM - edited 05-26-2022 07:37 AM
Hello,
We have two cisco routers R1 and R2 at two data centers. One is primary R1 and second is for redundancy R2. we are using ospf to share routes between datacenters. for connectivity with client sharing routes via BGP. for auto failover, put BGP AD 130 at redundant site R2. because sharing routes via ospf AD 110. but when we do failover test, routing table not updating automatically. i have to do clear ip route to update routing table. any one know reason and solution?
I am using redistribution of BGP via ospf on both side. Let me explain with an example.
I am learning 1.1.1.1/24 route from client via BGP on both location R1 and R2.
That route is share via ospf between two location. Location R2 has AD for bgp 130. that's why it choose ospf path from R1 location instead of client bgp path at R2.
now, if i shutdown primary R1 bgp connection with client. 1.1.1.1/24 is taking correct path. BGP at R2 and ospf from R2 at R1.
Problem is when I turn on bgp connection at primary R1, Routing table not updating to learn BGP route at R1 and ospf from R1 at R2. I have to do clear ip route to make it work.
Thanks,
Mark
Solved! Go to Solution.
05-26-2022 09:02 AM
Then it is probably this that is happening -
https://community.cisco.com/t5/routing/nx-os-9000-ebgp-failover-help/td-p/4152395
apologies but rather than type it all out again it is easier to link to where I have described it before.
Jon
05-26-2022 07:14 AM
Few more details would help ie. are you doing one way or mutual distribution, what is meant to happen, what do you see in routing table etc.
Jon
05-26-2022 07:27 AM
I am using redistribution of BGP via ospf on both side. Let me explain with an example.
I am learning 1.1.1.1/24 route from client via BGP on both location R1 and R2.
That route is share via ospf between two location. Location R2 has AD for bgp 130. that's why it choose ospf path from R1 location instead of client bgp path at R2.
now, if i shutdown primary R1 bgp connection with client. 1.1.1.1/24 is taking correct path. BGP at R2 and ospf from R2 at R1.
Problem is when I turn on bgp connection at primary R1, Routing table not updating to learn BGP route at R1 and ospf from R1 at R2. I have to do clear ip route to make it work.
05-26-2022 08:49 AM
Are you redistributing OSPF into BGP as well ?
Jon
05-26-2022 08:52 AM
yes Jon.
05-26-2022 09:02 AM
Then it is probably this that is happening -
https://community.cisco.com/t5/routing/nx-os-9000-ebgp-failover-help/td-p/4152395
apologies but rather than type it all out again it is easier to link to where I have described it before.
Jon
05-26-2022 08:54 AM
05-26-2022 09:12 AM
Didn't know Cisco had a document for this, thanks for posting.
Jon
05-26-2022 09:23 AM
You are so so Welcome @Jon Marshall
05-29-2022 11:57 AM
Thank you @Jon Marshall and @MHM Cisco World . I applied it and its working correct now
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