Re: match-any vs match all

From: Ronnie Angello (ronnie.angello@gmail.com)
Date: Thu Sep 20 2007 - 15:30:50 ART


Yes, that's correct. I should have been more specific.

 Usage Guidelines

DSCP Values

Up to eight DSCP values can be matched in one match statement. For example,
if you wanted the DCSP values of 0, 1, 2, 3, 4, 5, 6, or 7 (note that only
one of the IP DSCP values must be a successful match criterion, not all of
the specified DSCP values), enter the *match dscp 0 1 2 3 4 5 6 7* command.

On 9/20/07, Jason Guy (jguy) <jguy@cisco.com> wrote:
>
> Ronnie,
>
> I think your DSCP example is true only if you configure it like this:
>
> class-map match-all dscp
> match dscp af31
> match dscp ef
> !
>
> The match-any/all criteria apply only to the match statements, not just
> values within a class. However, if you were to configure it like this:
>
> class-map match-all DSCP
> match dscp af31 ef
> !
>
> This would still match AF31 -OR- EF. I cannot find this clearly stated
> in the doccd. I believe there is always an implicit OR for multiple
> values within a given match line.
>
> Jason
>
> > -----Original Message-----
> > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
> Of
> > Ronnie Angello
> > Sent: Thursday, September 20, 2007 11:47 AM
> > To: Radioactive Frog
> > Cc: Cisco certification; Cisco certification
> > Subject: Re: match-any vs match all
> >
> > Just to add a classic example to what Scott said, say you you need to
> > match
> > multiple DSCP values in a class-map. You don't want to use match-all
> if
> > you
> > need to match AF31 and EF. That class-map will not match anything
> because
> > a
> > packet can't be marked with both DSCP values. You would need to use
> > match-any in that case.
> >
> > On 9/20/07, Scott Morris <swm@emanon.com> wrote:
> > >
> > > When you have multiple things that must match (AND) or multiple
> things
> > > that
> > > may match (OR)
> > >
> > > -----Original Message-----
> > > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
> Of
> > > Radioactive Frog
> > > Sent: Thursday, September 20, 2007 4:36 AM
> > > To: Cisco certification; Cisco certification
> > > Subject: match-any vs match all
> > >
> > > When to use "class-map match-all <abcd>" and when "class-map
> match-any
> > > <abcd>"
> > >
> > > Advantage/dis-advantage ?
> > >
> > > Frog
> > >
> > >
> _______________________________________________________________________
> > > Subscription information may be found at:
> > > http://www.groupstudy.com/list/CCIELab.html
> > >
> > >
> _______________________________________________________________________
> > > Subscription information may be found at:
> > > http://www.groupstudy.com/list/CCIELab.html
> > >
> >
> >
> >
> > --
> > Ronald Angello
> > CCIE #17846
> >
> >
> _______________________________________________________________________
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
>

-- 
Ronald Angello
CCIE #17846


This archive was generated by hypermail 2.1.4 : Sat Oct 06 2007 - 12:01:14 ART