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. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Cannot remove class map from a policy map

Hello,

I am trying to remove a class map off of a router, when I do it tells me the class map is being used.

So I go to the policy map where it is applied and type "no class class-name", it accepts the command but i try to remove the class map again and it is still being used. 

I check the policy map and the class map still shows only it is shows as a blank entry with no precedence or access group applied to it.

Any idea how I can remove this class map from the policy map so i can remove the class map from the router?

  • WAN Routing and Switching
2 ACCEPTED SOLUTIONS

Accepted Solutions
Cisco Employee

Cannot remove class map from a policy map

Hi,

i believe the policy map is applied on any one of the interfaces and acl is matching some traffic and  that is the reason why you are not able to remove the class map from policy map.

Here are the steps to remove a class map from a policy map

Switch#conf t

switch(config)# class-map

switch(config-cmap)# no match access-list

switch(config-cmap)# policy-map

switch(config-pmap)# no class

switch(config-pmap)#exit

switch(config)# no access-list

Hope this answers your question.

Cheers

Somu

Rate helpful posts

Purple

Cannot remove class map from a policy map

Hi,

remove the policy-map from the interface with the interface command no service-policy in|out

then you can remove the class-map.

Regards.

Alain

Don't forget to rate helpful posts.
4 REPLIES
Cisco Employee

Cannot remove class map from a policy map

Hi,

i believe the policy map is applied on any one of the interfaces and acl is matching some traffic and  that is the reason why you are not able to remove the class map from policy map.

Here are the steps to remove a class map from a policy map

Switch#conf t

switch(config)# class-map

switch(config-cmap)# no match access-list

switch(config-cmap)# policy-map

switch(config-pmap)# no class

switch(config-pmap)#exit

switch(config)# no access-list

Hope this answers your question.

Cheers

Somu

Rate helpful posts

New Member

Hi,

Hi,

I try the command to clear all policy-map and class-map

clear configure policy-map 

clear configure class-map 

hope be helpful

Purple

Cannot remove class map from a policy map

Hi,

remove the policy-map from the interface with the interface command no service-policy in|out

then you can remove the class-map.

Regards.

Alain

Don't forget to rate helpful posts.
New Member

Cannot remove class map from a policy map

Thank you, you were both right.  The policy was still applied to the interface.

Wish I read your responses before I forged ahead because I ended up removing and re-adding the policy-map just to delete my unwanted class-maps.

Either way the QOS configuration has been corrected.  Thanks for your help...

7823
Views
0
Helpful
4
Replies
This widget could not be displayed.