Configure a Quality of Service

Before you begin

  • Determine whether you are going to attach the QoS forwarding group to a route map or an ACL. ACL provides greater granularity.
  • Determine the queue priority to attach.

Procedure

  1. Enter the QoS config mode.
    device# qos
    device(config-qos)#
  2. Create a QoS forwarding group.
    device(config-qos)# forwarding-group fg1
  3. Create a queue with the required priority in the format q0 through q7 for the QoS forwarding group.
    device(config-qos-group)# queue q1
    • A maximum of eight queues are supported.
    • The highest queue priority is q7 and q0 (default) is the lowest queue priority.
  4. Attach the QoS forwarding group to the route-map or ACL, as required.
    • Attach the QoS forwarding group to the route-map.
      device(config)# route-map map1 1
      forward-action permit
      device(config-route-map)# qos-forwarding-group group_name
      Note

      Note

      The route-map allows you to configure actions that are common for all ACLs under the route-map.
    • Attach the QoS forwarding group to each access control entry (ACE). If a packet matches the criteria of the ACE, the packets are treated with the QoS configurations present in the attached QoS forwarding group.
      device (qos-fowarding-group)# ip access-list acl1
      seq 10 permit tcp any any qos-forwarding-group fg1 
      seq 20 permit udp any any qos-forwarding-group fg2 
      seq 30 permit ip any any
      Note

      Note

      If the forwarding group is not attached, seq uses the QoS forwarding group from the route-map for an IPv4 ACL.