FRR BGP neighbour not populating neighbour routes ?!

Started by tryllz, August 07, 2023, 09:41:18 PM

Previous topic - Next topic
Hi,

I'm losing my mind having setup FRR BGP on 2 routers.

Router A - 192.168.9.21
Networks - 192.168.11.0/24

Router B - 192.168.9.31
Networks - 10.10.13.0/24, 10.10.15.0/24, 10.10.17.0/24

I can see in the routing table neither of the routes are being populated.
Router A


Router B


Router A Configuration
Building configuration...

Current configuration:
!
frr version 7.5.1
frr defaults traditional
hostname MFW.localdomain
log syslog notifications
!
router bgp 65551
no bgp ebgp-requires-policy
no bgp default ipv4-unicast
neighbor 192.168.9.31 remote-as 65555
neighbor 192.168.9.31 bfd
neighbor 192.168.9.31 update-source em0
!
address-family ipv4 unicast
  redistribute connected
  neighbor 192.168.9.31 activate
  neighbor 192.168.9.31 prefix-list All in
  neighbor 192.168.9.31 prefix-list All out
  neighbor 192.168.9.31 route-map All in
  neighbor 192.168.9.31 route-map All out
exit-address-family
!
address-family ipv6 unicast
  redistribute connected
exit-address-family
!
route-map All permit 10
match ip address prefix-list All
!
line vty
!
bfd
peer 192.168.9.31
!
!
end


Router B Configuration
Building configuration...

Current configuration:
!
frr version 7.5.1
frr defaults traditional
hostname SFW.localdomain
log syslog notifications
!
router bgp 65555
no bgp ebgp-requires-policy
no bgp default ipv4-unicast
neighbor 192.168.9.21 remote-as 65551
neighbor 192.168.9.21 bfd
neighbor 192.168.9.21 update-source vmx0
!
address-family ipv4 unicast
  redistribute connected
  neighbor 192.168.9.21 activate
  neighbor 192.168.9.21 prefix-list All in
  neighbor 192.168.9.21 prefix-list All out
  neighbor 192.168.9.21 route-map All in
  neighbor 192.168.9.21 route-map All out
exit-address-family
!
address-family ipv6 unicast
  redistribute connected
exit-address-family
!
route-map All permit 20
match ip address prefix-list All
!
line vty
!
bfd
peer 192.168.9.21
!
!
end


Both routers are advertising

Router A
BGP neighbor is 192.168.9.31, remote AS 65555, local AS 65551, external link
Hostname: SFW.localdomain
  BGP version 4, remote router ID 192.168.9.31, local router ID 192.168.11.2
  BGP state = Established, up for 00:00:03
  Last read 00:00:02, Last write 00:00:02
  Hold time is 180, keepalive interval is 60 seconds
  Neighbor capabilities:
    4 Byte AS: advertised and received


Router B
BGP neighbor is 192.168.9.21, remote AS 65551, local AS 65555, external link
Hostname: MFW.localdomain
  BGP version 4, remote router ID 192.168.11.2, local router ID 192.168.9.31
  BGP state = Established, up for 00:00:05
  Last read 00:00:04, Last write 00:00:04
  Hold time is 180, keepalive interval is 60 seconds
  Neighbor capabilities:
    4 Byte AS: advertised and received


Nt sure where the problem lies, seeing the below in logs.

Router A
2023-08-07T20:29:35 Notice zebra client 31 says hello and bids fair to announce only vnc routes vrf=0
2023-08-07T20:29:35 Notice frr_carp FRR received carp configuration event.
2023-08-07T20:29:35 Notice zebra client 28 says hello and bids fair to announce only bgp routes vrf=0
2023-08-07T20:29:35 Error bgpd [EC 100663304] ERROR: No such command on config line 34: ip prefix-list All seq 10 permit Any
2023-08-07T20:29:34 Error bgpd [EC 100663304] ERROR: No such command on config line 34: ip prefix-list All seq 10 permit Any


Router B
2023-08-07T20:36:18 Error bgpd [EC 100663299] %bgp_getsockname() failed for accept from_peer 192.168.9.21 fd 22 (peer fd 19)
2023-08-07T20:36:18 Error bgpd [EC 100663299] Can't get remote address and port: Socket is not connected
2023-08-07T20:36:18 Error bgpd [EC 33554465] 192.168.9.21 [FSM] Ignoring event BGP_Start in state Connect, prior events ConnectRetry_timer_expired, ConnectRetry_timer_expired, fd 22
2023-08-07T20:28:55 Error bgpd [EC 100663304] ERROR: No such command on config line 34: ip prefix-list All seq 20 permit Any
2023-08-07T20:28:55 Error bgpd [EC 100663304] ERROR: No such command on config line 34: ip prefix-list All seq 20 permit Any
2023-08-07T20:28:17 Warning zebra [EC 4043309122] Client 'bfd' encountered an error and is shutting down.
2023-08-07T20:28:17 Warning zebra [EC 4043309122] Client 'bgp' encountered an error and is shutting down.


Any thoughts ?!

I tested this configuration in version 23.1.9, and it worked fine, after upgrading a new install it does not work.

The problem is I can't install FRR in 23.1.9 without upgrading, if anyome knows how to do that, that would be great too..

Thanks..

Found the issue to be name of Prefix List and Route Maps, both were same.

Changed them to different names, and now neighbors populating routes.