Configuring BGP Keepalive Interval and Holdtime
After establishing a BGP connection, two routers send keepalive messages periodically to each other to
keep the connection. If a router receives no keepalive or update message from the peer within the
holdtime, it tears down the connection.
If two parties have the same timer assigned with different values, the smaller one is used by the two
parties.
Follow these steps to configure BGP keepalive interval and holdtime:
To do...
Enter system view
Enter BGP view
Configure the global keepalive
interval and holdtime
Configure the keepalive interval and
holdtime for a peer/peer group
The maximum keepalive interval should be one third of the holdtime and no less than 1 second.
The holdtime is no less than 3 seconds unless it is set to 0.
The intervals set with the peer timer command are preferred to those set with the timer command.
If the router has established a neighbor relationship with a peer, you need to reset the BGP
connection to validate the new set timers.
Configuring the Interval for Sending the Same Update
Follow these steps to configure the interval for sending the same update to a peer/peer group:
To do...
Enter system view
Enter BGP view
Configure the interval for
sending the same update
to a peer/peer group
Configuring BGP Soft-Reset
After modifying a route selection policy, you have to reset BGP connections to make the new one take
effect, causing short time disconnection.
Use the command...
system-view
bgp as-number
timer keepalive keepalive hold
holdtime
peer { group-name |
ip-address } timer keepalive
keepalive hold holdtime
Use the command...
system-view
bgp as-number
peer { group-name |
ip-address }
route-update-interval interval
1-32
Remarks
—
—
Optional
By default, the keepalive
interval is 60 seconds,
and holdtime is 180
seconds.
Remarks
—
—
Optional
The intervals for sending the same
update to an iBGP peer and an
eBGP peer default to 15 seconds
and 30 seconds respectively.