Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Route Tags

Direct answer

A route tag is a number attached to a route when it is redistributed (set tag). Other routers can match it (match tag) to recognise where the route came from — the standard way to stop routes being redistributed back into their source.

When to use this

Use it whenever routes are redistributed at more than one point, or in both directions.

First 30 seconds

1. show ip route <prefix> — does the redistributed route carry the expected tag?

2. show ip ospf database external <prefix> / show ip eigrp topology <prefix> — tag in the protocol?

3. On the opposite redistribution: does the route-map deny that tag?

4. Route reappearing in its source domain → the deny is missing.

5. Verify on both redistribution routers.

Operational verification

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

Evidence · next step

Verify the same prefix/tag at every redistribution boundary.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Tags set at one redistribution point only.
  • Tag values overlapping with other uses.
  • Forgetting that OSPF can only tag external routes (type 5 and 7 LSAs), so tags must be set when routes are redistributed.
Platform / version applicability
Cisco IOS / IOS XE
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.

PlatformCisco IOS / IOS XE
Key commandmatch tag <tag>
Scope / prerequisiteUse it whenever routes are redistributed at more than one point, or in both directions.
Reference · 2
What next?3 suggested next steps
Catalog command links2
Evidence1
On this pageJump to a specific section
Cisco IOS / IOS XE first

Primary Commands

Configuration and operational commands for this Topic.

Evidence references

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.

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

Tag on the way in, deny that tag on the way out. OSPF external and EIGRP external routes carry the tag; across BGP it is not carried automatically. Pick one tag value per origin domain and document it.

Key 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.
ReferenceWhat it is1 section · depth on demand

How it works

A route tag is a number attached to a route when it is redistributed. Other routers can match the tag to filter or treat the route differently — mostly to stop routes being redistributed back into the protocol they came from in mutual redistribution.

ReferenceImportant terms & boundaries3 sections · depth on demand

Key points

  • A tag is not an IP packet field
  • Tags are locally interpreted policy metadata carried where the receiving protocol supports them
  • set tag can mark imported routes; match tag can block or classify them at another boundary
  • Tag values need a documented ownership convention to remain meaningful.

In depth

Worked two-point mutual redistribution with tags

R1 and R2 both redistribute between OSPF 1 and EIGRP 100. Each router tags what it injects and refuses routes carrying the other domain's tag:

route-map EIGRP-TO-OSPF deny 10
 match tag 110                ! originally from OSPF — do not send back
route-map EIGRP-TO-OSPF permit 20
 set tag 90                   ! mark as EIGRP-origin
!
route-map OSPF-TO-EIGRP deny 10
 match tag 90
route-map OSPF-TO-EIGRP permit 20
 set tag 110
!
router ospf 1
 redistribute eigrp 100 subnets route-map EIGRP-TO-OSPF
router eigrp 100
 redistribute ospf 1 metric 10000 100 255 1 1500 route-map OSPF-TO-EIGRP

Both routers must use the same tag values; a tag set on only one redistribution point protects only that direction.

Where the tag is visible

ProtocolCommandField
RIBshow ip route 10.20.0.0Tag 90
OSPFshow ip ospf database external 10.20.0.0External Route Tag: 90
EIGRPshow ip eigrp topology 10.20.0.0/24Administrator tag is 110 (external routes only)

Limits

OSPF carries tags in Type 5/7 external LSAs, and EIGRP in the external route TLV; internal routes are not tagged this way. BGP has no route tag — use communities when routes cross BGP and must be recognised later. A tag also says nothing about who set it, so pick values documented per redistribution point and avoid reusing the same numbers for unrelated policy.

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

Tagging to prevent loops

route-map OSPF-TO-EIGRP deny 10
 match tag 100                 ! came from EIGRP originally
route-map OSPF-TO-EIGRP permit 20
 set tag 200

Documented example, not captured output. Each redistribution point tags what it injects and denies routes carrying the other side's tag. Check tags with show ip route <prefix> ("Tag 100").

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 docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Routing → Route Redistribution → Route Tags. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Terminology layer

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.

Aliases that resolve here
route tagset tagmatch tag
Confirmation

Confirm action

Continue?