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 Policy Framework Configuration Guide.To enable Layer 2 VPN policing on an interface, include the policer statement:
policer {inputpolicer-template-name;outputpolicer-template-name;}If you configure CCC encapsulation, you can include the
policerstatement at the following hierarchy levels:
- [
editinterfacesinterface-nameunitlogical-unit-numberfamilyccc]- [
editlogical-routerslogical-router-nameinterfacesinterface-nameunitlogical-unit-numberfamilyccc]If you configure TCC encapsulation, you can include the
policerstatement at the following hierarchy levels:
- [
editinterfacesinterface-nameunitlogical-unit-numberfamilytcc]- [
editlogical-routerslogical-router-nameinterfacesinterface-nameunitlogical-unit-numberfamilytcc]For information about how to configure the encapsulation type, see Configure the Encapsulation Type.