11-18
Cisco ONS 15310-CL and Cisco ONS 15310-MA Ethernet Card Software Feature and Configuration Guide R8.5
78-18133-01
Chapter 11 Configuring Quality of Service on the ML-Series Card
QoS Configuration Examples
Traffic Classes Defined Example
Example 11-2 shows how to create a class map called class1 that matches incoming traffic entering
interface fastethernet0.
Example 11-2 Class Interface Command Example
ML_Series(config)# class-map class1
ML_Series(config-cmap)# match input-interface fastethernet0
Example 11-3 shows how to create a class map called class2 that matches incoming traffic with
IP-precedence values of 5, 6, and 7.
Example 11-3 Class IP-Precedence Command Example
ML_Series(config)# class-map match-any class2
ML_Series(config-cmap)# match ip precedence 5 6 7
Note If a class-map contains a match rule that specifies multiple values, such as 5 6 7 in this example, then
the class-map must be match-any, not the default match-all. Without the match-any class-map, an error
message is printed and the class is ignored. The supported commands that allow multiple values are
match cos, match ip precedence, and match ip dscp.
Example 11-4 shows how to create a class map called class3 that matches incoming traffic based on
bridge group 1.
Example 11-4 Class Map Bridge Group Command Example
ML_Series(config)# class-map class3
ML_Series(config-cmap)# match bridge-group 1
Traffic Policy Created Example
In Example 11-5, a traffic policy called policy1 is defined to contain policy specifications, including a
bandwidth allocation request for the default class and two additional classes—class1 and class2. The
match criteria for these classes were defined in the traffic classes (see the “Creating a Traffic Class”
section on page 11-10).
Example 11-5 Traffic Policy Created Example
ML_Series(config)# policy-map policy1
ML_Series(config-pmap)# class class-default
ML_Series(config-pmap-c)# bandwidth 1000
ML_Series(config-pmap)# exit
ML_Series(config-pmap)# class class1
ML_Series(config-pmap-c)# bandwidth 3000
ML_Series(config-pmap)# exit
ML_Series(config-pmap)# class class2
ML_Series(config-pmap-c)# bandwidth 2000
ML_Series(config-pmap)# exit