From: Georg Pauwen (pauwen@hotmail.com)
Date: Wed Mar 16 2005 - 07:37:08 GMT-3
Hello group,
this might be a stupid question, but I am just trying to clear some things
up: it was my understanding that the difference between a match-all and a
match-any in a class-map was that match-all has to match every single
condition, like the logical AND, and that match-any has to match either one
of the conditions, like the logical OR.
So in this example:
access-list 101 permit tcp any any eq www
access-list 102 permit tcp any any eq bgp
a class-map match-all:
class-map match-all WWW_AND_BGP
match ip address 101
match ip address 102
would never work, because the traffic types www and bgp will never be the
same.
A class-map match-any:
class-map match-any WWW_OR_BGP
match ip address 101
match ip address 102
would work, since either one of the access lists have to apply, and not
both.
Is this the right reasoning ? I am just asking because I have seen a sample
configs where the match-all statement was used like in the example above...
Thanks for your input in advance.
Regards,
Georg
This archive was generated by hypermail 2.1.4 : Sun Apr 03 2005 - 17:56:46 GMT-3