Step 1 |
configure
terminal
Example:
switch# configure terminal
switch(config)#
|
Enters global
configuration mode.
|
Step 2 |
class-map type qos
class-name
Example:
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
Example:
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
Example:
switch(config-cmap-qos)# exit
switch(config)#
|
Exits class-map
mode and enters global configuration mode.
|
Step 5 |
policy-map type qos
policy-name
Example:
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
Example:
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
Example:
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
Example:
switch(config-pmap-c-qos)# exit
switch(config-pmap-qos)#
|
Exits the system
class configuration mode and enters policy-map mode.
|
Step 9 |
exit
Example:
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
Example:
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
Example:
switch(config-cmap-nqos)# match qos-group 2
|
Configures the
traffic class by matching packets based on a list of QoS group values. Values
can range from 0 to 5. QoS group 0 is equivalent to class-default.
|
Step 12 |
exit
Example:
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
Example:
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
Example:
switch(config-pmap-nqos)# class type network-qos c-nq1
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 buffer-size
buffer-size
pause-threshold
xoff-size
resume-threshold
xon-size
pfc-cos
cos-value
Example:
switch(config-pmap-nqos-c)# pause buffer-size 20000 pause-threshold 100 resume-threshold 1000 pfc-cos 1
|
Specifies the
buffer threshold settings for pause and resume.
-
buffer-size
buffer-size—Specifies the buffer size for ingress
traffic, in bytes. Valid values are from 10240 to 490880.
Note
|
You can
configure a maximum buffer size of 143680 bytes.
|
-
pause-threshold
xoff-size—Specifies the buffer limit at which the
port pauses the peer, in bytes. Valid values are from 0 to 490880.
Note
|
You can
configure a maximum pause threshold value of 58860 bytes.
|
-
resume-threshold
xon-size—Specifies the buffer limit at which the
port resumes the peer, in bytes. Valid values are from 0 to 490880.
Note
|
You can
configure a maximum resume threshold value of 38400 bytes.
|
-
pfc-cos
cos-value—Specifies the CoS values on which to
assert PFC. Valid values are from 0 to 7.
Note
|
When
you configure the buffer size, ensure the following:
-
The
buffer size must be greater than the pause threshold value, and the pause
threshold value must be greater than the resume threshold value. Otherwise, the
following message appears:
ERROR: buffer-size can't be less then pause/resume-threshold
-
The
minimum difference between the pause threshold value and the resume threshold
value must be 20480 bytes. Otherwise, the following message appears:
Warning: The recommended difference between pause and resume threshold is 20480 bytes
-
The
pause threshold value must be greater than the resume threshold value.
Otherwise, the following message appears:
ERROR: pause-threshold can't be less then resume-threshold
|
|
Step 16 |
exit
Example:
switch(config-pmap-nqos-c)# exit
switch(config-pmap-nqos)#
|
Exits
configuration mode and enters policy-map mode.
|
Step 17 |
exit
Example:
switch(config-pmap-nqos)# exit
switch(config)#
|
Exits policy-map mode and enters global configuration mode.
|
Step 18 |
system qos
Example:
switch(config)# system qos
switch(config-sys-qos)#
|
Enters system
class configuration mode.
|
Step 19 |
service-policy type
network-qos
policy-name
Example:
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.
|