-
null
The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco NX-OS quality of service (QoS) commands that begin with M.
To identify a specified access control list (ACL) group as a match criteria for a class map, use the match access-group command. To remove an ACL match criteria from a class map, use the no form of this command.
match access-group name acl-name
no match access-group name acl-name
name acl-name |
Matches on the characteristics in the ACL name specified. |
None
Class-map type qos configuration
|
|
5.2(1)N1(1) |
This command was introduced. |
Note The permit and deny ACL keywords do not affect the matching of packets.
This example shows how to create a qos class map that matches characteristics of the ACL my_acl:
switch(
config)#
class-map class_acl
switch(config-cmap-qos)# match access-group name my_acl
|
|
---|---|
show class-map |
Displays class maps. |
To define the class of traffic using the class of service (CoS) value in a type qos class map, use the match cos command. To remove the match on the CoS value, use the no form of this command.
match [not] cos cos-list
no match [not] cos cos-list
not |
(Optional) Negates the specified match result. |
cos-list |
Specified CoS value or list of specified CoS values. Valid values are from 0 to 7. |
None
Class-map type qos configuration
|
|
5.2(1)N1(1) |
This command was introduced. |
To specify a list of values, use one of the following options:
•Specify a range of values separated by a dash
•Specify a noncontiguous list of values separated by commas
Note Only class maps of type qos support the optional not keyword form of this command. Class maps of type queuing do not support the not keyword.
This example shows how to match on the CoS value for a type qos class map:
switch(
config)#
class-map class_acl
switch(config-cmap-qos)# match cos 5-7
|
|
---|---|
show class-map |
Displays class maps. |
To identify specific differentiated services code point (DSCP) values in the DiffServ field of the IP Header (either IPv4 or IPv6) as a match criteria, use the match dscp command. To remove specified DSCP values as a match criteria, use the no form of this command.
match [not] dscp dscp-list
no match [not] dscp dscp-list
not |
(Optional) Negates the specified match result. |
dscp-list |
Specified DSCP value or list of DSCP values. See Table 1 for a list of valid DSCP values. |
None
Class-map type qos configuration
|
|
5.2(1)N1(1) |
This command was introduced. |
The standard DSCP values are shown in Table 1.
To specify a list of values, use one of the following options:
•Specify a range of values separated by a dash
•Specify a noncontiguous list of values separated by commas
This example shows how to match on DSCP value af21:
switch(
config)#
class-map my_test
switch(config-cmap-qos)# match dscp af21
|
|
---|---|
show class-map |
Displays class maps. |
To configure a class map to use the Real-Time Protocol (RTP) port as a match criteria, use the match ip rtp command. To remove the RTP port as a match criteria, use the no form of this command.
match [not] ip rtp port-list
no match [not] ip rtp port-list
not |
(Optional) Negates the specified match result. |
port-list |
Specified UDP port or list of UDP ports that are using RTP. Valid values range from 2000 to 65535. |
None
Class-map type qos configuration
|
|
5.2(1)N1(1) |
This command was introduced. |
To specify a list of values, use one of the following options:
•Specify a range of values separated by a dash
•Specify a noncontiguous list of values separated by commas
This example shows how to match on a port using RTP:
switch(
config)#
class-map my_test
switch(config-cmap-qos)# match ip rtp 2300
|
|
---|---|
show class-map |
Displays class maps. |
To configure a class map to use the precedence value in the type of service (ToS) byte field of the IP header (either IPv4 or IPv6) as a match criteria, use the match precedence command. To remove the precedence values as a match criteria, use the no form of this command.
match [not] precedence precedence-list
no match [not] precedence precedence-list
not |
(Optional) Negates the specified match result. |
precedence-list |
Specified IP precedence value or list of IP precedence values specified in bytes. Valid values are shown in Table 2. |
None
Class-map type qos configuration
|
|
5.2(1)N1(1) |
This command was introduced. |
See Table 2 for a list of precedence values.
To specify a list of values, use one of the following options:
•Specify a range of values separated by a dash
•Specify a noncontiguous list of values separated by commas
This example shows how to match on an IP precedence value:
switch(
config)#
class-map my_test
switch(config-cmap-qos)# match precedence 7
|
|
---|---|
show class-map |
Displays class maps. |
To configure a class map to use a specific protocol as a match criterion, use the match protocol command. To remove the specified protocol as a match criteria, use the no form of this command.
match [not] protocol protocol-name
no match [not] protocol protocol-name
not |
(Optional) Negates the specified match result. |
protocol-name |
Specified protocol name. Valid values are shown in Table 3. |
None
Class-map type qos configuration
|
|
5.2(1)N1(1) |
This command was introduced. |
The list of valid protocol names is shown in Table 3.
To specify more than one protocol, enter the command more than once with the desired protocol value each time.
This example shows how to match on a specified protocol:
switch(
config)#
class-map my_test
switch(config-cmap-qos)# match protocol ldp
|
|
---|---|
show class-map |
Displays class maps. |
To configure a class map to use a specific QoS group value as a match criterion, use the match qos-group command. To remove the specified protocol as a match criteria, use the no form of this command.
match [not] qos-group qos-group-list
no match [not] qos-group qos-group-list
not |
(Optional) Negates the specified match result. |
qos-group-list |
Specified Qos group value or list of QoS group values specified in bytes. Valid values are from 2 to 5. |
None
Class map type network-qos configuration
Class map type queuing configuration
|
|
---|---|
5.2(1)N1(1) |
This command was introduced. |
The QoS group is an internal label and is not part of the packet payload or any packet header. The QoS group values have no mathematical significance. For example, a QoS group value of 2 is not greater than 1; the values are used only to internally differentiate QoS groups. As such, this value has local significance only.
You match on the QoS group only in egress policies because its value is undefined until you set it in an ingress policy.
To specify a list of values, use one of the following options:
•Specify a range of values separated by a dash
•Specify a noncontiguous list of values separated by commas
This example shows how to match on a specified QoS group value:
switch(config)# class-map type queuing my_test
switch(config-cmap-qos)# match qos-group 6
switch(config-cmap-qos)#
|
|
---|---|
class-map type network-qos |
Creates or modifies a network qos class map. |
class-map type queuing |
Creates or modifies a queuing class map. |
show class-map |
Displays class maps. |
To set the maximum transmission unit (MTU) size for Encapsulated Remote Switched Port Analyzer (ERSPAN) packets in a monitor session, use the mtu command. To remove the configured MTU, use the no form of this command.
mtu mtu-value
no mtu mtu-value
mtu-value |
Maximum allowable MTU for ERSPAN packets in a monitor session. The range is from 64 to 1518 bytes. |
Default is no truncation enabled.
ERSPAN session configuration mode
|
|
---|---|
5.2(1)N1(1) |
This command was introduced. |
ERSPAN packets larger than the specified allowable size for the monitor session are truncated.
This command does not require a license.
This example shows how to set an MTU value for an ERSPAN session:
switch# configure terminal
switch(config)# monitor session 1 type erspan-source
switch(config-erspan-src)# erspan-id 100
switch(config-erspan-src)# mtu 100
switch(config-erspan-src)#
|
|
---|---|
monitor session |
Configures a SPAN or ERSPAN session. |
show monitor session |
Displays the SPAN or ERSPAN session configuration. |
To configure the maximum transmission unit (MTU) size for Layer 2 and Layer 3 Ethernet interfaces, use the mtu command. To remove the configured MTU, use the no form of this command.
mtu mtu-value
no mtu mtu-value
mtu-value |
MTU value for the class of service (CoS). The range is from 64 to 9216.1500 to 9216. |
Default MTU value is 1500. For FCoE cos 3, the default is 2158.
Policy map type network-qos class configuration
|
|
---|---|
5.2(1)N1(1) |
This command was introduced. |
You can configure an MTU for each virtual link in the system.
This example shows how to set an MTU value for a class in a type network-qos policy map:
switch(config)# class-map type network-qos my_class1
switch(config-cmap-nq)# match qos-group 1
switch(config-cmap-nq)# exit
switch(config)# policy-map type network-qos my_policy1
switch(config-pmap-nq)# class type network-qos my_class1
switch(config-pmap-nq-c)# mtu 5000
switch(config-pmap-nq-c)#
To optimize a class to send multiple packets, use the multicast-optimize command.
multicast-optimize
no multicast-optimize
This command has no arguments or keywords.
None
Policy map type network-qos class configuration
|
|
---|---|
5.2(1)N1(1) |
This command was introduced. |
Multicast traffic in a class will be served by all available multicast queues.
Only one class in a policy map can be configured for multicast optimization.
Note On a Cisco Nexus 5548 switch, multicast optimization is enabled by default on the class-default class. You must remove it from the class-default class before enabling it on a user-defined class.
This example shows how to enable optimized multicast for a traffic class:
switch(config)# policy-map type network-qos my_queue
switch(config-pmap-nq)# class type network-qos nqos_class
switch(config-pmap-nq-c)# multicast-optimize
switch(config-pmap-nq-c)#
This example shows how to remove the multicast optimization from a traffic class:
switch(config)# policy-map type network-qos my_queue
switch(config-pmap-nq)# class type network-qos nqos_class
switch(config-pmap-nq-c)# no multicast-optimize
switch(config-pmap-nq-c)#
|
|
---|---|
show policy-map |
Displays the policy maps. |