match tag (filter)

Use this command to match a packet‘s OSPF tag or a range of OSPF tags.

Syntax

match tag {tag | range min-tag max-tag}
no match tag {tag | range min-tag max-tag}

Parameters

tag Specifies the tag ID to match against the packet OSPF tag. Valid values are 1 - 4294967295.
range min-tag max-tag Specifies an OSPF tag ID range:
  • min-tag - Specifies the start of the OSPF tag range.
  • max-tag - Specifies the end of the OSPF tag range.

Defaults

None.

Mode

Route-map filter configuration.

Usage

OSPF tags can be assigned to external routes that are redistributed to OSPF. The permit or deny option can be assigned and matched against the packet OSPF tag using this command.

Apply the filter route-map using the distribute-list route-map in command in OSPF router configuration command mode to prevent route matches from entering the OSPF routing table.

The “no” form of this command removes the match between an OSPF tag and this route-map.

Examples

This example shows how to match a packet OSPF tag against tag ID 13456:

System(rw-config)->route-map filter ospf1
System(rw-config-fltr)->match tag 13456

This example shows how to match a packet OSPF tag against tag ID range 13000 to 14000:

System(rw-config)->route-map filter ospf1
System(rw-config-fltr)->match tag range 13000 14000