I recently implemented a policy routing setup on a Cat3750 stack in our network. Since the switch handles a high volume of traffic, I wanted to be sure to add 'ip route-cache policy' to the interfaces where policy routing is applied, in order to fast-switch the policy packets.
Well, policy routing is enabled and working, but when I issue the 'show ip cache policy' command, nothing shows up.
I can only conclude one of two things:
1) Policy routing is not being fast-switched
2) The policy routing info is loaded into ASICs and will be hardware switched. Thus, the command 'ip route-cache policy' may only be applicable to software routers and not layer 3 switches such as the Cat3750.
I have noted similar behavior on a Cat4510R switch, with SupV. Policy routing is also working, but nothing shows up in the output of 'show ip cache policy'.
Can anyone confirm whether #2 is in fact the way this is operating? The documentation implies that it is needed, but I suspect that it was written for a software router, and not a layer 3 switch.
your understanding is correct:
multilayer switches are able to implement PBR by modifiying the action field in the TCAM tables where a pointer to the PBR next-hop can be placed instead of the "natural" destination based IP next-hop.
You can see the TCAM as a generalization of the CAM table of a L2 switch that allows to handle L3 switched flows.
This allows for an efficient implementation of PBR with no performance penalties but with some limitations on the possible set and match commands.
Hope to help