The graceful-restart timer neighbor-liveness command sets the value of the Neighbor-liveness timer.
The undo graceful-restart timer neighbor-liveness command restores the default setting.
By default, the value of the Neighbor-liveness timer is 600 seconds.
Parameter | Description | Value |
---|---|---|
time | Specifies the value of the Neighbor-liveness timer. | The value is an integer ranging from 3 to 3600, in seconds. |
Usage Scenario
The value of the neighbor-liveness timer defines the LDP GR period.
During LDP GR, the reestablishment time of the LDP session is negotiated as 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.
In general, the default value of the timer is recommended. When the number of LSPs on a network is small, you can set a smaller value for the neighbor-liveness timer to shorten the GR period.
Prerequisites
MPLS and MPLS LDP have been enabled globally.
LDP GR has been enabled globally.
Precautions
Changing the value of the neighbor-liveness timer causes the reestablishment of all the LDP sessions.
# Set the value of the Neighbor-liveness timer to 500 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 neighbor-liveness 500 Warning: All the related sessions will be deleted if the operation is performed!Continue? (y/n)y