Issue Description
Requirement:
How to apply CAR on traffic from a perticular VLAN.
Handling Process
Following commands cab be used to acheive the above goal:
traffic classifier car operator and
if-match any
#
traffic behavior car
car cir 500000 cbs 500000 pbs 0 green pass yellow discard red discard
#
traffic policy car
classifier car behavior car
interface GigabitEthernet1/0/0
portswitch
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 117.1.1.1 255.255.255.0
interface vlanif 200
l2 binding vsi test1
Root Cause
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).