[dev] Bug with ip prefix-list ?

François francois.serman at corp.ovh.com
Fri Oct 18 12:14:08 EDT 2019


Hi everyone,

I'm trying to setup prefix-list using the "ge" qualifier.

TLDR: I feel like there is an off by one error somewhere :)

I have setup 2 frr (r1 and r2) with the following configs:

hostname bgpd1
password zebra
!enable password please-set-at-here
!
!bgp mulitple-instance
!
router bgp 7675
 bgp router-id 10.0.0.10
 neighbor 10.0.0.11 remote-as 7676
!
 address-family ipv4 unicast
  neighbor 10.0.0.11 prefix-list mylist out
 exit-address-family
!
ip prefix-list mylist seq 5 permit 192.168.0.0/16
ip prefix-list mylist seq 6 permit 192.168.0.0/16 ge 24
!
log stdout


and

hostname bgpd2
password zebra
!enable password please-set-at-here
!
!bgp mulitple-instance
!
router bgp 7676
 bgp router-id 10.0.0.11
 neighbor 10.0.0.10 remote-as 7675
!
log stdout

When I try to advertise a /24 with frr, the route never reaches r2.
On the other hand, when I try with quagga, the route reaches r2:

   Network          Next Hop            Metric LocPrf Weight Path
*> 192.168.0.0/16   10.0.0.10                0             0 7675 i
*> 192.168.10.0/24  10.0.0.10                0             0 7675 i

Tested frr version: FRRouting 6.1-dev_git1042702486119 (5428d11f96b4).
Tested quagga version: 1.1.0

Am I missing something?

More news on that topic on monday. Have a nice weekend!

-- 
François



More information about the dev mailing list