cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2081
Views
20
Helpful
9
Replies

Routing table not updating automatically

Mark1110
Level 1
Level 1

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

 

 

1 Accepted Solution

Accepted Solutions

 

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

View solution in original post

9 Replies 9

Jon Marshall
Hall of Fame
Hall of Fame

 

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

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. 

 

Are you redistributing OSPF into BGP as well ? 

 

Jon

yes Jon.

 

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

 

Didn't know Cisco had a document for this, thanks for posting. 

 

Jon

You are so so Welcome @Jon Marshall 

Mark1110
Level 1
Level 1

Thank you @Jon Marshall  and @MHM Cisco World . I applied it and its working correct now