cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
442
Views
4
Helpful
1
Replies

Modular QoS CLI

Adam Frederick
Level 3
Level 3

I'm working on class maps and trying to figure out the ins and outs of the match all and match any

command, I'm trying to find out the effects of match-all on the following config. Would it be

better to choose match-any since they are two different IPs being matched?

access-list 107 permit ip 10.10.10.1 any

access-list 107 permit ip 10.10.10.2 any

class-map match-all QoS

match ip add 107

policy-map QoS

class QoS

band 1544

1 Reply 1

mheusinger
Level 10
Level 10

Hello,

the match-all and match-any only refer to the class-map configuration and thus in your example it does not maky any difference, because there is only one statement.

However consider the following two class maps:

class-map match-any THREE

match ip address 10

match ip address 11

class-map match-all ONE

match ip address 10

match ip address 11

access-list 10 permit ip host 1.1.1.1

access-list 10 permit ip host 2.2.2.2

access-list 11 permit ip host 2.2.2.2

access-list 11 permit ip host 3.3.3.3

Here class-map THREE would match 1.1.1.1 or 2.2.2.2 or 3.3.3.3, whereas class-map ONE would only match host 2.2.2.2 which is found in all access-lists specified.

Hope this helps! please rate all posts.

Regards, Martin