Pcornel
Networking · Routing › Route Redistribution

Route-map Policy

Cheat sheet · https://pcornel.dk/topic.php?topic=2613

Back to the Topic

Answer

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.

Remember

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.

First checks

  • 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.

Commands

show route-map
Shows route-map sequences, match/set clauses and counters.
route-map <name> permit <sequence>
Create a route map sequence that permits matching traffic.
show ip ospf database external

Verify in this order

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

Where it usually breaks

underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2613

Confirmation

Confirm action

Continue?