➢ route-map on a Cisco router
What is a Cisco Route-Map?
A route-map is a Cisco configuration tool that acts like an "if-then" statement to control how routes are
handled or how packets are forwarded. It’s commonly used for:
• Filtering routes during redistribution (e.g., between OSPF and EIGRP).
• Policy-based routing (PBR) to direct traffic based on criteria like source address.
• Setting attributes like BGP local preference or route tags.
Simple Step-by-Step Guide to Create a Route-Map on a Cisco Router
This example shows how to create a route-map for policy-based routing (PBR) to direct traffic from a
specific source IP to a specific next-hop router. We’ll assume a basic scenario where traffic from the IT
department (source IP 192.168.1.0/24) is sent to a fast connection (next-hop 10.10.10.2).
1. Access Global Configuration Mode:
o Log in to your Cisco router via terminal (e.g., PuTTY or console cable).
o Enter privileged EXEC mode: enable
o Enter global configuration mode: configure terminal
2. Create an Access Control List (ACL) to Match Traffic:
o Define the traffic you want to match (e.g., IT department’s IP range).
o Command: ip access-list standard IT_ACL
o Specify the source IP: permit 192.168.1.0 0.0.0.255
o Exit ACL configuration: exit
3. Create the Route-Map:
o Define a route-map named, e.g., IT_FAST with a sequence number (e.g., 10).
o Command: route-map IT_FAST permit 10
o This creates a route-map with a “permit” action, meaning matching traffic will be processed
as specified.
4. Set Match Criteria:
o Link the ACL to the route-map to match the IT department’s traffic.
o Command: match ip address IT_ACL
5. Set Action for Matching Traffic:
o Specify the action, e.g., send matching traffic to a specific next-hop.
o Command: set ip next-hop 10.10.10.2
o Exit route-map configuration: exit
6. Apply the Route-Map to an Interface:
o Identify the interface where incoming traffic arrives (e.g., GigabitEthernet0/0).
o Command: interface GigabitEthernet0/0
o Apply the route-map: ip policy route-map IT_FAST
o Exit interface configuration: exit
7. Verify the Configuration:
o Check the route-map: show route-map IT_FAST
o Verify ACL: show ip access-lists IT_ACL
o Test PBR: show ip policy
o Save the configuration: write memory
Notes:
• Sequence Numbers: Route-maps use sequence numbers (e.g., 10, 20) to process clauses in order.
Lower numbers are evaluated first. Use intervals (e.g., 10) to allow future additions.
• Permit vs. Deny: A “permit” clause allows matching traffic/routes to proceed with the set action; a
“deny” clause blocks them. If no match is found, an implicit deny applies.
• Use Case: This example is for PBR. For route redistribution (e.g., OSPF to EIGRP), apply the route-
map with the redistribute command in the routing protocol configuration.
Simple Plaintext (ASCII) Representation
Below is an ASCII diagram to illustrate the PBR scenario. Traffic from the IT department (192.168.1.0/24)
enters the router and is directed to the fast connection’s next-hop (10.10.10.2) based on the route-map.