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 3
|
Configures the traffic class by matching packets based on a list of QoS group values. Values can range from 0 to 7. QoS group
0 is equivalent to class-default.
Note
|
The qos-group-value should match the pause pfc-cos
value . See the pause pfc-cos command below in this procedure.
|
|
Step 12 |
exit
switch(config-cmap-nqos)# exit
switch(config)#
|
Exits class-map mode and enters global configuration mode.
|
Step 13 |
class-map type network-qos
class-name
switch(config)# class-map type network-qos nw-qos3
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 14 |
match qos-group
qos-group-value
switch(config-cmap-nqos)# match qos-group 3
|
Configures the traffic class by matching packets based on a list of QoS group values. Values can range from 0 to 7. QoS group
0 is equivalent to class-default.
|
Step 15 |
exit
switch(config-cmap-nqos)# exit
switch(config)#
|
Exits class-map mode and enters global configuration mode.
|
Step 16 |
policy-map type
network-qos
policy-name
switch(config)# policy-map type network-qos pfc-qos
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 17 |
class type network-qos
class-name
switch(config-pmap-nqos)# class type network-qos nw-qos3
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 18 |
pause pfc-cos
value
switch(config-pmap-nqos-c)# pause pfc-cos 3
switch(config-pmap-nqos)#
|
PFC sends a pause frame that indicates which CoS value needs to be paused.
Note
|
The pause pfc-cos
value should match the qos-group-value in the match qos-group command. See Step Step 11.
|
|
Step 19 |
exit
switch(config-pmap-nqos-c)# exit
switch(config-pmap-nqos)#
|
Exits
configuration mode and enters policy-map mode.
|
Step 20 |
exit
switch(config-pmap-nqos)# exit
switch(config)#
|
Exits policy-map mode and enters global configuration mode.
|
Step 21 |
system qos
switch(config)# system qos
switch(config-sys-qos)#
|
Enters system
class configuration mode.
|
Step 22 |
service-policy type
network-qos
policy-name
switch(config-sys-qos)# service-policy type network-qos pfc-qos
|
Applies the
policy map of type network-qos at the system level or to the specific
interface.
|
Step 23 |
exit
switch(config-sys-qos)# exit
switch(config)#
|
Exits policy-map mode and enters global configuration mode.
|
Step 24 |
interface ethernet
slot/number
switch(config)# interface ethernet 1/1
switch(config-if)#
|
Enters the ethernet interface configuration mode for the selected slot and chassis number.
|
Step 25 |
priority-flow-control mode on
slot/number
switch(config-if)# priority-flow-control mode on
switch(config-if)#
|
Enables the priority flow control policy for the interface.
|
Step 26 |
exit
switch(config-if)# exit
switch(config)#
|
Exits the ethernet interface mode and enters the global configuration mode.
|