We have a longtime and annoying problem in using NetFlow with policy-based routing. Consider a situation when traffic arriving at the input router intfc is routed to loopback via PBR (route map -> set int loop 1). And we want to use that loopback to get flow data (int loop 1 - ip flow ingress/egress). The command applies but there is no output in "sh ip cache flow". If enabled on physical intfc, there is output. Anyway, traffic is routed correctly but "sh int loop 1" gives 0 bytes input, although "sh int loop 1 accounting" gives correct in/out figures. Can anyone tell what is wrong? Can we get flow statistics from loopback intfc by any means?
Thanks in advance.