cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1989
Views
0
Helpful
1
Replies

Cisco Bandwidth limit using policy and class map

salehahmedovic
Level 1
Level 1

Hello All,

 

i have one subnet /24 and wants a specific ip to consume BW 2M and the whole other IPS to consume 6M so i created access list and applied the below configuration but error "cannot attach queuing-based child policy to a non-queuing based class" has appeared and configuration can't be applied

 

Router version: Cisco 888EA-K9

Vesrion:

#show version

Cisco IOS Software, C800 Software (C800-UNIVERSALK9-M), Version 15.2(4)M6, RELEASE SOFTWARE (fc2)

Copyright (c) 1986-2014 by Cisco Systems, Inc.

Compiled Wed 19-Mar-14 20:07 by prod_rel_team

 

ROM: System Bootstrap, Version 15.1(4r)M, RELEASE SOFTWARE (fc1)

 

the below IPs are just for example

access-list 101 permit ip any 10.0.0.0 0.0.0.63  
access-list 101 permit ip any 10.0.0.64 0.0.0.31  
access-list 101 permit ip any 10.0.0.96 0.0.0.15 
access-list 101 permit ip any 10.0.0.112 0.0.0.7  
access-list 102 permit ip any 10.0.0.120 0.0.0.0 ## Server "2M"
access-list 101 permit ip any 10.0.0.121 0.0.0.0  
access-list 101 permit ip any 10.0.0.122 0.0.0.0
access-list 101 permit ip any 10.0.0.123 0.0.0.0
access-list 101 permit ip any 10.0.0.124 0.0.0.3
access-list 101 permit ip any 10.0.0.128 0.0.0.127

(config)#policy-map physical

(config-pmap)#class class-default

(config-pmap-c)#service-policy subnets

Cannot attach queuing-based child policy to a non-queuing based class

 

 

 

 

#show running-config class-map subnet-a

Building configuration...

 

Current configuration : 63 bytes

!

class-map match-all subnet-a

match access-group 101

!

end

 

#show running-config class-map subnet-b

Building configuration...

 

Current configuration : 63 bytes

!

class-map match-all subnet-b

match access-group 102

!

end

           

#show running-config policy-map subnets

Building configuration...

 

Current configuration : 109 bytes

!

policy-map subnets

class subnet-a

  bandwidth percent 75

 class subnet-b

  bandwidth percent 25

!

end

 

#show running-config policy-map physical

Building configuration...

 

Current configuration : 113 bytes

!

policy-map physical

class class-default

  police 8000000 conform-action transmit  exceed-action drop

!

end

 

1 Reply 1

Hello,

 

it is probably complaining that you police the parent class.

 

Try the below:

 

policy-map subnets
class subnet-a
priority 2048
class subnet-b
priority 6144
class class-default
fair-queue
!
policy-map physical
class class-default
shape average 8000000
service-policy subnets

!

class-map match-all subnet-a
match access-group 101
!
class-map match-all subnet-b
match access-group 102