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.
statistic enable { both | inbound | outbound }
undo statistic enable { both | inbound | outbound }
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. |
- |
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.