Creating A Policy Map; Example: Attaching A Traffic Policy To An Interface; Using The Match Not Command - Cisco cBR 8 Configuration Manual

Cbr series converged broadband routers
Table of Contents

Advertisement

Creating a Policy Map

class-map class2
match access-group 102
end
Creating a Policy Map
In the following example, we define a traffic policy (policy1) containing the QoS features that we will apply
to two classes: class1 and class2. The match criteria for these classes were previously defined in
Traffic Class, on page
For class1, the policy includes a bandwidth allocation request and a maximum packet count limit for the queue
reserved for that class. For class2, the policy specifies only a bandwidth allocation request.
policy-map policy1
class class1
class class2

Example: Attaching a Traffic Policy to an Interface

The following example shows how to attach an existing traffic policy to an interface. After you define a traffic
policy with the policy-map command, you can attach it to one or more interfaces by using the service-policy
command in interface configuration mode. Although you can assign the same traffic policy to multiple
interfaces, each interface can have only one traffic policy attached in the input direction and only one traffic
policy attached in the output direction.
Router(config)# interface TengigabitEthernet 4/1/0
Router(config-if)# service-policy output policy1
Router(config-if)# exit
Router(config)# interface TengigabitEthernet 4/1/0
Router(config-if)# service-policy output policy1
Router(config-if)# end

Using the match not Command

Use the match not command to specify a QoS policy value that is not used as a match criterion. All other
values of that QoS policy become successful match criteria. For instance, if you issue the match not qos-group
4 command in QoS class-map configuration mode, the specified class will accept all QoS group values except
4 as successful match criteria.
In the following traffic class, all protocols except IP are considered successful match criteria:
class-map noip
match not protocol ip
end
Cisco cBR Series Converged Broadband Routers Quality of Services Configuration Guide for Cisco IOS XE
Fuji 16.7.x
22
21).
bandwidth 3000
queue-limit 30
exit
bandwidth 2000
end
Modular Quality of Service Command-Line Interface QoS
Creating a

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents