cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
691
Views
0
Helpful
3
Replies

question about class-default...

Alexander Demin
Level 1
Level 1

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.

DAO21-RIPE
3 Replies 3

ajay chauhan
Level 7
Level 7

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

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?

DAO21-RIPE

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.

Review Cisco Networking for a $25 gift card