A class-based policy does not take effect unless it is applied to an interface.
The system view is displayed.
The interface view is displayed.
When CAR is configured on a trunk interface, the sum of all the member interfaces' bandwidth complies with the CAR settings.
This command is supported only on Ethernet trunk interfaces.
If you specify link-layer, the router matches Layer 2 information about packets with the traffic policy and performs a corresponding action.
If you specify mpls-layer, the router performs complex traffic classification based on MPLS packet header information.
If you specify all-layer, the device first performs rule-matching according to Layer 2 information and implements a corresponding traffic action. If Layer 2 information of a packet does not match the traffic rule, the system performs rule-matching according to Layer 3 information and implements a corresponding traffic action.
The parameter identifier specified bandwidth allocation type must be the same as the one configured on the EVC Layer 2 sub-interface.
To apply a traffic policy to a QinQ VLAN tag termination sub-interface, you can also directly run the traffic-policy policy-name { inbound | outbound } [ all-layer | link-layer | mpls-layer ] command without specifying a PVLAN ID or CVLAN ID range.
The configuration is committed.