2-6Configuration procedure# Create a class test_class to match the packets with IP precedence 6. system-view[Sysname] traffic classifier test_class[Sysname-classifier-test_class] if-match ip-precedence 6[Sysname-classifier-test_class] quit# Create a traffic behavior test_behavior and configure the action of limiting the traffic rate to 100 kbpsfor it.[Sysname] traffic behavior test_behavior[Sysname-behavior-test_behavior] car cir 100[Sysname-behavior-test_behavior] quit# Create a QoS policy test_policy and associate the traffic behavior with the class.[Sysname] qos policy test_policy[Sysname-qospolicy-test_policy] classifier test_class behavior test_behaviorApplying the QoS PolicyYou can apply the QoS policy to different occasions:z Applied to an interface, the policy takes effect on the traffic sent or received on the interface;z Applied to a VLAN, the policy takes effect on the traffic sent or received on all ports in the VLAN;z Applied globally, the policy takes effect on the traffic sent or received on all ports.You can modify the classification rules, traffic behaviors, and classifier-behavior associations of a QoSpolicy already applied.Applying the QoS Policy to an InterfaceA policy can be applied to multiple interfaces. Only one policy can be applied in one direction (inboundor outbound) of an interface.Configuration procedureFollow these steps to apply the QoS policy to an interface:To do… Use the command… RemarksEnter system view system-view —Enterinterfaceview or portEnterinterfaceviewinterface interface-typeinterface-numberUse either commandSettings in interface view takeeffect on the current interface;