Apply Cisco QoS to outside interface

I have a new cisco 891 router that I am trying to configure for QoS.

I have some experience with cisco ios just not qos.

What I am trying to accomplish is to guarantee at least 2mbps bandwidth to the VoIP vlan and limit a guest vlan to 2mbps maximum. There are other vlans and they should have the remaining bandwidth.

I configured class maps and policy maps as follows:

class-map match-any guest-class-map
 match access-group 40
class-map match-any voice-class-map
 match access-group 20
policy-map default-policy
 class class-default
  bandwidth remaining percent 100
policy-map voice-traffic
 class voice-class-map
  bandwidth 2048
policy-map guest-traffic
 class guest-class-map
  police cir 2097000
   exceed-action drop

access-list 20 permit
access-list 40 permit

I believe these are correct for what I am looking to accomplish. Correct me if they are not.

The question I have is how to apply these policies to my outside interface?

It only allows me to attach one policy to output.

It does not allow me to attach any to input. Says bandwidth command not allowed at parent level in input direction.
Who is Participating?
Hassan BesherConnect With a Mentor Commented:
At VOIP you should implement priority  not Bandwidth :

policy-map LLQ
 class voice-class-map
  priority  2048

 class guest-class-map
  police cir 2097000
   exceed-action drop

class class-default

service-policy output LLQ
bts86Author Commented:
Ok, I will try that.

I have a question about priority, it is unclear to me in cisco's documentation.

If i allocate 2048K to the voice class, is that bandwidth still available to the default class if it is not being used? And can the voice class utilize more bandwidth if it needs to?
Hassan BesherCommented:
your priority option will make sure that you have the specific bandwidth you say and not more also it will make sure to always put voip traffic in the first of the queue (Strict queue).
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.