keepalive

Use keepalive to configure the keepalive interval on an EVI tunnel interface and configure the maximum number of consecutive keepalive failures that are allowed before a remote end is declared unavailable.

Use undo keepalive to restore the default.

Syntax

keepalive [ seconds [ times ] ]

undo keepalive

Default

The EVI link keepalive interval is 5 seconds and the permitted maximum number of consecutive keepalive failures is two.

Views

Tunnel interface view

Predefined user roles

network-admin

mdc-admin

Parameters

seconds: Specifies a keepalive interval in the range of 1 to 32767 seconds.

times: Specifies the maximum number of consecutive keepalive failures in the range of 1 to 255.

Usage guidelines

The EVI-Link interfaces on an EVI tunnel regularly send keepalive packets to test the availability of their peer ends.

If no acknowledgement is received from the peer end before the timeout timer expires, an EVI-Link interface retransmits a keepalive packet. The timeout timer is the same as the keepalive interval.

When the maximum number of consecutive keepalive failures is reached, the EVI-Link interface state changes to Down. The EVI-Link interface state changes back to Up after the interface receives a keepalive acknowledgement or keepalive packet.

Examples

# Set the keepalive interval to 20 seconds and the maximum number of consecutive keepalive failures to 5.

<Sysname> system-view
[Sysname] interface tunnel 0 mode evi
[Sysname-Tunnel0] keepalive 20 5