12-13-2010 11:47 PM - edited 03-04-2019 10:46 AM
Hi experts,
i am trying to create three classes as follow but i am getting a error
this is just for example
class-map voice
match protocol rtp
class-map web
match protocol http
class-map AV
match protocol bit-torrents
policy-map HARI
class voice
bandwidth percent 30
class web
bandwidth percent 20
class AV
bandwidth remaining percent 15
All classes with bandwidth should have consistent units --------- this is the message i got....
cisco document says,
For the bandwidth commands, it is not possible to mix classes with different units (bandwidth, bandwidth percent, bandwidth remaining percent) in the same policy map. You receive an error message like this:
Router(config-pmap-c)#bandwidth remaining percent 50 All classes with bandwidth should have consistent units
I want to know is there any workaround to configure bandwidth and bandwidth remaining percent in the same policy map
Regards,
Hariharan k
12-14-2010 02:17 AM
Hi,
you might be able to mix bandwidth allocated in kbps and bandwidth percent or bandwidth percent remaining (if it makes sense?).
But NOT bandwidth percent AND bandwidth percent remaining.
BR,
Milan
12-15-2010 04:02 AM
Hi milan,
I am unable to configure bandwidth in kbs and bandwidth remaining percent or bandwidth percent in single policy map.
Router(config)#policy-map HARI
Router(config-pmap)#class
Router(config-pmap)#class map
Router(config-pmap)#class voice
Router(config-pmap-c)#bandwidth
Router(config-pmap-c)#bandwidth 10
Router(config-pmap-c)#exit
Router(config-pmap)#class
Router(config-pmap)#class cbs
Router(config-pmap-c)#band
Router(config-pmap-c)#bandwidth 20
Router(config-pmap-c)#exit
Router(config-pmap)#band
Router(config-pmap)#bandw
Router(config-pmap)#class
Router(config-pmap)#class AV
Router(config-pmap-c)#bandwidth remaining percent 15
All classes with bandwidth should have consistent units
Router(config-pmap-c)#
Regards,
Hariharan k
12-15-2010 05:19 AM
Hi,
I am unable to configure bandwidth in kbs and bandwidth remaining percent or bandwidth percent in single policy map
That's normal behaviour , you can't mix bandwidth commands in a single policy-map.
Regards.
12-15-2010 05:38 AM
Ohh,
I missed that.
So the only mixture possible is configuring the priority queue using the priority ... [kbps] command and the other classes have to use a unified syntax (all either kbps or percent).
BR,
Milan
12-15-2010 11:28 PM
hi all ,
i really want to understand why it is not possible , if it is not possible why cisco is giving the folowing examples in thier website........
https://www.cisco.com/en/US/docs/ios_xr_sw/iosxr_r3.7/qos/command/reference/qr37book.pdf
Examples
In the following example, a class called class1 is guaranteed 50 percent of the interface bandwidth and
a class called class2 is guaranteed 10 percent of the interface bandwidth. The remaining bandwidth of 40 percent
is shared by classes class1 and class2 in a 20:80 ratio: class class1 receives 20 percent of the 40 percent, and
class class2 receives 80 percent of the 40 percent.
RP/0/RP0/CPU0:router(config)# policy-map policy1
RP/0/RP0/CPU0:router(config-pmap)# class class1
RP/0/RP0/CPU0:router(config-pmap-c)# bandwidth percent 50
RP/0/RP0/CPU0:router(config-pmap-c)# bandwidth remaining percent 20
RP/0/RP0/CPU0:router(config-pmap-c)# exit
RP/0/RP0/CPU0:router(config-pmap)# class class2
RP/0/RP0/CPU0:router(config-pmap-c)# bandwidth percent 10
RP/0/RP0/CPU0:router(config-pmap-c)# bandwidth remaining percent 80
Regards,
Hariharan k
12-15-2010 11:46 PM
Hi,
is seems IOS XR (you are referring to) is using the bandwidth remaining command a totally different way than a traditional IOS :-(
BR,
Milan
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