Description
Use the peer timer command to configure keepalive interval and holdtime interval for a peer or peer
group.
Use the undo peer timer command to restore the default.
keepalive interval defaults to 60 seconds, and holdtime interval defaults to 180 seconds
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
# Configure the keepalive interval and holdtime interval for the peer group test as 60 seconds and 180
seconds.
<Sysname] system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] group test external
[Sysname-bgp-af-ipv6] peer test timer keepalive 60 hold 180
# 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] ipv6-family
[Sysname-bgp-af-ipv6] group test external
[Sysname-bgp-af-ipv6] peer test timer keepalive 0 hold 0
preference (IPv6 address family view/IPv6 BGP-VPN instance
view)
Syntax
preference { external-preference internal-preference local-preference | route-policy route-policy-name }
undo preference
View
IPv6 address family view, IPv6 BGP-VPN instance view
Default level
2: System level
Parameters
external-preference: Preference of eBGP route learned from an eBGP peer, in the range 1 to 255.
414
Need help?
Do you have a question about the S5820X Series and is the answer not in the manual?