cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
353
Views
10
Helpful
4
Replies

Re : Class-map Question.

InternetB
Level 1
Level 1

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.

4 Replies 4

kishan1984
Level 1
Level 1

yes it is an OR operations

Istvan_Rabai
Level 7
Level 7

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

Thanks Istvan.

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

Cheers,

InternetB.

"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

Getting Started

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:

Review Cisco Networking products for a $25 gift card