cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
876
Views
0
Helpful
1
Replies

CoPP class-map match rule question

WiKiD
Level 1
Level 1

Hello everyone,

If you use the example ACL 121 for CoPP best pratice :

access-list 121 permit tcp <NOC block> <router receive block> eq telnet
access-list 121 permit tcp <NOC block> eq telnet <router receive block> established access-list 121 permit tcp <NOC block> <router receive block> eq 22 access-list 121 permit tcp <NOC block> eq 22 <router receive block> established access-list 121 permit udp <NOC block> <router receive block> eq snmp access-list 121 permit tcp <NOC block> <router receive block> eq www access-list 121 permit udp <NOC block> <router receive block> eq 443 access-list 121 permit tcp <NOC block> <router receive block> eq ftp access-list 121 permit tcp <NOC block> <router receive block> eq ftp-data access-list 121 permit udp <NOC block> <router receive block> eq syslog access-list 121 permit udp <DNS block> eq domain <router receive block> access-list 121 permit udp <NTP block> <router receive block> eq ntp ---etc--- for known good management traffic...

and than the class definition also from CoPP best practice:

!
class-map match-all Management
 match access-group 121

My question is:

Does a packet that is checked with the ACL has to match all the permit statements before it is considered a member of the

class Management:

Or is it like this: A packet is received and checked with the ACL 121 if it matches to one permit statement it is a member of

the class Management.

The "match-all" makes me confusion.

Is someone out there to explain this ?

 

 

1 Accepted Solution

Accepted Solutions

Hi,
A packet must match 1 permit statement in your ACL121, just like any normal ACL. In the class-map you can define multiple "match" statements in addition to the ACL - in that instance you'd have to match-all. In your scenario you are only matching on access-group 121, so it makes no difference.

HTH

View solution in original post

1 Reply 1

Hi,
A packet must match 1 permit statement in your ACL121, just like any normal ACL. In the class-map you can define multiple "match" statements in addition to the ACL - in that instance you'd have to match-all. In your scenario you are only matching on access-group 121, so it makes no difference.

HTH