cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
794
Views
5
Helpful
3
Replies

RIB FAILIURE

sankarmay
Level 1
Level 1

Dear All,

I am having doubt in BGP RIP failure.

 

in my BGP configuration i am not added redistribute static command but i am having static route.

In that time for that mentioned static routes i am getting RIB failure alert.

But if i added redistributed static in bgp the rip failure is not coming.

Can anyone explain what is happening while adding the redistributed static in BGP.

 

R1#sh running-config | section route
router bgp 10
no synchronization
bgp log-neighbor-changes
network 192.168.1.0
neighbor 10.0.0.2 remote-as 20
no auto-summary
ip route 192.168.2.0 255.255.255.0 10.0.0.2


R1#sh ip bgp neighbors 10.0.0.2 advertised-routes
BGP table version is 5, local router ID is 192.168.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 192.168.1.0 0.0.0.0 0 32768 i

Total number of prefixes 1


R1#sh ip bgp neighbors 10.0.0.2 routes
BGP table version is 5, local router ID is 192.168.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
r> 192.168.2.0 10.0.0.2 0 0 20 i

Total number of prefixes 1
R1#

******************************************************

 

R1#sh running-config | section route
router bgp 10
no synchronization
bgp log-neighbor-changes
network 192.168.1.0
redistribute static
neighbor 10.0.0.2 remote-as 20
no auto-summary
ip route 192.168.2.0 255.255.255.0 10.0.0.2


R1#sh ip bgp neighbors 10.0.0.2 routes
BGP table version is 6, local router ID is 192.168.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
* 192.168.2.0 10.0.0.2 0 0 20 i ------->NO RIB FAILURE DUE TO REDISTRIUTE STATIC COMMAND

Total number of prefixes 1


R1#sh ip bgp neighbors 10.0.0.2 advertised-routes
BGP table version is 6, local router ID is 192.168.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path
*> 192.168.1.0 0.0.0.0 0 32768 i
*> 192.168.2.0 10.0.0.2 0 32768 ?

Total number of prefixes 2
R1#

 

1 Accepted Solution

Accepted Solutions

Hi

When redistributing static you don't see any rib-failure because you're advertising the network.
If you go in a bit more detail, by issuing "sh ip bgp" on your router R1, you'll see the 192.168.2.0/24 as local route on BGP output and even on R2 you will see that subnet learned in its BGP table. However, on both RIB, the installed route will always be the static one as it has a better AD.

Just for my curiosity as it's a bit weird what you're doing, why are your redistribution your static route for a subnet learned from your peer?

Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

View solution in original post

3 Replies 3

Francesco Molino
VIP Alumni
VIP Alumni
Hi

Based on output, the subnet 192.168.2.0 is advertised by your peer 10.0.0.2. This is local subnet of your bgp peer, isn't it?

It is in rib failure as you already have a better route installed (the static route).
You can confirm that by issuing the command "sh ip bgp rib-failure".

Now by redistributing this route, you're advertising the route to your peer and this is its local subnet. Why are you doing that?

Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question


Hi Dear,

Thanks for you reply but i have more query on that.
I am having the same static route while redistrubuting the static route into bgp peer.
Why the RIB failure not happening.

Hi

When redistributing static you don't see any rib-failure because you're advertising the network.
If you go in a bit more detail, by issuing "sh ip bgp" on your router R1, you'll see the 192.168.2.0/24 as local route on BGP output and even on R2 you will see that subnet learned in its BGP table. However, on both RIB, the installed route will always be the static one as it has a better AD.

Just for my curiosity as it's a bit weird what you're doing, why are your redistribution your static route for a subnet learned from your peer?

Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card