DES-7200 Configuration Guide Chapter 2 QoS Configuration
2-23
DES-7200(config)# class-map salaryclass
# Define a match rule.
DES-7200(config-cmap)# match access-group salary acl
# Exit to the global configuration mode.
DES-7200(config-std-nacl)# exit
# Create a policy named salarypolicy and enter the policy-map configuration mode.
DES-7200(config)# policy-map salarypolicy
# Set the policy to classify traffic based on salaryclass.
DES-7200(config-pmap)# class salaryclass
# Limit the maximum outgoing traffic from the salary query server to 512Kbps and the
burst traffic to 32Kbps, and drop the traffic exceeding this limit.
DES-7200(config-pmap-c)# police 512 32 exceed-action drop
# Exit to the class-map configuration mode.
DES-7200(config-pmap-c)# exit
# Exit to the global configuration mode.
DES-7200(config-pmap)# exit
# Enter the G0/2 interface configuration mode.
DES-7200(config)# interface gigabitEthernet 0/2
# Apply salarypolicy to the inbounding direction of the G0/2 interface.
DES-7200(config-if)# service-policy input salarypolicy
# Exit to the privileged EXEC mode.
DES-7200(config-if)# end
# Show the configuration.
DES-7200# show mls qos interface policers
Interface: GigabitEthernet 0/2
Attached input policy-map: salarypolicy
DES-7200#show policy-map salarypolicy
Policy Map salarypolicy
Class salaryclass
police 512 32 exceed-action drop
DES-7200#show class-map salaryclass
Class Map salaryclass
Match access-group salary_acl