Step 1
|
configure terminal
switch# configure terminal
switch(config)#
|
Enters global configuration mode.
|
Step 2
|
class-map type qos
class-name
switch(config)# class-map type qos c1
switch(config-cmap-qos)#
|
Creates a named object that represents a class of traffic. Class-map names can contain alphabetic, hyphen, or underscore characters,
are case sensitive, and can be up to 40 characters.
|
Step 3
|
match cos
cos-value
switch(config-cmap-qos)# match cos 2
|
Specifies the CoS value to match for classifying packets into this class. You can configure a CoS value in the range of 0
to 7.
|
Step 4
|
exit
switch(config-cmap-qos)# exit
switch(config)#
|
Exits class-map mode and enters global configuration mode.
|
Step 5
|
policy-map type qos
policy-name
switch(config)# policy-map type qos p1
switch(config-pmap-qos)#
|
Creates a named object that represents a set of policies that are to be applied to a set of traffic classes. Policy-map names
can contain alphabetic, hyphen, or underscore characters, are case sensitive, and can be up to 40 characters.
|
Step 6
|
class type qos
class-name
switch(config-pmap-qos)# class type qos c1
switch(config-pmap-c-qos)#
|
Associates a class map with the policy map and enters the configuration mode for the specified system class.
Note
|
The associated class map must be the same type as the policy map type.
|
|
Step 7
|
set qos-group
qos-group-value
switch(config-pmap-c-qos)# set qos-group 2
|
Configures one or more qos-group values to match on for classification of traffic into this class map. There is no default
value.
|
Step 8
|
exit
switch(config-pmap-c-qos)# exit
switch(config-pmap-qos)#
|
Exits the system class configuration mode and enters policy-map mode.
|
Step 9
|
exit
switch(config-pmap-qos)# exit
switch(config)#
|
Exits policy-map mode and enters global configuration mode.
|
Step 10
|
class-map type network-qos match-any
class-name
switch(config)# class-map type network-qos match-any c1
switch(config-cmap-nqos)#
|
Creates a named object that represents a class of traffic. Class-map names can contain alphabetic, hyphen, or underscore characters,
are case sensitive, and can be up to 40 characters.
|
Step 11
|
match qos-group
qos-group-value
switch(config-cmap-nqos)# match qos-group 2
|
Configures the traffic class by matching packets based on a list of QoS group values. Supported on QoS group 2 and QoS group
3.
|
Step 12
|
exit
switch(config-cmap-nqos)# exit
switch(config)#
|
Exits class-map mode and enters global configuration mode.
|
Step 13
|
policy-map type network-qos
policy-name
switch(config)# policy-map type network-qos p1
switch(config-pmap-nqos)#
|
Creates a named object that represents a set of policies that are to be applied to a set of traffic classes. Policy-map names
can contain alphabetic, hyphen, or underscore characters, are case sensitive, and can be up to 40 characters.
|
Step 14
|
class type network-qos
class-name
switch(config-pmap-nqos)# class type network-qos c1
switch(config-pmap-nqos-c)#
|
Associates a class map with the policy map, and enters the configuration mode for the specified system class.
Note
|
The associated class map must be the same type as the policy map type.
|
|
Step 15
|
pause pfc cos-value
switch(config-pmap-nqos-c)# pause pfc-cos 2
|
PFC sends a pause frame that indicates which CoS value needs to be paused. (CoS value range is 0-7.)
Note
|
Nexus 3500 does not support the receive option of the pause command. An error occurs when the receive option is configured.
|
|
Step 16
|
exit
switch(config-pmap-nqos-c)# exit
switch(config-pmap-nqos)#
|
Exits configuration mode and enters policy-map mode.
|
Step 17
|
exit
switch(config-pmap-nqos)# exit
switch(config)#
|
Exits policy-map mode and enters global configuration mode.
|
Step 18
|
system qos
switch(config)# system qos
switch(config-sys-qos)#
|
Enters system class configuration mode.
|
Step 19
|
service-policy type network-qos
policy-name
switch(config-sys-qos)# service-policy type network-qos p1
|
Applies the policy map of type network-qos at the system level or to the specific interface.
|