traffic-statistics peer

Function

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.

Format

traffic-statistics peer peer-address { enable | disable }

undo traffic-statistics peer peer-address { enable | disable }

Parameters

Parameter Description Value
peer-address

Specifies the IP address of the remote PW end.

The value is in dotted decimal notation.

disable

Disables traffic statistics collection for some PWs.

-

Views

VSI-BGPAD view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

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.

Example

# Create a VSI named company1 in a BGP AD VPLS domain, and collect statistics about the public network traffic bound for the remote PW end at 1.1.1.1 in the VSI.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >