Configure Layer 2 VPN Policing on Interfaces
You can use policing to control the amount of traffic flowing over the interfaces servicing a Layer 2 VPN. If policing is disabled on an interface, all the available bandwidth on a Layer 2 VPN tunnel can be used by a single CCC or TCC interface.
For more information about the
policerstatement, see the JUNOS Internet Software Configuration Guide: Policy Framework.If you configure CCC encapsulation, then include the
policerstatement at the [edit interfacesinterface-nameunitunit-numberfamily ccc] hierarchy level to enable Layer 2 VPN policing on an interface:[edit] interfacesinterface-name{ encapsulationencapsulation-type;unit 0 {family ccc {policer {inputpolicer-template-name;outputpolicer-template-name; }}}}If you configure TCC encapsulation, then include the
policerstatement at the [edit interfacesinterface-nameunitunit-numberfamily tcc] hierarchy level to enable Layer 2 VPN policing on an interface:[edit] interfacesinterface-name{ encapsulationencapsulation-type;unit 0 {family tcc {policer {inputpolicer-template-name;outputpolicer-template-name; }}}}For information about how to configure the encapsulation type, see Configure the Encapsulation Type.