1-32
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…
Use the command…
Remarks
Enter system view
system-view
—
Enter BGP view
bgp
as-number
—
Configure the global keepalive
interval and holdtime
timer
keepalive keepalive hold
holdtime
Configure the keepalive interval and
holdtime for a peer/peer group
peer
{
group-name |
ip-address
}
timer
keepalive
keepalive hold holdtime
Optional
By default, the keepalive
interval is 60 seconds,
and holdtime is 180
seconds.
z
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.
z
The intervals set with the
peer timer
command are preferred to those set with the
timer
command.
z
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…
Use the command…
Remarks
Enter system view
system-view
—
Enter BGP view
bgp
as-number
—
Configure the interval for
sending the same update
to a peer/peer group
peer
{
group-name
|
ip-address
}
route-update-interval
interval
Optional
The intervals for sending the same
update to an iBGP peer and an
eBGP peer default to 15 seconds
and 30 seconds respectively.
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.