cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
447
Views
0
Helpful
3
Replies

QoS Question: I have more "match" statements than a single class-map will allow. How do I nest?

Running 3850 with IOSXE 16.9.1 at IPServices licensing.  All kinds of documentation show nesting of Class-Maps inside of Class-Maps.  But that option is not available at the command line (Lord their is A LOT of different, conflicting and aged documentation on this subject on the Cisco web site!!).  How do I list more than the allowed 16 "match" statements under a single QoS class-map?  Where can I nest?  Nesting of Policy Maps also does not appear to be available.

3 Replies 3

Hello

You can apply hierarchical policies with nested class-maps, meaning you have a child and parent policy-maps


Example

class-map 1
match ip dscp xx

class-map 2
match class 1

policy-map child
class 2
priority xxx
class class-default
fair queue

policy-map parent
class class-default
shape average xxxx
service-policy child

int x/x
service policy output parent

 

 


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Hey Paul,

Thanks for the prompt reply.

 

The first part of your answer solves my problem perfectly.

class-map 1
match ip dscp xx

class-map 2
match class 1

You are nesting class-maps.  I have read about this exact capability.

 

Except, as I mentioned, this option is not available to me.  To use your example, when I go to create class-map 2, the options available to me are as follows (copied, pasted and redacted right out of the console session of my 3850 switch)

 

sw1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
sw1(config)#class-map match-any 2     <---using your example
sw1(config-cmap)#match ?

 

access-group Access group
cos IEEE 802.1Q/ISL class of service/user priority values
dscp Match DSCP in IPv4 and IPv6 packets
group-object Match object-group
ip IP specific values
mpls Multi Protocol Label Switching specific values
precedence Match Precedence in IPv4 and IPv6 packets
protocol Protocol
qos-group Qos-group
vlan VLANs to match

 

sw1(config-cmap)#match 

 

Note the list.  There is no option to enter class-map.

 

My response to your second option will be in my next post.

 

Thanks.

Hi,

Here's a link to an awesome book on Cisco QoS by Odom Wendell.

Really cheap if you buy second-hand!

Regards,

Azam

Review Cisco Networking for a $25 gift card