Adjusts the interval at which BGP KEEPALIVE and HOLDTIME messages are sent.
BGP configuration mode
The KEEPALIVE and HOLDTIME message interval is overwritten when the fast-external-failover command takes effect on a down link to a peer.
You must enter a value for keep-alive before you can enter a value for hold-time. Both values must be entered. If you only want to adjust the value of one parameter, enter the default value of the parameter that you do not want to adjust.
The no form of the command clears the timers.
The following example sets the keepalive timer for a device to 120 seconds and the hold-timer to 360 seconds.
device# configure terminal device(config)# router bgp device(config-bgp-router)# timers keep-alive 120 hold-time 360
The following example sets the keepalive timer for a device to 0 seconds and the hold-timer to 0 seconds so that the device waits indefinitely for messages from a neighbor without tearing down the session.
device# configure terminal device(config)# router bgp device(config-bgp-router)# timers keep-alive 0 hold-time 0