traffic-statistics enable (VPN instance view)

Function

The traffic-statistics enable command enables the traffic statistics collection function.

The undo traffic-statistics enable command disables the traffic statistics collection function.

By default, the traffic statistics collection function is disabled.

Format

traffic-statistics enable

undo traffic-statistics enable

Parameters

None

Views

VPN instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l3vpn write

Usage Guidelines

Usage Scenario

If you want to collect statistics about the traffic received or sent as a basis for VPN traffic monitoring or accounting, run the traffic-statistics enable command to enable the traffic statistics collection function.

After running the traffic-statistics enable command, you can use the display traffic-statistics vpn-instance command to view statistics about the traffic.

The reset traffic-statistics vpn-instance command can be used to clear the collected traffic statistics.

Example

# Enable the traffic statistics collection function for a VPN instance named vpna.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpna
[~HUAWEI-vpn-instance-vpna] traffic-statistics enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >