R0106-HP MSR Router Series Layer 3 - IP Routing Command Reference(V7)

430
If a router receives no keepalive or update message from the peer within the holdtime, it tears down the
session.
The timers configured with this command are preferred to the timers configured with the timer command.
If the holdtime settings on the local and peer routers are different, the smaller one is used.
If the holdtime is configured as 0, no keepalive message will be sent to the peer, and the peer session will
never time out. If the keepalive interval is configured as 0 and the negotiated holdtime is not 0, one third
of the holdtime is taken as the interval for sending keepalive messages. If neither the holdtime nor the
keepalive interval is configured as 0, the actual keepalive interval is the smaller one between one third
of the holdtime and the keepalive interval.
The timers configured with this command do not take effect until a session is reestablished (for example,
a session is reset).
Examples
# In BGP view, configure the keepalive interval and holdtime for peer group test as 60s and 180s.
<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.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] peer test timer keepalive 60 hold 180
# In BGP view, configure both the keepalive interval and holdtime for peer group test as 0 seconds,
indicating the session 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 for peer group test as 0
seconds, indicating the session will never time out.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] peer test timer keepalive 0 hold 0
Related commands
display bgp peer
timer
peer ttl-security
Use peer ttl-security to configure Generalized TTL Security Mechanism (GTSM) for a BGP peer or peer
group.
Use undo peer ttl-security to restore the default.
Syntax
peer { group-name | ip-address | ipv6-address } ttl-security hops hop-count