cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3765
Views
5
Helpful
6
Replies

unable to mix bandwidth percent and bandwidth remaining command

k.hariharan1
Level 1
Level 1

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

6 Replies 6

milan.kulik
Level 10
Level 10

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

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

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.

Don't forget to rate helpful posts.

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

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

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

Review Cisco Networking products for a $25 gift card