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-bandwidth
(config-cmap-qos)# match access-group ACL-bandwidth
(config-cmap-qos)# exit
(config)# policy-map type qos pmap-qos-eth1-1
(config-pmap-qos)# class cmap-qos-bandwidth
(config-pmap-c-qos)# set qos-group 2
(config-pmap-c-qos)# exit
(config-pmap-qos)# exit
Set up the ingress classification
policy.
Step 1
(config)# interface ethernet 1/1
(config-if)# service-policy type qos input
pmap-qos-eth1-1
(config-if)# exit
Attach the classification policy
to the interface Ethernet 1/1.
Step 2
(config)# class-map type queuing cmap-que-bandwidth
(config-cmap-que)# match qos-group 2
(config-cmap-que)# exit
Set up the system-wide
definition of the qos-group first.
Step 3
Before you can successfully allocate bandwidth to the
user-defined class cmap-que-bandwidth, you must first
reduce the default bandwidth configuration on
class-default and class-fcoe.
Note
(config)# policy-map type queuing pmap-que-eth1-2
(config-pmap-que)# class type queuing class-default
(config-pmap-c-que)# bandwidth percent 10
(config-pmap-c-que)# exit
(config-pmap-que)# class type queuing class-fcoe
(config-pmap-c-que)# bandwidth percent 40
(config-pmap-c-que)# exit
(config-pmap-que)# class type queuing
cmap-que-bandwidth
(config-pmap-c-que)# bandwidth percent 50
(config-pmap-c-que)# exit
(config-pmap-que)# exit
Set up the egress bandwidth
policy.
Step 4
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
456 OL-16597-01
Example QoS Configurations
QoS Example 2