This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
ip prefix-list match criteria for route-map-- question #14832
Labels
triage
Needs further investigation
c4c3989cc2da# show version
FRRouting 9.1-dev-my-manual-build (c4c3989cc2da) on Linux(5.4.0-166-generic).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
configured with:
'--prefix=/usr' '--localstatedir=/var/run/frr' '--sbindir=/usr/lib/frr' '--sysconfdir=/etc/frr' '--enable-sharpd' '--enable-multipath=64' '--enable-user=frr' '--enable-group=frr' '--enable-config-rollbacks' '--enable-vty-group=frrvty' '--enable-snmp=agentx' '--enable-scripting' '--with-pkg-extra-version=-my-manual-build'
c4c3989cc2da#
(ubuntu based FRR)
I have two loopback interfaces with /24 mask configured as follows:
lo:5: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 10.5.2.1 netmask 255255.255.0
loop txqueuelen 1000 (Local Loopback)
lo:6: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 10.6.2.1 netmask 255.255.255.0
loop txqueuelen 1000 (Local Loopback)
I want to match both the prefixes in a prefix-list for a bgp route-map and apply community as follows
ip prefix-list No-Exp seq 5 permit 10.0.0.0/8
But, it's not matching the prefixes 10.5.2.0/24 and 10.6.2.0/24
I can see the hit count is always zero
c4c3989cc2da# show ip prefix-list detail
Prefix-list with the last deletion/insertion: No-Exp
ZEBRA: ip prefix-list No-Exp:
count: 1, range entries: 0, sequences: 5 - 5
seq 5 permit 10.0.0.0/8 (hit count: 0, refcount: 0)
Prefix-list with the last deletion/insertion: No-Exp
OSPF: ip prefix-list No-Exp:
count: 1, range entries: 0, sequences: 5 - 5
seq 5 permit 10.0.0.0/8 (hit count: 0, refcount: 0)
Prefix-list with the last deletion/insertion: No-Exp
BGP: ip prefix-list No-Exp:
count: 1, range entries: 0, sequences: 5 - 5
seq 5 permit 10.0.0.0/8 (hit count: 0, refcount: 0)
c4c3989cc2da#
to match the prefixes individually, I have to use two individual prefix-list sequences as follows
ip prefix-list No-Exp seq 5 permit 10.5.2.0/24
ip prefix-list No-Exp seq 6 permit 10.6.2.0/24
BGP: ip prefix-list No-Exp:
count: 2, range entries: 0, sequences: 5 - 6
seq 5 permit 10.6.2.0/24 (hit count: 7, refcount: 0)
seq 6 permit 10.5.2.0/24 (hit count: 3, refcount: 0)
I can see the hit count incrementing properly in this case.
Question is, how can I match a large number of prefixes in a single prefix-list statement since shortest global match /8 match is not working?
Thanks.
The text was updated successfully, but these errors were encountered: