CX320 Switch Module V100R001 Command Reference 14
apply cost
Function
The apply cost command sets the action for changing the cost of routes in a routing policy.
The undo apply cost command restores the default setting.
By default, the action for changing the cost of routes is not set in a routing policy.
Parameters
Parameter | Description | Value |
---|---|---|
apply-type | Specifies the cost type of routes. |
|
cost | Specifies the route cost. To control route selection, you can adjust the route cost to prevent routing loops. | The value is an integer ranging from 0 to 4294967295. |
inherit | Inherits the original route cost. | - |
Usage Guidelines
Usage Scenario
To change the cost of routes for selecting the optimal route, you can apply a routing policy containing the apply cost command.
Prerequisites
The apply cost command can be used only after the route-policy command is used.
Precautions
When a routing policy takes effect, it affects route selection.
The costs of imported routes are independent of the routing policy after the undo apply cost command is used to cancel the configuration of route costs.
Document ID:EDOC1000128405
Views:7708237
Downloads:2083
Average rating:4.75Points