Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Route-map

Direct answer

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.

When to use this

Use it to build or check which traffic gets which treatment.

First 30 seconds

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)?

Operational verification

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

Evidence · next step

Verify the set action and next-hop/CEF evidence.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS XE
Key commandshow route-map PBR
Scope / prerequisiteUse it to build or check which traffic gets which treatment.
What next?3 suggested next steps
Evidence2
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

command output · 2
Command lookup Jump straight to Cisco syntax
Key points

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.

Key checks
  • 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

ElementPurpose
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 lengthPacket size (less common)
set ip next-hop / set ip default next-hopWhere to send them
set interface / set ip vrfAlternative actions
No match in any entryRouted 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

PointDetail
DirectionApplies to packets received on the interface, not sent
Router-generated trafficNeeds ip local policy route-map
Return trafficNot affected; asymmetric paths may break stateful firewalls
HardwareOn switches, PBR is programmed in TCAM; check platform limits

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 2475

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%
Embedded reference data

Quick lookup tables

PBR route-map outcomes

What happens when a sequence matches

Route-map outcomePBR result
Matching permit + usable set actionPolicy forwarding action is used
Matching denyPBR bypass; normal destination routing
No matching sequenceNormal destination routing
Matching permit but forwarding action is not usableVerify platform/action fallback and normal-routing behavior with live evidence
Confirmation

Confirm action

Continue?