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-mapcommand 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-defaultparameter 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-7to define a QoS treatment type.

Table 24-7

set Commands Summary

 

 

 

 

 

 

 

set Commands

 

Traffic Attributes

Network Layer

Protocol

 

 

 

 

 

set cos

 

Layer 2 CoS value of the

Layer 2

802.1q

 

 

outgoing traffic

 

 

 

 

 

 

 

set dscp

 

DSCP value in the ToS byte

Layer 3

IP

 

 

 

 

 

set qos-group

 

QoS group ID

Layer 3

IP, MPLS

 

 

 

 

 

Step 7 Exit configuration mode.

Router(config-pmap)# end

Router#

Note You can use the show policy-map or show policy-map policy-mapclass class-namecommands 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

 

Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide

24-40

OL-23826-09

Page 476
Image 476
Cisco Systems A9014CFD manual Traffic Attributes Network Layer Protocol, Set cos, Set dscp, Set qos-group, 24-40