The if-match tag command sets a matching rule that is based on the route tag.
The undo if-match tag command deletes the matching rule based on the specified route tag.
By default, no matching rule based on the route tag is configured.
Parameter | Description | Value |
---|---|---|
tag | Indicates the tag value. Route tags classify routes as required. The same type of routes has the same tags. Routes are managed and controlled based on the tag by using the routing policy. |
The value is an integer ranging from 0 to 4294967295. |
Usage Scenario
You can run the if-match tag command to filter routes based on the tags.
Prerequisites
The if-match tag command can be used only after the route-policy command is used.
Precautions
The routing policy matches routes based on the route tag. Routes that match the route tag will be checked by other if-match clauses of this node. Routes that do not match the route tag will be checked by the next node.