# BGP - Route-Map - Prefix-List

**URL:** https://forum.networklessons.com/t/bgp-route-map-prefix-list/25839
**Category:** BGP
**Created:** [April 6, 2022, 3:09pm UTC](https://forum.networklessons.com/t/bgp-route-map-prefix-list/25839 "2022-04-06T15:09:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![beacht](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/b/898d66/32.png) [@beacht](https://forum.networklessons.com/u/beacht)
#### Post date: [April 6, 2022, 3:09pm UTC](https://forum.networklessons.com/t/bgp-route-map-prefix-list/25839/1 "2022-04-06T15:09:59Z")

</div>

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

```auto
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

---

<div class="post-metadata">

### Author: ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)
#### Post date: [April 8, 2022, 4:47am UTC](https://forum.networklessons.com/t/bgp-route-map-prefix-list/25839/2 "2022-04-08T04:47:27Z")

</div>

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
