Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)

Procedure
PurposeCommand or Action
(config)# class-map type qos cmap-qos-acl
(config-cmap-qos)# match access-group ACL-CoS
(config-cmap-qos)# exit
(config)# policy-map type qos pmap-qos-acl
(config-pmap-qos)# class cmap-qos-acl
(config-pmap-c-qos)# set qos-group 4
(config-pmap-c-qos)# exit
(config-pmap-qos)# exit
Set up the ingress classification policy
(the access control list was defined
previously).
Step 1
(config)# system qos
(config-sys-qos)# service-policy type qos input
pmap-qos-acl
(config-sys-qos)# exit
Attach the classification policy to the
system.
Step 2
(config)# class-map type network-qos cmap-nq-acl
(config-cmap-nq)# match qos-group 4
(config-cmap-nq)# exit
(config)# policy-map type network-qos pmap-nq-acl
(config-pmap-nq)# class type network-qos
cmap-nq-acl
(config-pmap-c-nq)# set cos 5
(config-pmap-c-nq)# exit
(config-pmap-nq)# exit
Set up the system class allocation and
rewrite policy. Allocate the system
class for qos-group 4 and define the
rewrite action.
Step 3
(config)# system qos
(config-sys-qos)# service-policy type network-qos
pmap-nq-acl
(config-sys-qos)# exit
Attach the allocation and rewrite policy
to the system.
Step 4
QoS Example 2
This example shows how to use an access control list to apply 50% bandwidth to traffic on Ethernet interface
1/3 that matches traffic on Ethernet interface 1/1.
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01 455
Example QoS Configurations
QoS Example 2