cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
553
Views
2
Helpful
3
Replies

Order of classification statements

huw.morgan
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

andrew.burns
Level 7
Level 7

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.

View solution in original post

3 Replies 3

sourabhagarwal
Level 4
Level 4

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 ...

get ur facts clear before u post anything dude....many ppl read these forums

andrew.burns
Level 7
Level 7

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card