reset keepalive packets count

Function

The reset keepalive packets count command clears the statistics about the Keepalive messages and Keepalive response messages sent and received by the local GRE tunnel interface.

Format

reset keepalive packets count

Parameters

None

Views

Tunnel interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
gre execute

Usage Guidelines

Usage Scenario

Before configuring a tunnel policy to select GRE tunnels as VPN tunnels, enable the Keepalive function for GRE tunnels to prevent a VPN from selecting an unreachable GRE tunnel as its tunnel. After configuring the Keepalive function, you can run the display keepalive packets count command to check the numbers of Keepalive messages and Keepalive response messages sent and received by a GRE tunnel interface.

The reset keepalive packets count command enables a device to re-collect statistics about Keepalive messages and Keepalive response messages, facilitating monitoring on the operating status of GRE tunnels.

Prerequisites

This command takes effect only on a GRE tunnel interface.

Example

# Clear statistics about the Keepalive messages and Keepalive response messages sent and received by the local GRE tunnel interface Tunnel 100.
<HUAWEI> system-view
[~HUAWEI] interface tunnel 100
[*HUAWEI-Tunnel100] tunnel-protocol gre
[*HUAWEI-Tunnel100] reset keepalive packets count
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >