R2 applies community AS:NN to inbound updates of R3
route-map test permit 10
set weight 0
set origin igp
set community AS:NN
then while sending the updates to R1 and applies the following route map
route-map set-next-hop permit 5
match community comm
set ip next-hop loopback0
loopback0 is the R2 loopback IP address.
ip community-list standard comm permit AS:NN
While I do (on R2) "show ip bgp neigbors <R1-router id> advertised-routes", I can see that next hop of R3 prefixs is not changed.
but at R1, its getting R3 prefix with next hop as R2 loopback0.
anyone who can help here ???
This is also normal behavior. These counters displayed in the output of the "show route-map" are only incremented if the route-map is used for the purpose of Policy based routing (PBR).