Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Re : Class-map Question.

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
New Member

Re: Re : Class-map Question.

yes it is an OR operations

Re: Re : Class-map Question.

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

New Member

Re: Re : Class-map Question.

Thanks Istvan.

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

Cheers,

InternetB.

Super Bronze

Re: Re : Class-map Question.

"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

108
Views
10
Helpful
4
Replies