Step 1 |
configure terminal
switch# configure terminal
switch(config)#
|
Enters global configuration mode.
|
Step 2 |
class-map type qos match { all | any } 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.
match { all | any } : Default is match all (if multiple matching statements are present all of them must be matched).
|
Step 3 |
match cos
cos-value
switch(config-cmap-qos)# match cos 2
switch(config-cmap-qos)#
|
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 |
match dscp
dscp-value
switch(config-cmap-qos)# match dscp 3
switch(config-cmap-qos)#
|
Specifies the DSCP value to match for classifying packets into this class. You can configure a DSCP value in the range of
0 to 63 or the listed values.
|
Step 5 |
exit
switch(config-cmap-qos)# exit
switch(config)#
|
Exits class-map mode and enters global configuration mode.
|
Step 6 |
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 7 |
class
class-name
switch(config-pmap-qos)# class 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 8 |
set qos-group
qos-group-value
switch(config-pmap-c-qos)# set qos-group 3
switch(config-pmap-c-qos)#
|
Configures one or more qos-group values to match on for classification of traffic into this class map. There is no default
value.
|
Step 9 |
exit
switch(config-pmap-c-qos)# exit
switch(config-pmap-qos)#
|
Exits the system class configuration mode and enters policy-map mode.
|
Step 10 |
exit
switch(config-pmap-qos)# exit
switch(config)#
|
Exits policy-map mode and enters global configuration mode.
|
Step 11 |
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 12 |
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 13 |
pause pfc-cos
value [ receive ]
switch(config-pmap-nqos-c)# pause pfc-cos 3 receive
switch(config-pmap-nqos-c)#
|
PFC sends a pause frame that indicates which CoS value needs to be paused. Only PFC receive is enabled for the list of PCF
CoS values.
receive : When this optional keyword is used, PFC only receives and honors pause frames. PFC will never send pause frames. This is
known as "Asymmetric PFC".
Note
|
Although not required, the pause pfc-cos
value should match the qos-group-value in the set qos-group command. See the set qos-group command in steps 8 above.
|
|
Step 14 |
exit
switch(config-pmap-nqos-c)# exit
switch(config-pmap-nqos)#
|
Exits configuration mode and enters policy-map mode.
|
Step 15 |
exit
switch(config-pmap-nqos)# exit
switch(config)#
|
Exits policy-map mode and enters global configuration mode.
|
Step 16 |
system qos
switch(config)# system qos
switch(config-sys-qos)#
|
Enters system class configuration mode.
|
Step 17 |
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 18 |
exit
switch(config-sys-qos)# exit
switch(config)#
|
Exits policy-map mode and enters global configuration mode.
|
Step 19 |
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 20 |
priority-flow-control mode { auto | on | off }
switch(config-if)# priority-flow-control mode on
switch(config-if)#
|
Enables the priority flow control policy for the interface.
|
Step 21 |
service-policy type qos input
policy-name
switch(config-if)# service-policy type qos input p1
|
Adds classification to the interface ensuring that packets matching the previously configured CoS or DSCP values are classified
in the correct QoS group.
|
Step 22 |
exit
switch(config-if)# exit
switch(config)#
|
Exits the ethernet interface mode and enters the global configuration mode.
|