Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
(Optional) Setting the Hold-max-cost Timer Value
(Optional) Setting the Hold-max-cost Timer Value
Context
If an LDP session or LDP adjacency over the active link fails but an IGP route for the active link is reachable, a node that has LDP-IGP synchronization enabled uses a Hold-max-cost timer to enable an IGP to advertise LSAs or LSPs carrying the maximum route cost, which delays IGP route convergence until an LDP session or LDP adjacency is established. Therefore, an IGP route for a standby link and an LDP session over the standby link can become available simultaneously.
You can set the Hold-max-cost timer value in either of the following methods:
Setting the Hold-max-cost timer value in the interface view
You can set the Hold-max-cost timer value on a specified interface. This mode applies to the scenario where a few interfaces need to use the Hold-max-cost timer.
Setting the Hold-max-cost timer value in the IGP process
After you set the Hold-max-cost timer value in the IGP process, the Hold-max-cost timers on all interfaces in the IGP process are set to this value. This mode applies to the scenario where many interfaces on a node need to use the Hold-max-cost timer.
Select parameters based on networking requirements:
If an IGP carries only LDP services, configure the parameter infinite to ensure that a selected IGP route is kept consistent with the LDP LSP.
If an IGP carries multiple types of services including LDP services, set the value of the parameter value to ensure that a teardown of LDP sessions or LDP adjacency does not affect IGP route selection or other services.
Procedure
If OSPF is used as an IGP, perform the following steps:
Set the Hold-max-cost timer on a specified OSPF interface.
Run system-view
The system view is displayed.
Run interfaceinterface-typeinterface-number
The interface view is displayed.
On an Ethernet interface, run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
The mode switching function takes effect when the interface only has attribute configurations (for example, shutdown and description configurations). Alternatively, if configuration information supported by both Layer 2 and Layer 3 interfaces exists (for example, mode lacp and lacp system-id configurations), no configuration that is not supported after the working mode of the interface is switched can exist. If unsupported configurations exist on the interface, delete the configurations first and then run the undo portswitch command.
If many Ethernet interfaces need to be switched to Layer 3 mode, run the undo portswitch batchinterface-type { interface-number1 [ tointerface-number2 ] } &<1-10> command in the system view to switch these interfaces to Layer 3 mode in batches.
Run ospf timer ldp-sync hold-max-cost{ value | infinite }
The interval for advertising the maximum cost in the LSAs of local LSRs through OSPF is set.
By default, the local device running OSPF keeps advertising the maximum cost by sending LSAs.
Run commit
The configuration is committed.
Set the Hold-max-cost timer on all OSPF interfaces in a specified OSPF process.
Run system-view
The system view is displayed.
Run ospf [ process-id ]
A specified OSPF process is started and the OSPF view is displayed.
Run areaarea-id
The OSPF area view is displayed.
Run timer ldp-sync hold-max-cost { infinite | interval }
The Hold-max-cost timer is set, which enables OSPF to keep advertising LSPs carrying the maximum route cost on all interfaces within an OSPF process.
By default, the local device running OSPF keeps advertising the maximum cost by sending LSAs.
Run commit
The configuration is committed.
If IS-IS is used as an IGP, perform the following steps:
Set the Hold-max-cost timer on a specified IS-IS interface.
Run system-view
The system view is displayed.
Run interfaceinterface-typeinterface-number
The interface view is displayed.
On an Ethernet interface, run undo portswitch
The interface is switched to Layer 3 mode.
By default, an Ethernet interface works in Layer 2 mode.
The mode switching function takes effect when the interface only has attribute configurations (for example, shutdown and description configurations). Alternatively, if configuration information supported by both Layer 2 and Layer 3 interfaces exists (for example, mode lacp and lacp system-id configurations), no configuration that is not supported after the working mode of the interface is switched can exist. If unsupported configurations exist on the interface, delete the configurations first and then run the undo portswitch command.
If many Ethernet interfaces need to be switched to Layer 3 mode, run the undo portswitch batchinterface-type { interface-number1 [ tointerface-number2 ] } &<1-10> command in the system view to switch these interfaces to Layer 3 mode in batches.
Run isis timer ldp-sync hold-max-cost { value | infinite }
The value of the Hold-max-cost timer is set.
By default, the local device running IS-IS keeps advertising the maximum cost in Link State PDUs.
Run commit
The configuration is committed.
Set the Hold-max-cost timer on all IS-IS interfaces in a specified IS-IS process.
Run system-view
The system view is displayed.
Run isis [ process-id ]
A specified IS-IS process is restarted and the IS-IS view is displayed.
Run timer ldp-sync hold-max-cost { infinite | interval }
The Hold-max-cost timer is set, which enables IS-IS to keep advertising LSPs carrying the maximum route cost on all interfaces within an IS-IS process.
By default, the local device running IS-IS keeps advertising the maximum cost in Link State PDUs.