Purpose
Command or Action
Use the
class-default
keyword to select all traffic that is not
currently matched by classes in the policy map.
Specifies the CoS value.
switch(config-pmap-nq-c) #
set
cos cos-value
Step 5
The value can range from 0 to 7.
You can use this command only in egress policies.
In Layer 3 topologies, each qos-group must have a
unique cos configuration.
Note
This example shows how to set the CoS value to 4 in a Layer 3 topology:
switch#
show policy-map system
Type network-qos policy-maps
===============================
policy-map type network-qos pn-01
class type network-qos cn-01
match qos-group 1
mtu 8500
pause no-drop
set cos 2
class type network-qos cn-02
match qos-group 2
set cos 4
mtu 9216
class type network-qos cn-03
match qos-group 3
mtu 8000
set cos 6
class type network-qos cn-04
match qos-group 4
mtu 8750
set cos 7
class type network-qos cn-ip-multicast
match qos-group 5
set cos 5
mtu 7500
class type network-qos class-default
match qos-group 0
mtu 1500
multicast-optimize
set cos 1
...
switch#
configure terminal
switch(config)#
policy-map type network-qos pn-01
switch(config-pmap-nq)#
class type network-qos cn-05
switch(config-pmap-c-nq)#
set cos 3
Verifying the Marking Configuration
Use one of the following commands to verify the configuration:
Purpose
Command
Displays the class maps defined on the switch.
show class-map
Displays the policy maps defined on the switch.
Optionally, you can display the named policy only.
show policy-map
[
name
]
Displays information about the running configuration
for QoS.
running-config ipqos
Cisco Nexus 5000 NX-OS Quality of Service Configuration Guide, Release 5.1(3)N2(1)
32
OL-26657-01
Configuring Marking
Verifying the Marking Configuration