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

Adding user-defined classed to policy at this level not allowed QoS 2901

keithsauer507
Level 5
Level 5

Hi, 

I'm trying to add this policy to shape traffic that matches VMWare Replication to an existing 2901 router.

I've bolded whats NEW below.  What isn't bold already exists.

ip access-list extended VRPorts
permit tcp any any eq 44046
permit tcp any any eq 31031

class-map VR
match access-group name VRPorts

policy-map FIFTYMEG
class VR
shape average 20000000
class class-default
shape average 50000000
set cos 0
service-policy QOS50

I'm getting this error message after typing the shape average 2000000 command:

(config-pmap-c)#shape average 2000000
Adding user-defined classed to policy at this level is not allowed, please remove policy from the interface and Modify policy and then re-install the policy on the interface.

How can I get this installed properly in this policy map?  It worked fine on a spare 2811 router in my lab setup, and I verified the bandwidth using iperf between two test machines in the lab.

1 Reply 1

keithsauer507
Level 5
Level 5

I think i figured it out.  Not sure why the 2811 didn't gripe in the lab but the 2901 in prod did.

basically had to go into policy-map FIFTYMEG and do no class class-default, then apply everything in this order:

class VR
shape average 20000000
class class-default
shape average 50000000
set cos 0
service-policy QOS50

Review Cisco Networking for a $25 gift card