6-75
Note that:
z
The timers configured with the
peer timer
command are preferred to the timers configured with
this command.
z
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.
z
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.
z
The configured timers apply to all BGP peers, while they become valid for a BGP peer only after
the corresponding BGP connection is reset.
z
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.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] timer keepalive 0 hold 0
# In BGP-VPN instance view, configure both the keepalive interval and holdtime interval for
vpn1
as 0
seconds, indicating no peer connection will time out. (
vpn1
must be created first.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] timer keepalive 0 hold 0