The graceful-restart timer reconnect command sets the value of the Reconnect timer of an LDP session.
The undo graceful-restart timer reconnect command restores the default setting.
By default, the Reconnect timer is set to 300 seconds.
Parameter | Description | Value |
---|---|---|
time | Specifies the value of a Reconnect timer of an LDP session. | The value is an integer ranging from 3 to 3600, in seconds. |
Usage Scenario
If no LDP session between the GR helper and the GR restarter has been established after the Reconnect timer times out, the GR helper immediately deletes the MPLS forwarding entries associated with the GR restarter and exits from the GR help process.
If the LDP session between the GR helper and the GR restarter is established before the Reconnect timer times out, the GR helper deletes the timer and starts the Recovery timer.
During LDP GR, when the reestablishment time of the LDP session is negotiated, the value of the Reconnect timer that actually takes effect on the local end is the smaller value between the value of the neighbor-liveness timer on the GR helper and the value of the Reconnect timer on the GR restarter.
Prerequisites
MPLS and MPLS LDP have been enabled globally.
LDP GR has been enabled globally.
Precautions
Changing the value of the Reconnect timer causes the reestablishment of all the LDP sessions.
# Set the time of the Reconnect timer of an LDP session to 270 seconds.
<HUAWEI> system-view [HUAWEI] mpls ldp [HUAWEI-mpls-ldp] graceful-restart Warning: All the related sessions will be deleted if the operation is performed!Continue? (y/n)y [HUAWEI-mpls-ldp] graceful-restart timer reconnect 270 Warning: All the related sessions will be deleted if the operation is performed!Continue? (y/n)y