Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
New Member

How does class-map match?

Say if I have two class-maps, one is matching on IP address, the other one is matching on IP Precedence, what happens if a packet meets both criteria?  Which class-map it'll match?

I guess it'll be top-down (match the first class-map).  If that's the case, it'd be very difficult to prioritize the class-maps as they don't have line numbers as ACLs, which you can delete/insert the class-map at a specific location in the config.


VIP Purple

I'm not sure why you'd want

I'm not sure why you'd want to do this as Voice is Voice, Video is Video, Data is Data, especially if you use standardised class maps - and remember that QoS really only kicks in if the bandwidth is fully utilised, so in most circumstances with appropriately sized links, it doesn't kick in very often at all.

In any case, your question is probably better placed somewhere in the Network Infrastructure section of the forums than in the Video Over IP section you have posted it in as the solution will be based predominantly on your network equipment.


Please remember to rate responses and to mark your question as answered if appropriate.
Super Bronze

DisclaimerThe Author of this


The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.


Policy-map classes are processed in sequence.

Yes, edits can be difficult, as you may need to drop and redefine multiple classes.  (But we had to do that for ACLs years ago too.  Fortunately, policy-map classes cannot run into the thousands.)

CreatePlease to create content