< Home

statistic enable (Tunnel interface view)

Function

The statistic enable command enables traffic statistics collection on a Tunnel interface.

The undo statistic enable command disables traffic statistics collection on a Tunnel interface.

By default, traffic statistics collection is disabled on a Tunnel interface.

Format

statistic enable { both | inbound | outbound }

undo statistic enable { both | inbound | outbound }

Parameters

Parameter

Description

Value

both

Enables traffic statistics collection for incoming and outgoing traffic.

-

inbound

Enables incoming traffic statistics collection.

-

outbound

Enables outgoing traffic statistics collection.

-

Views

Tunnel interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To check the network status or locate network faults, you can use the statistic enable command to enable traffic statistics collection on Tunnel interfaces. The device then collect traffic statistics on the Tunnel interfaces.

Prerequisites

The protocol type of the tunnel interface has been configured using the tunnel-protocol command.

Precautions

After running the statistic enable command on an interface, you can run the display interface tunnel command to view the traffic statistics on the interface. The traffic statistics help you diagnose the fault of a tunnel.

Example

# Enable incoming traffic statistics collection on a Tunnel interface.

<HUAWEI> system-view
[HUAWEI] interface tunnel 1
[HUAWEI-Tunnel1] statistic enable inbound
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >