How to apply CAR on traffic from a perticular VLAN.
Following commands cab be used to acheive the above goal:
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
port default vlan 1
port trunk allow-pass vlan 100 200
traffic-policy car inbound vlan 100
traffic-policy car inbound vlan 200
interface vlanif 100
ip binding vpn-instance test
ip address 184.108.40.206 255.255.255.0
interface vlanif 200
l2 binding vsi test1
The flow can be described as follows:
1. Create a traffic policy with "if-match any" classifier. Create a behavior specifying the CAR value to be applied. Create a traffic policy using these classifier and behavior.
2. In the interface where these vlans are trunked, apply the traffic policy in the required direction(i.e either inbound or outbound or both).