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.
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
The tunnel interface view has been displayed using the interface tunnel command.
The tunnel type has been set to GRE using the tunnel-protocol gre command.
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.
# 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.
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. |