The timer keepalive hold command sets the Keepalive time and hold time.
The undo timer keepalive hold command restores the default Keepalive time and hold time.
By default, the Keepalive time is 60s, and the hold time is 180s.
Parameter | Description | Value |
---|---|---|
hold hold-time |
Specifies the hold time. |
The value is an integer that can be 0, or ranges from 3 to 65535, in seconds. |
min-holdtime min-hold-value |
Specifies the minimum hold time. On the same device, min-hold-value must be less than hold-time. |
The value is an integer ranging from 20 to 65535, in seconds. |
keepalive keepalive-time |
Specifies the Keepalive time. |
The value is an integer ranging from 0 to 21845, in seconds. |
Usage Scenario
After a connection is established between peers, keepalive-time and hold-time are negotiated by the peers.
Configuration Impact
The timers configured for a specific peer or peer group using the peer timer command override the timers configured for all BGP peers using the timer command.
Precautions
If the value of a timer changes, the BGP peer relationship between devices is disconnected. This is because the devices need to re-negotiate keepalive-time and hold-time. Therefore, exercise caution before changing the value of a timer.
Setting the hold time to a value at least three times the Keepalive time is recommended. When setting keepalive-time and hold-time, note the following points:<HUAWEI> system-view [~HUAWEI] bgp 100 instance a [*HUAWEI-bgp-instance-a] timer keepalive 30 hold 90 min-holdtime 60
<HUAWEI> system-view [~HUAWEI] bgp 100 instance a [*HUAWEI-bgp-instance-a] timer keepalive 30 hold 90