02-04-2020 06:32 AM
What would be the default behavior if there is no matching criteria under class-map match-any? Would that turn into "match-all' behavior??
Example:
class-map match-any test
!
policy-map remarkdefault
class test
set ip dscp default
!
interface GigabitEthernet1/0/1
service-policy input remarkdefault
Would all inbound packets be remarked to dscp 0?
Solved! Go to Solution.
02-04-2020 07:10 AM
Hello,
without any 'match' statements in the class-map, all traffic goes to the default class:
Router#sh policy-map interface
GigabitEthernet0/0
Service-policy input: remarkdefault
Class-map: test (match-any)
0 packets, 0 bytes
5 minute offered rate 0000 bps, drop rate 0000 bps
Match: none
0 packets, 0 bytes
5 minute rate 0 bps
QoS Set
dscp default
Packets marked 0
Class-map: class-default (match-any)
4 packets, 456 bytes
5 minute offered rate 0000 bps, drop rate 0000 bps
Match: any
02-04-2020 07:10 AM
Hello,
without any 'match' statements in the class-map, all traffic goes to the default class:
Router#sh policy-map interface
GigabitEthernet0/0
Service-policy input: remarkdefault
Class-map: test (match-any)
0 packets, 0 bytes
5 minute offered rate 0000 bps, drop rate 0000 bps
Match: none
0 packets, 0 bytes
5 minute rate 0 bps
QoS Set
dscp default
Packets marked 0
Class-map: class-default (match-any)
4 packets, 456 bytes
5 minute offered rate 0000 bps, drop rate 0000 bps
Match: any
02-04-2020 02:21 PM
I think you are misunderstanding the logic behind match-any and match-all statements.
Match-Any means that the traffic is classified if ANY of the statements below it are true. Meaning if you had 5 statements, only one statement being true would make that traffic be in the 'class'.
Match-All means that the traffic is classified if ALL of the statements below it are true. Meaning if you had 5 statements, all five statements would need to be true in order make that traffic be in the 'class'.
In your case, since there aren't any "match" statements, no traffic will be in the 'class'
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