[Switch-classifier-c2]
if-match acl 3002
[Switch-classifier-c2]
quit
Step 4
Create traffic behaviors.
# Create traffic behaviors
b1
and
b2
on the Switch to redirect packets to network segments
20.20.20.1/24 and 20.20.30.1/24.
[Switch]
traffic behavior b1
[Switch-behavior-b1]
redirect ip-nexthop 20.20.20.1
[Switch-behavior-b1]
quit
[Switch]
traffic behavior b2
[Switch-behavior-b2]
redirect ip-nexthop 20.20.30.1
[Switch-behavior-b2]
quit
Step 5
Create a traffic policy and apply it to an interface.
# Create traffic policy
p1
on the Switch and bind traffic classifiers to traffic behaviors in the
traffic policy.
[Switch]
traffic policy p1
[Switch-trafficpolicy-p1]
classifier c1 behavior b1
[Switch-trafficpolicy-p1]
classifier c2 behavior b2
[Switch-trafficpolicy-p1]
quit
# Apply traffic policy
p1
to GE 0/0/1.
[Switch]
interface gigabitethernet0/0/1
[Switch-GigabitEthernet0/0/1]
traffic-policy p1 inbound
[Switch-GigabitEthernet0/0/1]
quit
Step 6
Verify the configuration.
# Check the configuration of ACL rules.
[Switch]
display acl 3001
Advanced ACL 3001, 4 rules
Acl's step is 5
rule 5 permit ip precedence routine
rule 10 permit ip precedence priority
rule 15 permit ip precedence immediate
rule 20 permit ip precedence flash
[Switch]
display acl 3002
Advanced ACL 3002, 4 rules
Acl's step is 5
rule 5 permit ip precedence flash-override
rule 10 permit ip precedence critical
rule 15 permit ip precedence internet
rule 20 permit ip precedence network
# Check the configuration of traffic classifiers.
[Switch]
display traffic classifier user-defined
User Defined Classifier Information:
Classifier: c2
Operator: AND
Rule(s) : if-match
acl 3002
Classifier: c2
Operator: AND
Rule(s) : if-match
acl 3001
Total classifier number is 2
# View the configuration of the traffic policy.
<Switch>
display traffic policy user-defined p1
User Defined Traffic Policy Information:
S3700HI Ethernet Switches
Configuration Guide - QoS
1 Class-based QoS Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
47