If we want to limit the traffic on a sub-interface to a certain value, below mentioned method can be used:
traffic classifier car operator and
traffic behavior car
car cir 500000 cbs 500000 pbs 0 green pass yellow discard red discard
traffic policy car
classifier car behavior car
vlan-type dot1q 100
ip binding vpn-instance test
ip address 188.8.131.52 255.255.255.0
traffic-policy car inbound link-layer
The below mentioned method specifies how to limit the traffic on a sub-interface using CAR :
1. Define a traffic classifier with the required match conditions.
2. Define a behavior with the required CAR value defined.
3. Create a policy combining the classifier and behavior.
4. Apply the policy in the subinterface sepcifying the direction.