timer keepalive

Use timer keepalive to set the keepalive timer and the peer hold timer for MSDP sessions.

Use undo timer keepalive to restore the default.

Syntax

timer keepalive keepalive holdtime

undo timer keepalive

Default

The keepalive timer is 60 seconds, and the peer hold timer is 75 seconds.

Views

MSDP view

Predefined user roles

network-admin

Parameters

keepalive: Specifies a keepalive timer in the range of 1 to 21845 seconds.

holdtime: Specifies a peer hold timer in the range of 1 to 65535 seconds.

Usage guidelines

MSDP peers periodically send keepalive messages to each other to keep a session alive. When a session is established, an MSDP peer sends a keepalive message to its peer and starts a keepalive timer and a peer hold timer. When the keepalive timer expires, the MSDP peer sends a new keepalive message. If the MSDP peer receives an MSDP message from its peer before the peer hold timer expires, it resets the peer hold timer. If the MSDP peer does not receive an MSDP message when the hold timer expires, the MSDP peer closes the session.

When you configure this command, follow these guidelines:

No mechanism is available for MSDP peers to negotiate the two values. You must set the same keepalive timer and the peer hold timer for the MSDP peers of a session.

The keepalive timer must be less than the peer hold timer.

This command takes effect on the established MSDP session.

Examples

# Set the keepalive timer to 60 seconds and the peer hold timer to 180 seconds for MSDP sessions on the public network.

<Sysname> system-view
[Sysname] msdp
[Sysname-msdp] timer keepalive 60 180