set tag (redistribution)

Use this command to set a route tag to be used for redistribution by the source packet matched in this route-map.

Syntax

set tag tag
no set tag tag

Parameters

tag Specifies a route tag to be used for redistribution by the source packet matched in this route-map. Valid values: 0 - 4294967295.

Defaults

None.

Mode

Route-map configuration.

Usage

OSPF route tags are displayed in the show ip ospf database external command (see show ip ospf database.

An OSPF route tag is a 32-bit numeric value that is attached to redistributed routes into OSPF. The route tag is not used by OSPF, but can be used by other routers for making policy decisions.

The “no” form of this command deletes this route tag set clause.

Example

This example shows how to set route tag 555 as the route to be used by a match for sequence 1 of the rm5 route-map:

System(rw-config)->route-map redistribution rm5 permit 1
System(rw-config-route-map)->match ip address 1
System(rw-config-route-map)->set tag 555