How to configure Policy Based Routing

Hi Pramod,

Your configuration looks ok, the strange thing is that the first packet matches but the second one doesn’t? What hardware are you using for this?

Here’s an example when I configure and debug it:

P: s=192.168.12.1 (FastEthernet0/0), d=4.4.4.4, len 100, FIB policy match
IP: s=192.168.12.1 (FastEthernet0/0), d=4.4.4.4, len 100, PBR Counted
IP: s=192.168.12.1 (FastEthernet0/0), d=4.4.4.4, len 100, policy match
IP: route map PBR, item 10, permit
IP: s=192.168.12.1 (FastEthernet0/0), d=4.4.4.4 (FastEthernet0/1), len 100, policy routed
IP: FastEthernet0/0 to FastEthernet0/1 192.168.23.100
IP: s=192.168.12.1 (FastEthernet0/0), d=4.4.4.4, len 100, FIB policy match
IP: s=192.168.12.1 (FastEthernet0/0), d=4.4.4.4, len 100, PBR Counted
IP: s=192.168.12.1 (FastEthernet0/0), d=4.4.4.4, len 100, policy match
IP: route map PBR, item 10, permit
IP: s=192.168.12.1 (FastEthernet0/0), d=4.4.4.4 (FastEthernet0/1), len 100, policy routed

All packets are matched & policy routed.

Rene