383
ipv6-address
: Specifies a peer by its IPv6 address. The peer must have been created.
keepalive
keepalive
: Sets a keepalive interval in the range of 0 to 21845 seconds.
hold
holdtime
: Sets a holdtime in the range of 3 to 65535 seconds.
Usage guidelines
After establishing a BGP session, two routers send keepalive messages at the specified keepalive interval
to each other to keep the session.
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.
After this command is executed, the peer session is closed at once, and a new session to the peer is
negotiated by using the configured holdtime.
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