Is traffic from specified source hitting my PBR?

I am trying to determine if a policy based routing rule is being hit.

ip access-list send-to-pbr
  10 remark Send traffic for PBR logic
  20 permit ip address group voodoo1 any
  30 permit ip address group voodoo2 any

route-map internet-pbr deny 10
  match ip address bypass-pbr
route-map internet-pbr permit 20
  match ip address send-to-pbr
set ip next-hop

Should show access-list send-to-pbr display hits occasioned by the pbr?
Should I be able to see this with show route-map internet-pbr?

I tried the latter and get an error message about stats not being enabled.
sho route-map internet-pbr pbr-statistics
% PBR statistics is not enabled for given route-map
amigan_99Network EngineerAsked:
Who is Participating?
JustInCaseConnect With a Mentor Commented:
Issue command route-map internet-pbr pbr-statistics  to start gather statistics.
After that sho route-map internet-pbr pbr-statistics will show statistics.

To check PBR you can also debug ip policy:
debug ip policy

Is policy applied to proper interface in proper direction?
Sandeep GuptaConsultantCommented:
you can run and see hits

show ip access-list send-to-pbr
show route-map internet-pbr
Neither show ip access-list, nor show route-map commands will show hits when used with PBR.
amigan_99Network EngineerAuthor Commented:
Thanks much Predrag.
You're welcome.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.