BGP RIB failure

Sri M
Sri M used Ask the Experts™
on
Hello experts,

I am having BGP rib failure after doing a bgp with a new ISP. Please see my config below

sh ip bgp summ
BGP router identifier 185.151.4.X, local AS number 202XXX
BGP table version is 12558, main routing table version 12558
11 network entries using 1584 bytes of memory
12 path entries using 960 bytes of memory
5/4 BGP path/bestpath attribute entries using 800 bytes of memory
4 BGP AS-PATH entries using 96 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 3440 total bytes of memory
BGP activity 28/17 prefixes, 33/21 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
87.201.148.XX   4        15802     317     356    12558    0    0 05:12:20        1
91.72.200.XXX   4        65120   48869   49332    12558    0    0 4w2d            7
151.253.77.XX   4   4275002636    3892    3054    12558    0    0 05:31:17        2


sh ip bgp
BGP table version is 12558, local router ID is 185.151.4.X
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
              x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

     Network          Next Hop            Metric LocPrf Weight Path
 *>  0.0.0.0          87.201.148.XX                         0 15802 i
 *                    151.253.77.XX                         0 4275002636 5384 i
 *>  91.72.200.XXX/25 0.0.0.0                  0         32768 i
 r>  151.253.77.XX/29 151.253.77.XX            0             0 4275002636 i
 *>  185.151.4.X/23   0.0.0.0                  0         32768 i
 *>  185.151.4.XXX/28 91.72.200.XXX           50             0 65120 i

sh ip bgp rib-failure
  Network            Next Hop                      RIB-failure   RIB-NH Matches
151.253.77.XX/29   151.253.77.XX       Higher admin distance              n/a

I understood rib is due to higher admin distance and the bgp route is not stored in the route table

but how do we solve this  I want my traffic to go through bot the ISP with equal preference and also during an isp down even the other isp should serve the traffic until it comes back

Thank you

Best Regards,
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
SouljaSr.Net.Eng
Top Expert 2011

Commented:
What does sh ip route 151.253.77.XX display?  Usually the only routes with a higher AD then EBGP routes is static, EIGRP Summary or a connected route.
Sri MCEO

Author

Commented:
Hi Soulja,

Thank you for your response. Below is the output you asked for

sh ip route 151.253.77.XX
Routing entry for 151.253.77.XX/29
  Known via "connected", distance 0, metric 0 (connected, via interface)
  Routing Descriptor Blocks:
  * directly connected, via GigabitEthernet0/1
      Route metric is 0, traffic share count is 1

Regards
Distinguished Expert 2018
Commented:
Network is present in routing table as directly connected interface and also is learned into bgp from neighboring router.

Is there even need to advertise prefix into bgp (since route is already present in routing table)?
If there is a need to advertise prefix simple way to do it is to advertise prefix by using network command.

router bgp 202XXX
 address-family ipv4 unicast
  network 151.253.77.XX mask 255.255.255.248

Other way may be to redistribute network into bgp (and a little bit of control which prefixes may be advertised):
router bgp 202XXX
 address-family ipv4 unicast
  ! route-map X is there to redistribute just specific network(s)
  redistribute static route-map X
  ! to control which networks can be advertised route-map in out direction can be configure (route-map OUT_MAP would block the one prefix that was redistributed)
  neighbor 151.253.77.XX route-map OUT_MAP out
!
ip prefix-list Y permit 151.253.77.z/29
!
route-map X permit
 match ip address prefix-list Y
!
route-map OUT_MAP deny
  match ip address prefix-list Y
route-map OUT_MAP permit
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Sri MCEO

Author

Commented:
Thank you JustInCase, this sorted the issue and I used weight to control the traffic and it all looks good now. Appreciate the solution
Sri MCEO

Author

Commented:
Thank you all for your support, appreciate the quick response.
Distinguished Expert 2018

Commented:
You're welcome.

Have in mind that weight is non transitive attribute, which means it will influence only traffic that already reached router configured with it, but that may be valid BGP design.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial