The if-match cost command sets a filtering rule that is based on the route cost.
The undo if-match cost command cancels the configuration.
By default, no filtering rule based on the route cost is set.
Parameter | Description | Value |
---|---|---|
cost |
Specifies the route cost. Route costs can be changed to prevent routing loops. |
The value is an integer ranging from 0 to 4294967295. |
greater-equal greater-equal-value |
Specifies the minimum value of route cost. |
The value is an integer ranging from 0 to 4294967294. |
less-equal less-equal-value |
Specifies the maximum value of route cost. |
The value is an integer ranging from 1 to 4294967295. less-equal-value is demanded to be greater than greater-equal-value.If greater-equal is specified, but less-equal is not, the maximum value 4294967295 is used as less-equal. If less-equal is specified, but greater-equal is not, the minimum value 0 is used as greater-equal. |
Usage Scenario
You can use the if-match cost command to configure a node to filter routes based on the route cost. After such a filtering rule is configured, you can apply the apply clauses to change the attributes of the routes that match the filtering rule.
Prerequisites
A route-policy has been configured using the route-policy command.
Configuration Impact
When you filter routes based on the cost, only the routes that match the filtering conditions can match the route-policy.