Technology: Routing
Title: Route Map
Vendor: Cisco
Software: 12.X , 15.X
Platform: ISR, ASR
The primary usage of route map configuration is to steer the traffic independent from the routing table. Route map uses match and set statements that help define the source and then destination for traffic.
Traffic is matched with ACL:
Router(config)#ip access-list standard MATCH_ACL
Router(config-std-nacl)#permit 192.168.100.0 0.0.0.255
Then ACL is used in route map statement:
Router(config)#route-map 192_REDIRECT permit 10
Router(config-route-map)#match ip address MATCH_ACL
As a result next hop and IP is chosen
Router(config-route-map)#set ip default next-hop 10.10.10.1
Router(config-route-map)#set default interface FastEthernet 0/1
Router(config)#route-map 192_REDIRECT permit 20
Apply the route map on interface which you want to take the traffic from
Router(config-if)#ip policy route-map 192_REDIRECT