6-2To do… Use the command… RemarksAssociate the class with thetraffic behavior in the QoSpolicyclassifier tcl-name behaviorbehavior-name —Exit policy view quit —To an interface Applying the QoS policy to aninterface —To online users Applying the QoS policy to onlineusers —To a VLAN Applying the QoS policy to a VLAN —Apply theQoSpolicyGlobally Applying the QoS policy globally —Display the traffic filteringconfigurationdisplay traffic behavioruser-defined [ behavior-name ]OptionalAvailable in any viewWith filter deny configured for a traffic behavior, the other actions (except class-based accounting) inthe traffic behavior do not take effect.Traffic Filtering Configuration ExampleTraffic Filtering Configuration ExampleNetwork requirementsAs shown in Figure 6-1, Host is connected to GigabitEthernet 1/0/1 of Device.Configure traffic filtering to filter the packets whose source port is 21 received on GigabitEthernet 1/0/1.Figure 6-1 Network diagram for traffic filtering configurationConfiguration procedure# Create advanced ACL 3000, and configure a rule to match packets whose source port number is 21. system-view[DeviceA] acl number 3000[DeviceA-acl-basic-3000] rule 0 permit tcp source-port eq 21[DeviceA-acl-basic-3000] quit# Create a class named classifier_1, and reference ACL 3000 in the class.[DeviceA] traffic classifier classifier_1[DeviceA-classifier-classifier_1] if-match acl 3000[DeviceA-classifier-classifier_1] quit