01-25-2013 10:01 AM - edited 03-04-2019 06:50 PM
How do you delete a class from an existing policy map? For, example, if I have:
class-map match-all telnet-class
match access-group 102
class-map match-all voice-class
match access-group 103
!
policy-map voip-telnet-outbound
class voice-class
priority 100
class telnet-class
bandwidth percent 30
!
access-list 102 permit tcp any any eq telnet
access-list 103 permit ip 192.168.230.0 0.0.0.255 any
... and I want to delete the voice-class from the voip-telnet-outbound policy, what command would do that?
And, once it is deleted, would the changes automagically apply to any interfaces that voip-telnet-outbound is applied to? Or, would I need to do another "service-policy output voip-telnet-outbound" command on the interfaces? Or would I need to do something like shut the interface down and then restart it? Or something else?
I tried "no class voice-class" when configuring the voip-telnet-outbound policy-map, but it didn't do anything.
01-25-2013 11:04 AM
IOS and platform, please.
I tried here on 7200 with 12.4(15)T17 and it worked as expected
class-map match-all voice-class
match access-group 103
class-map match-all telnet-class
match access-group 102
!
!
policy-map voip-telnet-outbound
class voice-class
priority 100
class telnet-class
bandwidth percent 30
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
service-policy output voip-telnet-outbound
!
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#policy-map voip-telnet-outbound
R1(config-pmap)#no class voice-class
class-map match-all voice-class
match access-group 103
class-map match-all telnet-class
match access-group 102
!
!
policy-map voip-telnet-outbound
class telnet-class
bandwidth percent 30
!
!
!
!
!
interface FastEthernet0/0
no ip address
duplex auto
speed auto
service-policy output voip-telnet-outbound
01-25-2013 11:07 AM
conf t
policy-map voip-telnet-outbound
no class voice-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