12-12-2011 04:24 AM - edited 03-07-2019 03:51 AM
Hello.
Assume we have:
#sh class-map
Class Map match-all AnyNonIP (id 1)
Match access-group name AnyNonIP
Class Map match-any class-default (id 0)
Match any
and:
#sh access-lists AnyNonIP
Extended MAC access list AnyNonIP
permit any any
Assume then we have two policy-maps that can be used for policing traffic on an interface:
Policy Map TEST1
Class AnyNonIP
police 1000000 8000 exceed-action drop
Policy Map TEST2
Class class-default
police 1000000 8000 exceed-action drop
Will there be any difference between these two?
Thanks in advance,
wbr, Alex.
12-12-2011 04:31 AM
When we create class-map on router ,class-default also comes default way based on creteria whatever we are matching for class-map we created goes into and things those are not matching comes under class-default.
Thanks
Ajay
12-12-2011 04:53 AM
Okay, I understand this. But I mean, will be the traffic, that goes through the interface with service-policy TEST1 in and service-policy TEST2 in treated differently?
12-12-2011 06:30 AM
Looking at output you have posted seems you called class-default under 2nd policy-map. One policy map can be applied on interface so consider like if you have 10 packet going through interface where policy-map is applied -and you class map matches 8 packets out of them then policy will be applied on 8 packet and 2 packet will be untouched considering part of class-deafult.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide