622
Configuring QoS
Configuring QoS
Switch(config-cmap)#
exit
Switch(config)#
class-map testclass2
Switch(config-cmap)#
match access-group 2
Switch(config-cmap)#
exit
Switch(config)#
policy-map testexample
Switch(config-pmap)#
class testclass
Switch(config-pmap-c)#
police aggregate example
Switch(config-pmap-c)#
exit
Switch(config-pmap)#
class testclass2
Switch(config-pmap-c)#
police aggregate example
Switch(config-pmap-c)#
exit
Switch(config-pmap)#
exit
Switch(config)#
interface fastethernet0/1
Switch(config-if)#
service-policy input testexample
Switch(config-if)#
exit
Configuring Input Policy Maps with Marking
You use the
set
policy-map class configuration command to set or modify the attributes for traffic belonging to a specific
class. Follow these guidelines when configuring marking in policy maps:
You can configure a maximum of 100 QoS groups on the switch.
When you use a table map for marking in an input policy map, the protocol type of the map from type of action must
be the same as the protocol type of the associated classification. For example, if the associated class map
represents an IP classification, the
map from
type of action that references the table map must be either
dscp
or
precedence
. If the associated class map represents a non-IP classification, the
map from
type of action that
references the table map must be
cos
.
Beginning in privileged EXEC mode, follow these steps to create an input policy map that marks traffic:
Command
Purpose
1.
configure terminal
Enter global configuration mode.
2.
policy-map
policy-map-name
Create a policy map by entering the policy map name, and enter
policy-map configuration mode.
3.
class
{
class-map-name
|
class-default
}
Enter a class-map name, or
class-default
to match all unclassified
packets, and enter policy-map class configuration mode.
If you enter a class-map name, you must have already created the class
map by using the
class-map
global configuration command.
4.
set
qos-group
value
and/or
set
cos
{
cos_value |
cos
[
table
table-map-name
]
|
dscp
[
table
table-map-name
]
|
precedence
[
table
table-map-name
]}
and/or
set
[
ip
]
dscp
{
dscp_value
|
cos
[
table
table-map-name
]
|
dscp
[
table
table-map-name
]
|
precedence
[
table
table-map-name
]}
and/or
set
[
ip
]
precedence
{
precedence_value
|
cos
[
table
table-map-name
]
|
dscp
[
table
table-map-name
]
|
precedence
[
table
table-map-name
]}
Mark traffic by setting a new value in the packet, specifying a table map,
or specifying a QoS group.
For
qos-group
value,
identify a QoS group to be used at egress to
identify specific packets. The range is from 0 to 99.
For
cos
cos_value,
enter a new CoS value to be assigned to the
classified traffic. The range is 0 to 7.
For [
ip
]
dscp
new-dscp
, enter a new DSCP value to be assigned to
the classified traffic. The range is 0 to 63.
For [
ip
]
precedence
new-precedence,
enter a new IP-precedence
value to be assigned to the classified traffic. The range is 0 to 7.
You can also configure a CoS, DSCP, or IP precedence table and
optionally enter the table name. If you do not enter
table
table-map
name
, the table map default behavior is
copy
. See
Содержание IE 4000
Страница 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Страница 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Страница 108: ...104 Configuring Switch Clusters Additional References ...
Страница 128: ...124 Performing Switch Administration Additional References ...
Страница 130: ...126 Configuring PTP ...
Страница 140: ...136 Configuring CIP Additional References ...
Страница 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Страница 192: ...188 Configuring Switch Based Authentication Additional References ...
Страница 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Страница 274: ...270 Configuring SGT Exchange Protocol over TCP SXP and Layer 3 Transport Configuring Cisco TrustSec Caching ...
Страница 298: ...294 Configuring VLANs Additional References ...
Страница 336: ...332 Configuring STP Additional References ...
Страница 408: ...404 Configuring DHCP Additional References ...
Страница 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Страница 490: ...486 Configuring SPAN and RSPAN Additional References ...
Страница 502: ...498 Configuring Layer 2 NAT ...
Страница 559: ...555 Configuring Network Security with ACLs How to Configure Network Security with ACLs Creating a Numbered Extended ACL ...
Страница 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Страница 930: ...926 Configuring IP Unicast Routing Related Documents ...
Страница 956: ...952 Configuring IPv6 Unicast Routing Configuring IPv6 network 2010 AB8 2 48 network 2010 AB8 3 48 exit address family ...
Страница 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Страница 978: ...974 Dying Gasp ...
Страница 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Страница 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Страница 996: ...992 Ethernet CFM ...
Страница 1030: ...1026 Working with the Cisco IOS File System Configuration Files and Software Images Working with Software Images ...
Страница 1066: ...1062 Using an SD Card SD Card Alarms ...