The traffic-statistics peer enable command enables the statistics about the public traffic on a specified BGP AD VPLS PW.
The undo traffic-statistics peer enable command disables the statistics about the public traffic on a specified BGP AD VPLS PW.
By default, the statistics about the public traffic on a BGP AD VPLS PW are disabled.
Parameter | Description | Value |
---|---|---|
peer-address | Specifies the peer IP address of the PW. | The value is in dotted decimal notation. |
Usage Scenario
After the BGP AD VPLS network is configured, you can run the traffic-statistics peer enable command to enable statistics about the traffic on the specified PW. You can specify peer-address to enable the statistics about the traffic on the corresponding PW.
Prerequisites
The VPLS ID has been configured using the vpls-id vpls-id command in the VSI-BGPAD view.
Precautions
The traffic-statistics peer enable command cannot be used together with the traffic-statistics enable (VSI-BGPAD view) command in the VSI-BGPAD view.
After you enable the statistics about the public traffic on the specified BGP AD VPLS PW, run the display traffic-statistics vsi peer ldp129 command to view the statistics about the public traffic on the specified PW.
# Configure the BGP AD VPLS VSI named company1, and enable the statistics about the public traffic on the PW with the peer at 1.1.1.1.
<HUAWEI> system-view [HUAWEI] vsi company1 [HUAWEI-vsi-company1] bgp-ad [HUAWEI-vsi-company1-bgpad] vpls-id 100:1 [HUAWEI-vsi-company1-bgpad] traffic-statistics peer 1.1.1.1 enable