📘CCNP Enterprise – ENARSI (300-410)
1️⃣ What Are Route Maps?
A route map is like a set of rules applied to routes. It works with routing protocols (BGP, OSPF, EIGRP, etc.) and allows you to:
- Filter routes: Decide which routes are allowed or denied.
- Modify attributes: Change metrics, tags, or next-hop values.
- Tag routes: Mark routes so that other devices or routing decisions can use them.
Basic Structure of a Route Map
A route map consists of:
route-map <NAME> [permit|deny] <SEQUENCE_NUMBER>
match <conditions>
set <actions>
- NAME: Name of the route map.
- permit/deny: Determines if a route meeting the match conditions is permitted (and optionally modified) or denied.
- SEQUENCE_NUMBER: Order in which the route map statements are evaluated.
- match: Conditions used to identify routes (prefix lists, AS paths, metrics, tags, etc.)
- set: Actions to apply to matching routes (set next-hop, set metric, set tag, etc.)
Key idea for exam: Route maps are evaluated top-down, and the first matching sequence stops evaluation for that route.
2️⃣ Why Troubleshoot Route Maps?
When route maps don’t work as intended, it usually causes:
- Routes not being advertised or received.
- Incorrect route selection.
- Unexpected routing behavior in the network.
3️⃣ Key Areas to Check When Troubleshooting Route Maps
A. Route Map Sequence and Order
- Problem: Route map statements are processed top-down.
- Tip: If an earlier sequence denies a route, later sequences won’t apply.
- Exam point: Always check sequence numbers; missing or misordered sequences can block expected behavior.
Example:
route-map RM1 permit 10
match ip address 10
set metric 50
route-map RM1 permit 20
match ip address 20
set metric 100
If a route matches sequence 10, sequence 20 is never checked for that route.
B. Match Statements
- Match statements define which routes the route map affects.
- Common match conditions:
ip address: Match routes using prefix-lists.metric: Match routes based on metrics.tag: Match routes with a specific tag.route-type: Match internal or external routes.
Troubleshooting tip: If your route map isn’t affecting a route, check whether the match criteria actually match the route.
C. Set Actions
- Set actions define how the route is modified.
- Common set actions:
set metricorset metric-typeset tagset next-hopset local-preference(BGP-specific)set community(BGP-specific)
- Troubleshooting tip: Verify the
setcommand syntax; invalid values are ignored silently.
D. Route Tags
- Route tagging is used to identify or mark routes.
- Useful in redistribution, filtering, and controlling routing policies.
- Troubleshooting tip: Check if the tag value is correctly matched in the route map or by other route maps. If tags are missing or incorrect, routing policies won’t work.
E. Filtering and Denying Routes
- Route maps can deny or permit routes.
- Important exam point:
deny: The route is ignored by the routing protocol (not advertised or not redistributed).permit: The route is allowed, and any set actions are applied.
- Troubleshooting tip: A common mistake is denying a route when you meant to modify it. Always double-check the permit/deny logic.
F. Route Map Logging and Verification Commands
To troubleshoot route maps, Cisco provides several useful commands:
- Check applied route maps
show run | section route-map
- Check route map matches
show ip route
show ip bgp
- Debug commands
debug ip bgp updates
debug ip routing
- Verify redistribution
show ip route <protocol>
show ip protocols
- Check route tagging
show ip route tag
G. Redistribution Context
- Route maps are often applied during redistribution between protocols.
- Example:
router ospf 1
redistribute bgp 65001 subnets route-map RM-TO-OSPF
- Troubleshooting tip: Ensure that:
- The route map is applied in the correct direction.
- Match and set criteria are correct for the redistributed routes.
- Metrics or tags are consistent.
4️⃣ Common Route Map Troubleshooting Scenarios
| Scenario | Possible Cause | Troubleshooting Step |
|---|---|---|
| Route not advertised to another protocol | Deny in route map or mismatch in match statement | Check permit/deny and match conditions |
| Route has wrong metric | Set metric applied incorrectly or sequence misordered | Verify set commands and sequence numbers |
| Route is not filtered properly | Tag mismatch or missing match | Check tags and match statements |
| Route map not applied | Typo or not bound to routing protocol | Verify with show run and correct application |
5️⃣ Practical Tips for Exam
- Always check top-down evaluation: Sequence numbers matter.
- Understand permit vs. deny: Deny stops a route; permit allows modifications.
- Match before set: Only matching routes get modified.
- Tags are critical for redistribution: Check if tags are applied correctly.
- Use show commands to verify real routing information after applying a route map.
✅ Summary
- Route maps = advanced routing filters and modifiers.
- Troubleshooting involves checking:
- Sequence numbers
- Match statements
- Set actions
- Tags
- Redistribution applications
- Exam focus: Know how route maps affect routing protocols, how to verify them, and how to fix common issues.
