R3303-HP HSR6800 Routers ACL and QoS Configuration Guide

94
# Create advanced ACL 3002, and configure a rule to match packets with destination IP address
192.168.0.3.
[Router] acl number 3002
[Router-acl-adv-3002] rule permit ip destination 192.168.0.3 0
[Router-acl-adv-3002] quit
# Create a class named classifier_dbserver, and use ACL 3000 as the match criterion in the class.
[Router] traffic classifier classifier_dbserver
[Router-classifier-classifier_dbserver] if-match acl 3000
[Router-classifier-classifier_dbserver] quit
# Create a class named classifier_mserver, and use ACL 3001 as the match criterion in the class.
[Router] traffic classifier classifier_mserver
[Router-classifier-classifier_mserver] if-match acl 3001
[Router-classifier-classifier_mserver] quit
# Create a class named classifier_fserver, and use ACL 3002 as the match criterion in the class.
[Router] traffic classifier classifier_fserver
[Router-classifier-classifier_fserver] if-match acl 3002
[Router-classifier-classifier_fserver] quit
# Create a behavior named behavior_dbserver, and configure the action of setting the DSCP value to
32.
[Router] traffic behavior behavior_dbserver
[Router-behavior-behavior_dbserver] remark dscp 32
[Router-behavior-behavior_dbserver] quit
# Create a behavior named behavior_mserver, and configure the action of setting the DSCP value to 24.
[Router] traffic behavior behavior_mserver
[Router-behavior-behavior_mserver] remark dscp 24
[Router-behavior-behavior_mserver] quit
# Create a behavior named behavior_fserver, and configure the action of setting the DSCP value to 16.
[Router] traffic behavior behavior_fserver
[Router-behavior-behavior_fserver] remark dscp 16
[Router-behavior-behavior_fserver] quit
# Create a policy named policy_server, and associate classes with behaviors in the policy.
[Router] qos policy policy_server
[Router-qospolicy-policy_server] classifier classifier_dbserver behavior
behavior_dbserver
[Router-qospolicy-policy_server] classifier classifier_mserver behavior
behavior_mserver
[Router-qospolicy-policy_server] classifier classifier_fserver behavior
behavior_fserver
[Router-qospolicy-policy_server] quit
# Apply the policy named policy_server to the incoming traffic of GigabitEthernet 1/0/1.
[Router] interface gigabitethernet 1/0/1
[Router-GigabitEthernet1/0/1] qos apply policy policy_server inbound
[Router-GigabitEthernet1/0/1] quit