The apply tag command sets the action for changing the tag of routes in a routing policy.
The undo apply tag command restores the default setting.
By default, the action for changing the tag of routes is not set in a routing policy.
Parameter | Description | Value |
---|---|---|
tag | Specifies the tag of routes. Routes can be tagged as required. You can set the same tag for the same type of route. Routes can be flexibly controlled and managed through tags in the routing policy. | The value is an integer ranging from 0 to 4294967295. |
Usage Scenario
To identify the routes, you can apply a routing policy containing the apply tag command to add the same tag to the matched routes.
Prerequisites
The apply tag command can be used only after the route-policy command is used.
Precautions
When a routing policy takes effects, routes will be matched by routing policies related to the tag.
BGP routes do not support tags. The apply tag command sets the tag for only IGP routes.