610
Configuring QoS
Configuring QoS
Beginning in privileged EXEC mode, follow these steps to attach a policy map to a port:
To remove the policy map and port association, use the
no service-policy
{
input
|
output
}
policy-map-name
interface
configuration command.
Configuring Input Policy Maps
Policy maps specify which traffic class to act on and what actions to take. All traffic that fails to meet matching criteria
of a traffic class belongs to the default class. Input policy maps regulate traffic entering the switch. In an input policy, you
can match CoS, DSCP, IP precedence, ACLs, or VLAN IDs and configure individual policing, aggregate policing, or
marking to a CoS, DSCP, IP precedence, or QoS group value.
Follow these guidelines when configuring input policy maps:
You can attach only one input policy map per port.
The maximum number of policy maps configured on the switch is 256.
The total number of configurable policer profiles on the switch is 256; the total number of supported policer
instances on the switch is 1024 minus one more than the total number of interfaces on the switch. On a 24-port
switch, the number of available policer instances is 999. You can use a policer profile in multiple instances.
The maximum number of classes in each input policy map is 64 plus
class-default
.
The number of input policy maps that can be attached in a switch is limited by the availability of hardware resources.
If you attempt to attach an input policy map that causes any hardware resource limitation to be exceeded, the
configuration fails.
After you have attached a single-level policy map to an interface by using the
service-policy input
interface
configuration command, you can modify the policy without detaching it from the interface. You can add or delete
classification criteria, add or delete classes, add or delete actions, or change the parameters of the configured
actions (policers, rates, mapping, marking, and so on). This also applies to changing criteria for the child policy of a
hierarchical policy map, as in a per-port per-VLAN hierarchical policy map.
For the parent policy of a hierarchical policy map, you cannot add or delete a class at the parent level if the policy
map is attached to an interface. You must detach the policy from the interface, modify the policy, and then re-attach
it to the interface.
You can configure a maximum 2-level hierarchical policy map as an input policy map only with VLAN-based
classification at the parent level and no VLAN-based classification at the child level.
When an input policy map with only Layer 2 classification is attached to a routed port or a switch port containing a
routed SVI, the service policy acts only on switching eligible traffic and not on routing eligible traffic.
Command
Purpose
1.
configure terminal
Enter global configuration mode.
2.
interface
interface-id
Specify the port to attach to the policy map, and enter interface
configuration mode. Valid interfaces are physical ports.
3.
service-policy
{
input
|
output
}
policy-map-name
Specify the policy-map name and whether it is an input policy
map or an output policy map.
4.
end
Return to privileged EXEC mode.
5.
show policy-map interface
[
interface-id
]
Verify your entries.
6.
copy running-config startup-config
(Optional) Save your entries in the configuration file.
Содержание 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 ...