Step 1 |
switch#
configure
terminal
|
Enters global
configuration mode.
|
Step 2 |
switch(config)#
class-map type qos
class-name
|
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 |
switch(config-cmap-qos)#
match cos
cos-value
|
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 |
switch(config-cmap-qos)#
exit
|
Exits class-map
mode and enters global configuration mode.
|
Step 5 |
switch(config)#
policy-map type qos
policy-name
|
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 |
switch(config-pmap-qos)#
class type qos
class-name
|
Associates a
class map with the policy map, and enters configuration mode for the specified
system class.
Note
|
The
associated class map must be the same type as the policy map type.
|
|
Step 7 |
switch(config-pmap-c-qos)#
set qos-group
qos-group-value
|
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 |
switch(config-pmap-c-qos)#
exit
|
Exits
policy-map mode and enters global configuration mode.
|
Step 9 |
switch(config)#
interface
type
slot/port
|
Enters the
configuration mode for the specified interface.
|
Step 10 |
switch(config-if)#
service-policy type qos
input
policy-name
|
Applies the
policy map of type qos to the specific interface.
|
Step 11 |
switch(config-if)#
exit
|
Exits interface
configuration mode and enters global configuration mode.
|
Step 12 |
switch(config)#
class-map type
network-qos
class-name
|
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 13 |
switch(config-cmap-nq)#
match qos-group
qos-group-value
|
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 14 |
switch(config-cmap-nq)#
exit
|
Exits class-map
mode and enters global configuration mode.
|
Step 15 |
switch(config)#
policy-map type
network-qos
policy-name
|
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 16 |
switch(config-pmap-nqos)#
class type network-qos
class-name
|
Associates a
class map with the policy map, and enters configuration mode for the specified
system class.
Note
|
The
associated class map must be the same type as the policy map type.
|
|
Step 17 |
switch(config-pmap-c-nq)#
pause
no-drop
|
Configures a
no-drop class.
|
Step 18 |
switch(config-pmap-c-nq)#
exit
|
Exits
policy-map mode and enters global configuration mode.
|
Step 19 |
switch(config)#
system qos
|
Enters system
class configuration mode.
|
Step 20 |
switch(config-sys-qos)#
service-policy type
network-qos
policy-name
|
Applies the
policy map of type network-qos at the system level or to the specific
interface.
|