The traffic-statistics peer enable command collects statistics about public network traffic on a specified PW in a BGP AD VPLS domain.
The undo traffic-statistics peer enable command cancels the collection of statistics about public network traffic on a specified PW in a BGP AD VPLS domain.
By default, collecting statistics about PW traffic is disabled in a BGP AD VPLS domain.
Usage Scenario
To collect PW traffic statistics after BGP AD VPLS is configured, run the traffic-statistics peer enable command. peer-address in the command specifies the IP address of the remote PW end.
Prerequisites
A VPLS ID has been specified in the VSI-BGPAD view.
Precautions
If the traffic-statistics enable and traffic-statistics peer commands are both run in the VSI-BGP AD view, configuration of the traffic-statistics peer command takes effect on the peer.
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*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