traffic-statistics peer enable

Function

The traffic-statistics peer enable command enables traffic statistics collection for a PW in VPLS multi-homing scenarios.

The undo traffic-statistics peer enable command disables traffic statistics collection of a PW in VPLS multi-homing scenarios.

By default, traffic statistics collection is disabled from PWs in VPLS multi-homing scenarios.

Format

traffic-statistics peer peer-address enable

undo traffic-statistics peer peer-address enable

Parameters

Parameter Description Value
peer-address

Specifies the peer IP address of a PW.

The value is in dotted decimal notation.

Views

VSI-BGP-MH view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

Before checking PW traffic statistics in VPLS multi-homing scenarios, run the traffic-statistics peer enable command to enable traffic statistics collection. These statistics help you learn network operating status.

Prerequisites

VPLS multi-homing has been enabled using the pwsignal bgp multi-homing command.

Follow-up Procedure

  • Run the display traffic-statistics vsi vsi [ peer peer-address ] command to check traffic statistics about a PW.
  • Before running the traffic-statistics peer command, run the reset traffic-statistics vsi vsi-name [ peer peer-address ] command to clear VPLS PW traffic statistics.

Example

# Enable traffic statistics collection for a PW in VPLS multi-homing scenarios.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi company1
[*HUAWEI-vsi-company1] pwsignal bgp multi-homing
[*HUAWEI-vsi-company1-bgp] traffic-statistics peer 1.1.1.9 enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >