24-40
Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide
OL-23826-09
Chapter 24 Configuring QoS
Configuring Quality of Service (QoS)
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Step 4 Use the policy-map command to define a policy map and enter policy map configuration mode.
Router(config)# policy-map policy1
Router(config-pmap)#
Step 5 Use the class command to specify the traffic class for which you want to create a policy and enter policy
map class configuration mode. You can also use the class-default parameter to define a default class.
Router(config-pmap)# class class1
Router(config-pmap-c)#
Step 6 Use one of the set commands listed in Table 24-7 to define a QoS treatment type.
Step 7 Exit configuration mode.
Router(config-pmap)# end
Router#
Note You can use the show policy-map or show policy-map policy-map class class-name commands to
verify your configuration.
Attaching the Policy Map to an Interface
Step 1 Enter enable mode.
Router> enable
Step 2 Enter the password.
Password:
password
When the prompt changes to Router, you have entered enable mode.
Step 3 Enter global configuration mode.
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Step 4 Specify the interface to which you want to apply the policy map.
Router(config)# interface gigabitEthernet0/1
Table 24-7 set Commands Summary
set Commands Traffic Attributes Network Layer Protocol
set cos Layer 2 CoS value of the
outgoing traffic
Layer 2 802.1q
set dscp DSCP value in the ToS byte Layer 3 IP
set qos-group QoS group ID Layer 3 IP, MPLS