Cloud Sovereignty & Platforms NetworkingCisco ·

PBR - Policy Based Routing

Practical notes on pbr - policy based routing — Networking, Cisco configuration, design, and troubleshooting guidance.

!!!Most Important: To DEBUG the Policy Map:
#debug ip policy

To match the SOURCE IP use the standard ACL:

(config)#access-list 2 permit host 100.1.1.1

To match the FLOW use the EXTENDED ACL:

(config)#ip access-list extended FLOW1
(config-ext-nacl)#permit ip host 1.1.1.1 host 2.2.2.2** <-TO MATCH THE FLOW
(config-ext-nacl)#permit tcp any any eq 23** <- TO MATCH THE PROTOCOL(PORT)
ROUTE-MAP can be applied GLOBALLY on a router, to change the Routing Table:
(config)#ip local policy route-map ROUTE_MAP

!!!This will not work for traffic transiting this router. For that you need to apply it on the interface