01-04-2007 04:15 AM - edited 03-03-2019 03:14 PM
In the following config portion, does it matter what order I put the class-map statements? Does the router recognise that subnet B is a subset of subnet A and classify accordingly, or do I need to put the B portion of config before the A portion?
class-map match-all ACRIT
match dscp af31
match access-group name SUBNETA
class-map match-all ATRANS
match dscp af21
match access-group name SUBNETA
class-map match-all BCRIT
match dscp af31
match access-group name SUBNETB
class-map match-all BTRANS
match dscp af21
match access-group name SUBNETB
ip access-list extended SUBNETA
permit ip any 10.0.0.0 0.255.255.255
permit ip 10.0.0.0 0.255.255.255 any
deny ip any any
ip access-list extended SUBNETB
permit ip any 10.128.0.0 0.0.255.255
permit ip 10.128.0.0 0.0.255.255 any
deny ip any any
Solved! Go to Solution.
01-04-2007 06:33 AM
Hi,
Here's the relevant quote from the Cisco docs:
"A packet can match only one traffic class within a traffic policy. If a packet matches more than one traffic class in the traffic policy, the first traffic class defined in the policy will be used."
So, as packets in your example can be matched by more than one traffic class the order is important (i.e. B before A).
HTH
Andrew.
01-04-2007 04:17 AM
Hi,
No, it really doesn't matter in which order you are putting class-map statements, you can configure them in any order.
hope it helps .. rate if it does ...
01-04-2007 06:48 AM
get ur facts clear before u post anything dude....many ppl read these forums
01-04-2007 06:33 AM
Hi,
Here's the relevant quote from the Cisco docs:
"A packet can match only one traffic class within a traffic policy. If a packet matches more than one traffic class in the traffic policy, the first traffic class defined in the policy will be used."
So, as packets in your example can be matched by more than one traffic class the order is important (i.e. B before A).
HTH
Andrew.
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