The isis peer hold-cost command sets the period during which IS-IS keeps the specified cost in the Link State PDUs (LSPs) of the local device.
The undo isis peer hold-cost command restores the default setting.
By default, after a neighbor relationship is established, IS-IS does not retain the specified cost and hold time in local LSPs.
100GE interface view, 10GE interface view, 25GE sub-interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE sub-interface view, 50GE interface view, Eth-Trunk interface view, FlexE interface view, GE optical interface view, GE electrical interface view, Global VE sub-interface view, Tunnel interface view, VBDIF interface view, VE sub-interface view, VE interface view, VLANIF interface view
Usage Scenario
When an IS-IS interface changes from down to up, the IS-IS neighbor relationship is re-established. After IGP route convergence is completed, traffic is switched back to the recovered link. As IGP routes converge fast, many services that depend on IGP routes may require a delayed switchback. After the isis peer hold-cost command is run, the IS-IS LSP on the local device retains the specified cost for a period of time. In this manner, traffic is forwarded along the original path. After the hold-cost timer expires, the cost is restored to the normal value, and traffic is switched back normally.
For P2P neighbors and broadcast neighbors, the time for starting the hold-cost timer is as follows:Precautions
This command is valid for both IPv4 and IPv6. The maximum cost time of IPv4 and IPv6 on an interface is controlled by the same timer.
If both the isis peer hold-max-cost and isis peer hold-cost commands are run, the latest configuration overrides the previous one. The isis peer-hold-cost and cost-style commands are not associated. After the isis peer-hold-cost command is run, the cost value calculated using the actual logic takes effect.