Tuesday, October 11, 2011

BGP RIB Failure

When BGP tries to install the best-path prefix into the Routing Information Base (RIB), it might be rejected due to there is an IGP or static route with lower administrative distance already exists in the IP routing table.
A BGP route that is not being installed into the RIB is also known as an inactive route.
Note: Routing Information Base (RIB) is simply another name for the IP routing table.

The show ip bgp rib-failure EXEC command displays the BGP routes that failed to be installed into the RIB, but are installed into the BGP table as RIB-failure routes.
Note: The network topology that is used for this article is Page 223 - Advanced BGP Network.
RT2#sh ip bgp
BGP table version is 9, local router ID is
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
*>                  0             0 65001 i
*>                  0         32768 i
r>i192.168.3.0                  0    100      0 i
r>i192.168.4.0                  0    100      0 i
RT2#sh ip route longer-prefixes

Gateway of last resort is not set

B [20/0] via, 00:00:55
C is directly connected, Ethernet0/0
O [110/20] via, 00:01:05, Ethernet0/2
O [110/20] via, 00:01:05, Ethernet0/3
RT2#sh ip bgp rib-failure
Network            Next Hop                      RIB-failure   RIB-NH Matches             Higher admin distance              n/a             Higher admin distance              n/a

MISC notes for the output of the show ip bgp rib-failure EXEC command:
 An entry of of the Next Hop column indicates that the router has some non-BGP routes to the particular network.
 The RIB-NH Matches column indicates whether the next hops of the BGP and IP routes are the same. It is valid (Yes / No) only when the Higher admin distance reason appears in the RIB-failure column and the bgp suppress-inactive BGP router subcommand is configured for the address family that is being used.
Yes The next hop of the route in the RIB is same as the next hop of the BGP route or recurses down to the same adjacency as the next hop of the BGP route.
No The next hop of the route in the RIB recurses down differently from the next hop of the BGP route. BGP route that has a different next hop than the next hop of the IP route will not be advertised to other BGP neighbors (both IBGP and EBGP) – it is being suppressed.
n/a bgp suppress-inactive is not configured for the address family that is being used.

No comments:

Post a Comment