Traffic filtering configuration example, Network requirements, Configuration procedure – H3C Technologies H3C S5120 Series Switches User Manual
Page 371

6-2
To do…
Use the command…
Remarks
Associate the class with the
traffic behavior in the QoS
policy
classifier tcl-name behavior
behavior-name
—
Exit policy view
quit
—
Apply the QoS policy
to an interface
—
Display the traffic filtering
configuration
display traffic behavior
user-defined [ behavior-name ]
Optional
Available in any view
The action of dropping the packets and the action of redirecting traffic to an interface are mutually
exclusive with each other in the same traffic behavior.
Traffic Filtering Configuration Example
Traffic Filtering Configuration Example
Network requirements
As shown in
, 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 configuration
Configuration procedure
# Create advanced ACL 3000, and configure a rule to match packets whose source port number is 21.
[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
# Create a behavior named behavior_1, and configure the traffic filtering action for the behavior to drop
packets.
[DeviceA] traffic behavior behavior_1