Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Order of classification statements

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

Re: Order of classification statements

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.

3 REPLIES

Re: Order of classification statements

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

New Member

Re: Order of classification statements

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

Re: Order of classification statements

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.

95
Views
2
Helpful
3
Replies
CreatePlease login to create content