The cost-style command sets the cost style of routes received and sent by an IS-IS device.
The undo cost-style command restores the default cost style of routes received and sent by an IS-IS device.
By default, the cost style of routes received and sent by an IS-IS device is narrow.
cost-style { narrow | wide | wide-compatible | { compatible | narrow-compatible } [ relax-spf-limit ] }
undo cost-style
Parameter | Description | Value |
---|---|---|
narrow | Configures an IS-IS device to receive and send only routes with cost style narrow. When the cost style is narrow, the cost of routes ranges from 1 to 63. | - |
wide | Configures an IS-IS device to receive and send only routes with cost style wide. When the cost style is wide, the cost of routes ranges from 1 to 16777215. | - |
wide-compatible | Configures an IS-IS device to receive routes with cost style narrow or wide and sent only routes with cost style wide. | - |
compatible | Configures an IS-IS device to receive and send routes with cost style narrow or wide. | - |
narrow-compatible | Configures an IS-IS device to receive routes with cost style narrow or wide and sent only routes with cost style narrow. | - |
relax-spf-limit | Configures an IS-IS device to receive routes with cost
higher than 1023. If this parameter is specified, there is no restriction on the link costs of interfaces or route costs. The cost of a received route is the actual cost. If this parameter is not specified,
the following situations occur:
|
- |
Usage Scenario
By default, the cost style of IS-IS routes is narrow, indicating that only routes with the cost ranging from 1 to 63 can be received and sent. LSPs carrying tag information to be filtered by a routing policy cannot be flooded when the cost style is narrow. The cost-style command can be used to change the cost style of IS-IS routes so that they can be transmitted successfully.
To implement extended IS-IS functions, setting the cost style of IS-IS routes to wide is recommended.
Precautions
When the cost style of a route is changed from wide to narrow, transmission of the route may be interrupted.
If you want to change the cost style of IS-IS routes, running the command while configuring basic IS-IS functions is recommended. If the cost style of IS-IS routes is changed during network operation, the IS-IS process is restarted and neighbors are disconnected.