R3303-HP HSR6800 Routers ACL and QoS Configuration Guide
150
[Router-acl-adv-3000-A] quit
[Router] acl number 3001 name B
[Router-acl-adv-3001-A] rule 0 permit ip source 192.168.1.0 0.0.0.255
[Router-acl-adv-3001-A] quit
[Router] acl number 3002 name voice
[Router-acl-adv-3002-voice] rule 0 permit udp destination-port eq 2000
[Router-acl-adv-3002-voice] quit
# Create four classes to match all traffic from department A, voice traffic from department A, all traffic
from department B, and voice traffic from department B by using ACL 3000, ACL 3002, ACL 3001, and
ACL 3002 as the match criterion, respectively.
[Router] traffic classifier Afather
[Router-classifier-Afather] if-match acl 3000
[Router-classifier-Afather] traffic classifier Ason
[Router-classifier-Ason] if-match acl 3002
[Router-classifier-Ason] traffic classifier Bfather
[Router-classifier-Bfather] if-match acl 3001
[Router-classifier-Bfather] traffic classifier Bson
[Router-classifier-Bson] if-match acl 3002
[Router-classifier-Bson] quit
# Configure traffic behaviors for the child QoS policy: use EF to guarantee 1.5 Mbps of bandwidth for
the voice traffic from department A and 2.5 Mbps of bandwidth for voice traffic from department B.
[Router] traffic behavior Ason
[Router-behavior-Ason] queue ef bandwidth 1500
[Router-behavior-Ason] traffic behavior Bson
[Router-behavior-Bson] queue ef bandwidth 2500
[Router-behavior-Bson] quit
# Associate the configured traffic behavior with the corresponding traffic class in each child policy.
[Router] qos policy Ason
[Router-qospolicy-Ason] classifier Ason behavior Ason
[Router-qospolicy-Ason] qos policy Bson
[Router-qospolicy-Bson] classifier Bson behavior Bson
[Router-qospolicy-Bson] quit
# Configure traffic behaviors for the parent QoS policy, use the EF queuing and GTS to guarantee 15
Mbps of bandwidth and limit the bandwidth to 15 Mbps for traffic from department A and guarantee 25
Mbps of bandwidth and limit the bandwidth to 25 Mbps for traffic from department B, and nest the child
QoS policies in the traffic behaviors.
[Router] traffic behavior Afather
[Router-behavior-Afather] gts cir 15000
[Router-behavior-Afather] queue ef bandwidth 15000
[Router-behavior-Afather] traffic-policy Ason
[Router-behavior-Afather] traffic behavior Bfather
[Router-behavior-Bfather] gts cir 25000
[Router-behavior-Bfather] queue ef bandwidth 25000
[Router-behavior-Bfather] traffic-policy Bson
[Router-behavior-Bfather] quit
# Associate the traffic behaviors with the corresponding classes in the parent QoS policy.
[Router] qos policy out