BGP Configuration Guide for Cisco 8000 Series Routers, Cisco IOS XR Releases

PDF

Adjust BGP timers

Want to summarize with AI?

Log in

Overview

Explains the procedures for adjusting BGP timers, enabling fine-tuning of neighbor session parameters to optimize routing convergence and operational responsiveness.

Set or modify the keepalive and hold timers for BGP neighbors to control the frequency of keepalive messages and determine when a neighbor is declared down.

BGP uses timers to manage keepalive messages and neighbor status. You can set global timer defaults and override them for individual neighbors if needed.

Before you begin

  • Ensure you are in privileged EXEC mode on the router.

  • Know the autonomous system (AS) number for your BGP process.

  • Have the neighbor IP addresses ready.

Procedure

Enter BGP configuration mode, and set default BGP keepalive and hold timers for all neighbors or a specific BGP neighbor.

The values set using the timers bgp command in router configuration mode apply globally, but you can override them on a per-neighbor basis using the timers command in neighbor configuration mode.

Example:

Router# configure
Router(config)# router bgp 123
Router(config-bgp)# timers bgp 30 90
Router(config-bgp)# neighbor 172.16.40.24
Router(config-bgp-nbr)# timers 60 220