Re : Class-map Question.

Unanswered Question
Jun 21st, 2009
User Badges:

Hi,

I would like to check if there is a class-map statement as follows:-


class-map match-all Data

match ip dscp cs1 af11


My question is that would the class-map be effective when both cs1 and af11 present or is it an OR operations ?


Thank you,


Cheers,

InternetB.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Istvan_Rabai Sun, 06/21/2009 - 22:50
User Badges:
  • Gold, 750 points or more

Hi InternetB,


The following would be an AND operation:


class-map match-all Data

match ip dscp cs1

match ip dscp af11


But this would not match any packets as one packet cannot have 2 different DSCP values at a time, of course.


Cheers:

Istvan

InternetB Sun, 06/21/2009 - 22:54
User Badges:

Thanks Istvan.


Yeah, then the class-map should be a 'class-map match-any'.


Cheers,

InternetB.

Joseph W. Doherty Mon, 06/22/2009 - 03:29
User Badges:
  • Super Bronze, 10000 points or more

"My question is that would the class-map be effective when both cs1 and af11 present or is it an OR operations ? "


Yes, it can be effective assuming you mean you want to match a packet with either a CS1 or AF11. (One packet can't have both, since each is a unique DSCP tag. I'm also assuming you're not confusing CS1 with IP Precedence 1.)


These class-maps are equivalent:


class-map match-all Data

match ip dscp cs1 af11


class-map match-any Data

match ip dscp cs1

match ip dscp af11


Actions

This Discussion