Use it to build or check which traffic gets which treatment.
Route-map
The route-map in policy-based routing lists sequences of match and set clauses. Each packet is checked against the sequences in order; the first sequence it matches applies its set clauses. A packet that matches none is routed normally.
1. show route-map <name> — sequences in order, with match and set clauses.
2. Policy-routed packet count per sequence rising where expected?
3. Traffic in the wrong sequence → order, or a sequence without match.
4. No sequence matches → the match ACLs.
5. Route-map applied (show ip policy)?
route-map applied on the ingress interface → ACL matches the flow → route-map sequence permits → next hop set and reachable → packet forwarded via the policy path; non-matching traffic routed normally
Verify the set action and next-hop/CEF evidence.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show route-map PBRVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 First 30 seconds Verify boundary
Immediate answer: Verify route-map sequence order, match object, set action and interface attachment with a controlled ingress flow.
Verification chain: ingress interface → route-map sequence → match counter → set action → next-hop resolution → FIB/egress → return path
Stop condition: A route-map definition does not show PBR is attached or that the test flow matched the intended sequence.
Step 2 Commands Verify boundary
show route-map PBR ! policy routing matches: n packets
show ip policy
debug ip policy ! lab only
Step 3 Common mistakes Narrow the fault
- Route-map applied outbound — PBR works only on ingress.
- Missing a final permit for traffic that should use normal routing.
Evidence · 2 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
The expected permit sequence counter increases only when the controlled test flow is generated.
command output · Evidence referencePBR sequence counter stays zeroThe intended sequence counter does not change during the controlled flow.
A deny sequence that matches means "do not policy-route". A sequence without match matches every packet. Several match clauses of different types must all match. Counters per sequence show where packets land.
show ip policy— interfaces with a policy and the route-map used.show route-map <name>— sequences, matches, set clauses and policy-routed packet counts.show access-lists <acl>— hits on the classifying ACL.show ip cef <next hop>— whether the set next hop is reachable.debug ip policy— per-packet decisions; restrict and use briefly.
ReferenceWhat it is1 section · depth on demand
What it is
A PBR route-map is an ordered policy made of numbered sequences. Each sequence can contain match conditions and set actions. A matching permit sequence can policy-route the packet; a matching deny sequence or the absence of a matching permit sequence leaves the packet to normal destination routing.
ReferenceHow it works1 section · depth on demand
Permit and deny mean policy action
For PBR, route-map permit/deny controls whether the matching packet receives PBR treatment. A matching deny sequence is a deliberate bypass to normal routing, not a packet-filter deny. Keep this separate from the permit/deny semantics of an ACL used as the match classifier.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Route maps for policy-based routing
Policy-based routing (PBR) forwards packets by policy instead of by destination alone. It's built from a route map applied to the ingress interface with ip policy route-map. Cisco's PBR technote shows the structure: an access list defines the traffic, a route-map entry matches it with match ip address and sets the forwarding action with a set command.
Route map structure for PBR
| Element | Purpose |
|---|---|
route-map NAME permit <seq> | Packets matching this entry are policy-routed |
route-map NAME deny <seq> | Matching packets are routed normally |
match ip address <acl> | Which packets (source, destination, protocol, ports) |
match length | Packet size (less common) |
set ip next-hop / set ip default next-hop | Where to send them |
set interface / set ip vrf | Alternative actions |
| No match in any entry | Routed normally |
R1(config)# ip access-list extended GUEST-WEB
R1(config-ext-nacl)# permit tcp 10.150.0.0 0.0.0.255 any eq 443
R1(config-ext-nacl)# permit tcp 10.150.0.0 0.0.0.255 any eq 80
R1(config)# route-map PBR-GUEST permit 10
R1(config-route-map)# match ip address GUEST-WEB
R1(config-route-map)# set ip next-hop 203.0.113.33
R1(config)# interface GigabitEthernet0/0/2.150
R1(config-subif)# ip policy route-map PBR-GUEST
R1# show route-map PBR-GUEST
route-map PBR-GUEST, permit, sequence 10
Match clauses:
ip address (access-lists): GUEST-WEB
Set clauses:
ip next-hop 203.0.113.33
Policy routing matches: 48211 packets, 31904420 bytes
R1# show ip policy
Interface Route map
Gi0/0/2.150 PBR-GUEST
Verification (technote)
debug ip policy reports for each packet whether it matched and was policy-routed, or the policy was rejected and normal forwarding used; use it with care on a busy router.
Things to know
| Point | Detail |
|---|---|
| Direction | Applies to packets received on the interface, not sent |
| Router-generated traffic | Needs ip local policy route-map |
| Return traffic | Not affected; asymmetric paths may break stateful firewalls |
| Hardware | On switches, PBR is programmed in TCAM; check platform limits |
Documented example, not captured output.
Quick reference
A route-map is Cisco's general-purpose policy tool: an ordered list of entries, each with match conditions and actions. It is used for PBR, redistribution filtering, BGP policy and more. How entries are evaluated — top to bottom, first match wins, with an implicit deny at the end — determines the result, so reading a route-map correctly is a core skill.
Route-maps are ordered sequences of match/set statements; permit sequences apply sets, deny sequences exclude, and an implicit deny ends the map (for PBR: implicit "route normally").
route-map RM permit 10
match ip address ACL-A
set ip next-hop 10.1.1.1
route-map RM deny 20
match ip address ACL-B
route-map RM permit 30
show route-map RM ! policy match counters
Multiple match lines in one sequence are ANDed; multiple values in one match line are ORed.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Routing → Policy-Based Routing → Route-map. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2475.html · confidence 94%Quick lookup tables
PBR route-map outcomes
What happens when a sequence matches
| Route-map outcome | PBR result |
|---|---|
| Matching permit + usable set action | Policy forwarding action is used |
| Matching deny | PBR bypass; normal destination routing |
| No matching sequence | Normal destination routing |
| Matching permit but forwarding action is not usable | Verify platform/action fallback and normal-routing behavior with live evidence |