Applying the Traffic Policy to an Interface
Context
You can apply a traffic policy to an interface or a sub-interface to implement fine-grained QoS.
Traffic policy nesting can only be configured on layer 2 VE interfaces, physical WAN-side interfaces or sub-interfaces.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number[.subinterface-number ]
The interface or sub-interface view is displayed.
- Run traffic-policy policy-name { inbound | outbound }
The traffic policy is applied to an interface or a sub-interface.
If traffic policy nesting is configured on a sub-interface, traffic shaping, congestion management, or congestion avoidance cannot be configured on the main interface.
If traffic shaping, congestion management, or congestion avoidance is configured in both the traffic policy and the sub traffic policy, traffic policy nesting and traffic shaping cannot be simultaneously configured on the sub-interface.
When traffic policy nesting is applied to a sub-interface, the traffic policy that is bound to sub traffic policies can be bound to only one pair of the traffic classifier and traffic behavior and only the default traffic classifier default-class can be used.