The cost-style command sets a cost type for the routes that can be received and those to be sent by an IS-IS device.
The undo cost-style command restores the default value.
This command varies in transport and router modes. For detailed differences, see Differences Between Commands in Transport and Router Modes. This topic describes the command configuration in router mode.
By default, the cost type of IS-IS routes is narrow.
Parameter | Description | Value |
---|---|---|
narrow |
Indicates that the cost type for the routes that can be received and those to be sent by an IS-IS device is narrow. |
- |
wide |
Indicates that the cost type for the routes that can be received and those to be sent by an IS-IS device is wide. |
- |
wide-compatible |
Indicates that the route with the cost type of narrow or wide can be received, but only the route with the cost type of wide can be sent. |
- |
compatible |
Indicates the route with the cost type of narrow or wide can be received and sent. |
- |
narrow-compatible |
Indicates that the route with the cost type of wide or narrow can be received, but only the route with the cost type of narrow can be sent. |
- |
relax-spf-limit |
Enable the device to receive the route with a cost greater than 1023.
|
- |
Usage Scenario
By default, the cost type of IS-IS routes is narrow, which means that only routes with the cost ranging from 1 to 63 can be received and sent. LSPs carrying TE information when IS-IS is applied to MPLS TE or LSPs carrying tag information to be filtered by a route-policy cannot be flooded when the cost type is narrow. The cost-style command can be used to change the cost type of IS-IS routes so that they can be transmitted successfully.
To implement extended IS-IS functions, setting the cost type of IS-IS routes to wide is recommended. The relax-spf-limit parameter is only valid when the overhead type is set to compatible and narrow-compatible.Prerequisites
An IS-IS process has been created using the isis command.
Configuration Impact
When the cost type of a route is changed from wide to narrow, transmission of the route may be interrupted.
Precautions
If you want to change the cost type of IS-IS routes, running the command and configuring basic IS-IS functions is recommended. If the cost type of IS-IS routes is changed during network operation, the IS-IS process is restarted and neighbors are disconnected.
Before you enable TE for an IS-IS process, use the cost-style command in IS-IS view to set the cost type of IS-IS packets to wide, compatible, or wide-compatible.