CCNP - Policy Routing

Basics

 * Used to control the path routes take.
 * Can be used to route certain types of traffic to different areas (e.g. telnet/HTTPS through one ISP link, everything else through another).
 * Enabled on the interface that takes in traffic.

Redirect Telnet Traffic
1. Router(config)#ip access-list extended [name] 2. Router(config-ext-nacl)#permit tcp [ip] [wildcard mask]  any eq 23 3. Router(config-ext-nacl)#exit 4. Router(config)#route-map [name] [sequence number] 5. Router(config-route-map)#match ip address [acl name] 6. Router(config-route-map)#set ip next-hop [ip] 7. Router(config-route-map)#exit 8. Router(config)#route-map [same name] [higher sequence number] 9. Router(config-route-map)#set ip next-hop [ip] 10. Router(config-route-map)#exit 11. Router(config)#int [interface] 12. Router(config-if)#ip policy route-map [name]
 * 1) Creates an extended ACL.
 * 2) Permits [ip] on port 23 (telnet).
 * 3) Exits access-list mode.
 * 4) Creates a route-map (sequence number defaults to 10).
 * 5) Matches the extended ACL you created.
 * 6) Sets the next-hop to [ip].
 * 7) Exits route-map mode.
 * 8) Enters the same route-map on a higer sequence number.
 * 9) Sets the next-hop to [ip] if the traffic is not on port 23.
 * 10) Note the lack of a match statement. This permits anything that doesn't match the first route-map statement you made on the previous sequence number.
 * 11) Exits route-map mode.
 * 12) Switches to interface mode.
 * 13) You should select the interface that takes in the traffic. For instance, if your network is on interface f0/0 and your ISPs are on s1/0 and s1/1, you should use f0/0.
 * 14) Enables policy routing based on the route-map you created.