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, include the policer statement to enable Layer 2 VPN policing on an interface:
interfacesinterface-name{encapsulationencapsulation-type;unit 0 {family ccc {policer {inputpolicer-template-name;outputpolicer-template-name;}}}}You can configure this statement at the following hierarchy levels:
- [
editinterfacesinterface-nameunitlogical-unit-numberfamilyccc]- [
editlogical-routerslogical-router-nameinterfacesinterface-nameunitlogical-unit-numberfamilyccc]If you configure TCC encapsulation, include the
policerstatement to enable Layer 2 VPN policing on an interface:interfacesinterface-name{encapsulationencapsulation-type;unit 0 {family tcc {policer {inputpolicer-template-name;outputpolicer-template-name;}}}}You can configure this statement 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.