router eigrp 19001
network X.X.X.128 0.0.0.3
network X.X.X.X 0.0.0.7
router bgp 19001
redistribute eigrp 19001 route-map serial-active
! configuration truncted
route-map serial-active permit 10
match ip next-hop serial-active
ip access-list standard serial-active
Above Configuration is redistributing only those EIGRP 19001 routes, which has next-hop IP address 18.104.22.168, into BGP.
The same name 'serial-active' is used for both Route-map name & ACL name. please don't confuse with it.
I verified that EIGRP routes are being redistributed into BGP as required. Everything is working fine.
But I am confused with the below output, it showing 0 packet is matched for policy routing.
Router#show route-map serial-active
route-map serial-active, permit, sequence 10
ip next-hop (access-lists): serial-active
Policy routing matches: 0 packets, 0 bytes
Though sh ip access-lists command is showing 36269 matches for the ACL.
Router#sh ip access-lists serial-active
Standard IP access list serial-active
permit X.X.X.129 (36269 matches)
Can someone help me to understand this behavior, why route-map is showing 0 match & while ACL has 36269 matches?
Thanks in advance.
There is a simple explanation for this: you are using the route map to control redistribution and are not using it for policy based routing. Therefore the count for policy routing does not increment.