The set protocols bgp neighbor timers connect command sets the keepalive interval and hold time for a BGP peer.
The delete protocols bgp neighbor timers connect command removes the configurations.
Command Syntax
set protocols bgp [vrf <vrf-name>] neighbor <bgppeer> timers <keepalive interval> <hold time>
delete protocols bgp [vrf <vrf-name>] neighbor <bgppeer> timers <keepalive interval> <hold time>
Parameter
Parameter | Description |
vrf <vrf-name> | Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>]. |
neighbor <bgppeer> | Specifies the IP address of a peer. |
<keepalive interval> | Specifies the keepalive interval value for the neighbor. Default: 3 seconds. Range: 0-65535. |
<hold time> | Specifies the keepalive interval value for the hold time. Default: 9 seconds. Range: 0-65535. |
Usage Guidelines
By default, BGP exchanges periodic keepalive messages to measure and ensure that a peer is still alive and functioning. If a keepalive or update message is not received from the peer within the hold time, the peer is declared down and all routes received by this peer are withdrawn from the local BGP table. By default, the keepalive interval is set to 3 seconds and the hold time is set to 9 seconds. To decrease CPU load, especially in the presence of a lot of neighbors, you can increase the values of these timers or disable the exchange of keepalives entirely. When manually configuring new values, the keepalive interval can be less than or equal to one third of the hold time, but cannot be less than 1 second. Setting the keepalive and hold time values to 0 disables the exchange of keepalives.
Example
• This example set the keepalive interval to 10 seconds and the hold time to 30 seconds.
admin@XorPlus# set protocols bgp neighbor 2.2.2.2 timers 10 30 admin@XorPlus# commit