FRRouting / frr

The FRRouting Protocol Suite
https://frrouting.org/
Other
3.35k stars 1.26k forks source link

BGP disappear from RIB #14168

Closed RPBE76 closed 1 year ago

RPBE76 commented 1 year ago

Hello,

BGP route disappear into RIB but still present into frr routing table. If I restart frr it is working fine but after some time bgp route disappear again. Any idea ?

frr version version 8.5.2 Debain linux-image-6.1.0-10-cloud-amd64

ton31337 commented 1 year ago

Please provide the configurations and how to reproduce it. Also some more outputs please:

show ip bgp
show ip route
RPBE76 commented 1 year ago

log file /var/log/frr/frr.log no ipv6 forwarding service integrated-vtysh-config ! interface lo ip address x.x.x.x/32 exit ! router bgp 65121 neighbor 169.254.32.10 remote-as 65120 neighbor 169.254.32.10 ebgp-multihop 2 neighbor 169.254.32.10 disable-connected-check neighbor 169.254.32.10 update-source 169.254.32.9 neighbor 169.254.32.11 remote-as 65120 neighbor 169.254.32.11 ebgp-multihop 2 neighbor 169.254.32.11 disable-connected-check neighbor 169.254.32.11 update-source 169.254.32.9 ! address-family ipv4 unicast redistribute connected neighbor 169.254.32.10 next-hop-self neighbor 169.254.32.10 soft-reconfiguration inbound neighbor 169.254.32.10 route-map IMPORT in neighbor 169.254.32.10 route-map EXPORT out neighbor 169.254.32.11 next-hop-self neighbor 169.254.32.11 soft-reconfiguration inbound neighbor 169.254.32.11 route-map IMPORT in neighbor 169.254.32.11 route-map EXPORT out exit-address-family exit ! ip prefix-list vpc_cidr seq 5 permit 10.24.132.0/22 ip prefix-list all seq 5 permit any ! route-map IMPORT permit 10 exit

RPBE76 commented 1 year ago
show ip bgp 
BGP table version is 4, local router ID is x.x.x.X, vrf id 0
Default local pref 100, local AS 65121
Status codes:  s suppressed, d damped, h history, * valid, > best, = multipath,
               i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes:  i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found

    Network          Next Hop            Metric LocPrf Weight Path
 *> 10.24.132.0/22   0.0.0.0                100         32768 ?
 *= x.x.x.X/28  169.254.32.10          100             0 65120 i
 *>                  169.254.32.11          100             0 65120 i
 *> x.x.x.x/32
                    0.0.0.0                  0         32768 ?

Displayed  3 routes and 4 total paths
 show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
       T - Table, v - VNC, V - VNC-Direct, A - Babel, F - PBR,
       f - OpenFabric,
       > - selected route, * - FIB route, q - queued, r - rejected, b - backup
       t - trapped, o - offload failure

K>* 0.0.0.0/0 [0/100] via 10.24.132.1, enX0, src 10.24.132.20, 01:17:08
K>* 10.24.128.2/32 [0/100] via 10.24.132.1, enX0, src 10.24.132.20, 01:17:08
C>* 10.24.132.0/22 [0/100] is directly connected, enX0, 01:17:08
K>* 10.24.132.1/32 [0/100] is directly connected, enX0, 01:17:08
B>* x.x.x.X/28 [20/100] via 169.254.32.10, tgw, weight 1, 01:16:57
  *                          via 169.254.32.11, tgw, weight 1, 01:16:57
C>* 169.254.32.8/29 is directly connected, tgw, 01:17:08
C>* x.x.x.x/32 is directly connected, lo, 01:17:08
ton31337 commented 1 year ago

Which route is not in the state you are expected?

RPBE76 commented 1 year ago

B>* x.x.x.X/28 [20/100]

when I am on the linux the route disappear from the routing table. I restart frr and after the route is into linux routing table but disappear after 1 day or less

donaldsharp commented 1 year ago

turn on the debugs and collect the logs like @ton31337 has asked and when it happens again, upload the logs here. Until then there is absolutely nothing actionable you have given us

ton31337 commented 1 year ago

What is the output of ip route get x.x.x.X/28? And please enable debug bgp zebra, debug zebra rib, debug zebra events. In a day or less, you should see the reason maybe why it disappeared.

RPBE76 commented 1 year ago

debug is on will back to you when I will have more input thanks