The if-match tag command sets a matching rule that is based on the route tag.
The undo if-match tag command cancels the configuration.
By default, no matching rule based on the route tag is set.
| Parameter | Description | Value |
|---|---|---|
| tag | Increases the tag value. | The value is an integer ranging from 0 to 4294967295. |
Usage Scenario
You can run the if-match tag command to filter OSPF or IS-IS routes based on the tags.
For the same node in a route-policy, the relationship between the if-match clauses is "AND". The route must meet all the matching rules before the actions defined by the apply clauses are performed. If no if-match clause is specified, all the routes are matched.
Prerequisites
The if-match tag command can be used only after the route-policy command is used to enter the route-policy view.