R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
351
timer (BGP/BGP-VPN instance view)
Syntax
timer keepalive keepalive hold holdtime
undo timer
View
BGP view, BGP-VPN instance view
Default level
2: System level
Parameters
keepalive: Keepalive interval in seconds, ranging from 0 to 21845.
holdtime: Holdtime interval in seconds, whose value is 0 or in the range of 3 to 65535.
Description
Use the timer command to configure BGP keepalive interval and holdtime interval.
Use the undo timer command to restore the default.
By default, BGP keepalive and holdtime intervals are 60s and 180s.
The timers configured with the peer timer command are preferred to the timers configured with this
command.
If the holdtime interval is configured as 0, no keepalive message will be sent to the peer, and the peer
connection will never time out. If the keepalive interval is configured as 0 and the negotiated hold time
is not 0, one third of the hold time is taken as the interval for sending keepalive messages.
If neither the holdtime interval nor the keepalive interval is configured as 0, the holdtime interval must be
at least three times the keepalive interval.
The configured timers apply to all BGP peers, while they become valid for a BGP peer only after the
corresponding BGP connection is reset.
After this command is executed, no peer connection is closed at once. The configured hold time is used
for negotiation when a peer relationship is reestablished.
Related commands: peer timer.
Examples
# Configure keepalive interval and holdtime interval as 60s and 180s.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] timer keepalive 60 hold 180
# In BGP-VPN instance view, configure keepalive interval and holdtime interval as 60s and 180s (the
VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] timer keepalive 60 hold 180
# In BGP view, configure both the BGP keepalive interval and holdtime interval as 0 seconds, indicating
no peer connection will time out.