Use it to control exactly which routes cross between protocols.
Route-map Policy
A route-map on a redistribute line decides which routes are redistributed and can set their metric, metric type and tag. Sequences are checked in order; the first match decides, and anything not matched is not redistributed.
1. show route-map <name> — sequences, match clauses and match counts.
2. Route missing → which sequence should permit it? Does its match (prefix-list, tag) cover it?
3. show ip prefix-list <name> — exact lengths, ge and le.
4. Unwanted route redistributed → an earlier permit or a sequence without match.
5. Clear and re-check counters after a change.
route installed from the source → redistribute configured on the target process → route-map permits it → seed metric set → external route advertised → neighbours install it → tag prevents it from being fed back
Verify the prefix/tag match object and route-map order.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
route-map <name> permit <sequence>Primary Commands
Configuration and operational commands for this Topic.
Show Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
Verification & 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: Trace one source route through the redistribution route-map sequence, matches, sets and destination protocol database.
Verification chain: source RIB → redistribution statement → route-map sequence → match/set → destination protocol → destination RIB/FIB
Stop condition: A route-map existing in configuration does not show the redistribution statement references it or that the route matched a permit sequence.
Step 2 Common mistakes Narrow the fault
- Route-map with no final permit, filtering everything else.
- Matching with ACL when prefix-lists were intended.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
A route-map with only deny sequences redistributes nothing — the implicit end is deny. A sequence with no match matches everything. show route-map counts matches per sequence, which shows where each route ended up.
show ip protocols— what each process redistributes, and with which route-map.show route-map <name>— sequences and how many routes or packets each matched.show ip route <prefix>— the route, its source, distance, metric and tag.show ip ospf database external <prefix>— OSPF external LSA: metric type, metric, tag.show ip eigrp topology <prefix>— EIGRP external data: origin protocol, metric, tag.
ReferenceWhat it is1 section · depth on demand
How it works
A route-map on the redistribute command selects which routes are redistributed and can set metric, metric type and tag. Entries are processed in sequence; a route that matches no permit entry is not redistributed (implicit deny).
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
How the route-map is evaluated during redistribution
| Rule | Consequence |
|---|---|
| Sequences are checked in ascending order; first match decides | A broad permit 10 makes later sequences unreachable |
Several match lines in one sequence are AND | match ip address prefix-list A + match tag 5 requires both |
Several values on one match line are OR | match tag 5 6 matches either tag |
A sequence with no match matches everything | Typical final permit 100 catch-all |
| No match at all | Implicit deny — the route is not redistributed |
deny sequence that matches | Route is dropped; set lines are irrelevant |
Worked policy — permit LANs, set type and tag, drop the rest
ip prefix-list LAN seq 5 permit 10.10.0.0/16 le 24
ip prefix-list MGMT seq 5 permit 10.99.0.0/16 le 32
!
route-map EIGRP-TO-OSPF deny 10
match ip address prefix-list MGMT
route-map EIGRP-TO-OSPF permit 20
match ip address prefix-list LAN
set metric-type type-1
set tag 90
!
router ospf 1
redistribute eigrp 100 subnets route-map EIGRP-TO-OSPF
Prefix lists match prefix and length; le 24 means "any length from /16 up to /24". An ACL in a redistribution route-map only matches the network address, so 10.10.0.0/16 and 10.10.0.0/24 are indistinguishable — one reason to prefer prefix lists.
Verify the result, not the configuration
1. show ip ospf database external on the redistributing router — which LSAs exist and with which metric type and tag.
2. On another OSPF router: show ip route ospf | include E1 — only the intended prefixes.
3. Change one input route and confirm the external LSA appears or ages out as expected.
Route-map hit counters are not a reliable proof for redistribution; the LSDB and RIB are.
Route-map example
ip prefix-list LAN permit 10.10.0.0/16 le 24
route-map EIGRP-TO-OSPF permit 10
match ip address prefix-list LAN
set metric 100
set metric-type type-1
set tag 100
route-map EIGRP-TO-OSPF deny 20
router ospf 1
redistribute eigrp 100 route-map EIGRP-TO-OSPF
Documented example, not captured output. Unmatched routes hit the implicit deny at the end of a route-map.
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 → Route Redistribution → Route-map Policy. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2475.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.