R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101
412
ip-address: IP address of a peer.
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 peer timer to configure the keepalive interval and holdtime interval for a peer or peer group.
Use undo peer timer to restore the default.
By default, the keepalive and holdtime are 60s and 180s respectively.
The timers configured with this command are preferred to the timers configured with the timer 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.
After this command is executed, the peer connection is closed at once, and a new connection to the peer
is negotiated using the configured hold time.
Related commands: timer.
Examples
# In BGP view, configure the keepalive interval and holdtime interval for peer group test as 60s and
180 s.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer test timer keepalive 60 hold 180
# In BGP-VPN instance view, configure the keepalive interval and holdtime interval for peer group test 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] peer test timer keepalive 60 hold 180
# In BGP view, configure both the keepalive interval and holdtime interval for peer group test as 0
seconds, indicating the peer group will never time out.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer test timer keepalive 0 hold 0
# In BGP-VPN instance view, configure both the keepalive interval and holdtime interval for peer group
test as 0 seconds, indicating the peer group will never time out. (vpn1 must have been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] peer test timer keepalive 0 hold 0