BGP - Route-Map - Prefix-List

Hi

I’m playing about with route-maps and prefix-list and assigning the route-map to my BGP configuration in my lab. I have aggregate address of 172.129.0.0/17 and i would like advertise routes that are greater than /24 only. However when i change seq 10 permit 172.129.0.0/17 le 32 to permit 172.129.0.0/17 ge 24 my routes stop be advertised. All i would like to do in my test is stop advertising this prefix 172.129.8.0/21 and allow those prefixes that are /29, /32. I will be adding /25, /26 etc at a later date once i understand this problem.

Could you please help me understand what i’m doing wrong and is there away of doing this

ip prefix-list PL-LAB-OUT: 3 entries
   seq 5 deny 0.0.0.0/0
   seq 10 permit 172.129.0.0/17 le 32

router bgp 40002
 bgp log-neighbor-changes
 neighbor 10.1.0.150 remote-as 40001
 !
 address-family ipv4
  network 172.129.0.5 mask 255.255.255.255
  aggregate-address 172.129.0.0 255.255.128.0 as-set summary-only
  neighbor 10.1.0.150 activate
  neighbor 10.1.0.150 soft-reconfiguration inbound
  neighbor 10.1.0.150 route-map RM-LAB-PRI-OUT out
 exit-address-family

Gateway of last resort is 10.1.0.150 to network 0.0.0.0

B*    0.0.0.0/0 [20/0] via 10.1.0.150, 01:14:45
      2.0.0.0/32 is subnetted, 1 subnets
B        2.2.2.2 [20/0] via 10.1.0.150, 01:14:45
      10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C        10.1.0.144/29 is directly connected, GigabitEthernet0/1
L        10.1.0.145/32 is directly connected, GigabitEthernet0/1
      172.129.0.0/16 is variably subnetted, 12 subnets, 5 masks
B        172.129.0.0/17 [200/0], 00:51:49, Null0
C        172.129.0.5/32 is directly connected, Loopback5
C        172.129.0.8/30 is directly connected, GigabitEthernet0/0
L        172.129.0.9/32 is directly connected, GigabitEthernet0/0
C        172.129.0.16/29 is directly connected, Vlan200
L        172.129.0.17/32 is directly connected, Vlan200
O        172.129.0.24/29 [110/2] via 172.129.0.22, 01:13:35, Vlan200
C        172.129.0.32/29 is directly connected, Vlan201
L        172.129.0.33/32 is directly connected, Vlan201
O        172.129.0.40/29 [110/2] via 172.129.0.38, 01:13:45, Vlan201
C        172.129.8.0/21 is directly connected, Vlan10
L        172.129.8.1/32 is directly connected, Vlan10

Kind Regards
Thomas

Hello Thomas

Can you also share with us the configuration of the route-map named RM-LAB-PRI-OUT? Once you share that we’ll be able to respond more appropriately.

Looking forward to hearing from you!

Laz