06-21-2009 09:26 PM - edited 03-06-2019 06:22 AM
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.
06-21-2009 10:00 PM
yes it is an OR operations
06-21-2009 10:50 PM
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
06-21-2009 10:54 PM
Thanks Istvan.
Yeah, then the class-map should be a 'class-map match-any'.
Cheers,
InternetB.
06-22-2009 03:29 AM
"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
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: