No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S12700 V200R013C00 Command Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
keepalive (soft GRE profile view)

keepalive (soft GRE profile view)

Function

The keepalive command enables the Keepalive detection function of a soft GRE tunnel and configures Keepalive parameters.

The undo keepalive command disables the Keepalive detection function of a soft GRE tunnel and restores the default Keepalive parameter settings.

By default, the Keepalive detection function of a soft GRE tunnel is disabled, the interval for sending Keepalive packets is 5 seconds, and the maximum number of Keepalive packet retransmissions is 3.

Format

keepalive [ period period [ retry-times retry-times ] ]

undo keepalive

Parameters

Parameter Description Value
period period

Specifies the interval for sending Keepalive packets.

The value is an integer that ranges from 1 to 32767, in seconds.

retry-times retry-times

Specifies the maximum number of Keepalive packet retransmissions.

The value is an integer that ranges from 1 to 255.

Views

Soft GRE profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When a network fault occurs and the remote end of a soft GRE tunnel becomes unreachable, an AP cannot detect the network fault and continues sending packets to the remote end. These packets will waste device resources and bandwidth of the intermediate network. To prevent this situation, you can enable the Keepalive detection function so that the AP can detect the soft GRE tunnel status. When the remote end is unreachable, the AP stops sending packets to the remote end; otherwise, the AP continues sending packets. By detecting the status of the soft GRE tunnel, an AP can determine whether to send packets to the remote end. This prevents tunnel resource waste and reduces bandwidth occupation.

After the Keepalive detection function is enabled on the source end of a soft GRE tunnel, the AP starts a tunnel-unreachable counter to periodically send and count Keepalive packets to check soft GRE tunnel connectivity. The tunnel-unreachable counter is incremented by 1 every time a Keepalive probe is sent and no response is received within the detection period. If no response is received when the value of the counter reaches the value of retry-times, the tunnel-unreachable counter is cleared. If the source end does not receive any response packet when the tunnel-unreachable counter value reaches retry-times, the source end considers the remote end unreachable and tears down the tunnel; otherwise, the source end considers the remote end reachable.

Precautions

If you do not specify the parameters period period [ retry-times retry-times ] in the keepalive command, the Keepalive detection function is enabled and the parameters period period [ retry-times retry-times ] are restored to the default settings.

When you run the keepalive command multiple times, the latest configuration takes effect.

The Keepalive detection function takes effect unidirectionally. To enable the Keepalive detection function on both ends of a soft GRE tunnel, run the keepalive command on each end of the tunnel. The Keepalive configuration takes effect on one end even if the function is disabled on the other end. However, you are advised to enable the Keepalive detection function on both ends.

Example

# Enable the Keepalive detection function for the soft GRE tunnel and retain the default parameter settings.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] softgre-profile name soft1
[HUAWEI-wlan-softgre-prof-soft1] keepalive
Translation
Download
Updated: 2019-04-09

Document ID: EDOC1100065659

Views: 115497

Downloads: 83

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next