set protocols bgp neighbor timers holdtime


The set protocols bgp neighbor timers connect holdtime command sets the hold time for a BGP peer.
The delete protocols  bgp neighbor timers connect holdtime command removes the configurations.


Command Syntax

set protocols bgp [vrf <vrf-name>{neighbor <ip>| peer-group <peer-group> | interface <interface>} timers holdtime <hold time>

delete protocols bgp [vrf <vrf-name>{neighbor <ip>| peer-group <peer-group> | interface <interface>} timers holdtime


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 <ip>Specifies the IPv4/IPv6 address of a peer.
peer-group <peer-group>Specifies a peer group.
interface <interface>Specifies an L3 interface for BGP connection. The value could be a VLAN interface name, loopback interface name, routed interface or sub-interface name.
<hold time>Specifies 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 hold time to 30 seconds.

admin@XorPlus# set protocols bgp neighbor 2.2.2.2 timers holdtime 30
admin@XorPlus# commit


Copyright © 2024 Pica8 Inc. All Rights Reserved.