Defining a policy
You associate a behavior with a class in a QoS policy to perform the actions defined in the behavior for the class of packets.
The system provides a predefined QoS policy named default. It includes the associations between predefined classes and predefined traffic behaviors:
Class ef with behavior ef.
Classes af1 through af4 with behavior af.
Class default-class with behavior be.
You cannot name a user-defined QoS policy the same as the system-defined QoS policy.
To associate a class with a behavior in a policy:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Create a policy and enter policy view. | qos policy policy-name | N/A |
3. Associate a class with a behavior in the policy. | classifier classifier-name behavior behavior-name | Repeat this step to create more class-behavior associations. |