R3303-HP 6600/HSR6600 Routers Layer 3 - IP Routing Command Reference
296
Views
BGP view, BGP-VPN instance view
Default command level
2: System level
Parameters
keepalive: Keepalive interval in seconds, in the range of 0 to 21845.
holdtime: Holdtime in seconds, whose value is 0 or in the range of 3 to 65535.
Usage guidelines
The timers configured with the peer timer command are preferred to the timers configured with this
command.
If the holdtime is configured as 0, no keepalive message is sent to the peer, and the peer connection
never times 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 nor the keepalive interval is configured as 0, the holdtime must be at least three
times the keepalive interval.
The configured timers apply to all BGP peers, but they become valid for a BGP peer only after the
relevant 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.
Examples
# Configure the global keepalive interval and holdtime as 60s and 180s, respectively.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] timer keepalive 60 hold 180
# In BGP-VPN instance view, configure the keepalive interval and holdtime for all BGP sessions in vpn1
as 60s and 180s. (The VPN has been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] timer keepalive 60 hold 180
# In BGP view, configure both the BGP keepalive interval and holdtime 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 for all BGP sessions in
vpn1 as 0 seconds, indicating no peer connection will time out. (vpn1 must have been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] timer keepalive 0 hold 0










