617
Configuring QoS
Configuring QoS
Switch(config-pmap-c)#
police 230000 8000 conform-action set-dscp-transmit 33 exceed-action drop
Switch(config-pmap-c)# exit
Switch(config-pmap)#
exit
Switch(config)#
interface fastethernet0/1
Switch(config-if)#
service-policy input in-policy
Switch(config-if)#
exit
This example shows how to use policy-map class police configuration mode to set multiple conform actions and an
exceed action. The policy map sets a committed information rate of 23000 bits per second (bps) and a conform burst
size of 10000 bytes. The policy map includes multiple conform actions (for DSCP and for Layer 2 CoS) and an exceed
action.
Switch(config)#
class-map cos-set-1
Switch(config-cmap)#
match cos 3
Switch(config-cmap)#
exit
Switch(config)#
policy-map map1
Switch(config-pmap)#
class cos-set-1
Switch(config-pmap-c)#
police cir 23000 bc 10000
Switch(config-pmap-c-police)#
conform-action set-dscp-transmit 48
Switch(config-pmap-c-police)#
conform-action set-cos-transmit 5
Switch(config-pmap-c-police)#
exceed-action drop
Switch(config-pmap-c-police)#
exit
Switch(config-pmap)#
exit
Switch(config)#
interface fastethernet0/1
Switch(config-if)#
service-policy input map1
Switch(config-if)#
exit
This example shows how to use policy-map class police configuration mode to set exceed action mark-down using
table-maps. The policy map sets a committed information rate of 23000 bps and a conform burst-size of 10000 bytes.
The policy map includes the default conform action (
transmit
) and the exceed action to mark the Layer 2 CoS value
based on the table map and to mark IP DSCP to af41.
Switch(config)#
policy-map in-policy
Switch(config-pmap)#
class in-class-1
Switch(config-pmap-c)#
police cir 23000 bc 10000
Switch(config-pmap-c-police)#
exceed-action set-cos-transmit cos table police-cos-markdn-tablemap
Switch(config-pmap-c-police)#
exceed-action set-dscp-transmit af41
Switch(config-pmap-c-police)#
exit
Switch(config-pmap-c)#
exit
Switch(config-pmap)#
exit
Switch(config)#
interface fastethernet0/1
Switch(config-if)#
service-policy input in-policy
Switch(config-if)#
exit
Configuring Input Policy Maps with Aggregate Policing
You use the
policer aggregate
global configuration command to configure an aggregate policer. An aggregate policer
is shared by multiple traffic classes within the same policy map. You define the aggregate policer, create a policy map,
associate a class map with the policy map, associate the policy map with the aggregate policer, and apply the service
policy to a port.
Follow these guidelines when configuring aggregate policers:
Aggregate policing is supported only on input policy maps.
The switch supports a maximum of 229 policers associated with ports (228 user-configurable policers and 1 policer
reserved for internal use). You can configure up to 45 policers on a port.
Summary of Contents for IE 4000
Page 12: ...8 Configuration Overview Default Settings After Initial Switch Configuration ...
Page 52: ...48 Configuring Interfaces Monitoring and Maintaining the Interfaces ...
Page 108: ...104 Configuring Switch Clusters Additional References ...
Page 128: ...124 Performing Switch Administration Additional References ...
Page 130: ...126 Configuring PTP ...
Page 140: ...136 Configuring CIP Additional References ...
Page 146: ...142 Configuring SDM Templates Configuration Examples for Configuring SDM Templates ...
Page 192: ...188 Configuring Switch Based Authentication Additional References ...
Page 244: ...240 Configuring IEEE 802 1x Port Based Authentication Additional References ...
Page 298: ...294 Configuring VLANs Additional References ...
Page 336: ...332 Configuring STP Additional References ...
Page 408: ...404 Configuring DHCP Additional References ...
Page 450: ...446 Configuring IGMP Snooping and MVR Additional References ...
Page 490: ...486 Configuring SPAN and RSPAN Additional References ...
Page 502: ...498 Configuring Layer 2 NAT ...
Page 770: ...766 Configuring IPv6 MLD Snooping Related Documents ...
Page 930: ...926 Configuring IP Unicast Routing Related Documents ...
Page 976: ...972 Configuring Cisco IOS IP SLAs Operations Additional References ...
Page 978: ...974 Dying Gasp ...
Page 990: ...986 Configuring Enhanced Object Tracking Monitoring Enhanced Object Tracking ...
Page 994: ...990 Configuring MODBUS TCP Displaying MODBUS TCP Information ...
Page 996: ...992 Ethernet CFM ...
Page 1066: ...1062 Using an SD Card SD Card Alarms ...