< Home

display keepalive packets count

Function

The display keepalive packets count command displays the number of Keepalive packets and Keepalive response packets sent and received by the local GRE tunnel interface.

Format

display keepalive packets count

Parameters

None

Views

Tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When a tunnel is a GRE tunnel, you can enable the Keepalive function to check the link connectivity. If the function is disabled, service packets are continuously forwarded through this tunnel interface when the link fails, resulting in a tunnel black hole and loss of service data.

The display keepalive packets count command allows you to view the number of Keepalive packets and Keepalive response packets sent and received through the GRE tunnel interface.

Prerequisites

  1. The tunnel interface view has been displayed using the interface tunnel command.

  2. The tunnel type has been set to GRE using the tunnel-protocol gre command.

  3. The Keepalive function has been enabled for the GRE tunnel using the keepalive command.

Follow-up Procedure

Run the reset keepalive packets count command to reset the Keepalive packet statistics.

Example

# View the Keepalive packet statistics of GRE tunnel interface 1.

<HUAWEI> system-view
[HUAWEI] interface tunnel 1
[HUAWEI-Tunnel1] tunnel-protocol gre
[HUAWEI-Tunnel1] keepalive
[HUAWEI-Tunnel1] display keepalive packets count
Send 10 keepalive packets to peers, Receive 10 keepalive response packets from peers                                                
Receive 8 keepalive packets from peers, Send 8 keepalive response packets to peers.                                                 
Table 1 Description of the display keepalive packets count command output

Item

Description

Send 10 keepalive packets to peers

Ten Keepalive packets are sent to the remote end.

Receive 10 keepalive response packets from peers

Ten Keepalive response packets are received from the remote end.

Receive 8 keepalive packets from peers

Eight Keepalive packets are received from the remote end.

Send 8 keepalive response packets to peers

Eight Keepalive response packets are sent to the remote end.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >