Cisco Catalyst 3750 Software Configuration Manual page 562

Metro switch
Hide thumbs Also See for Catalyst 3750:
Table of Contents

Advertisement

Configuring Hierarchical QoS
Command
Step 6
exit
Step 7
interface interface-id
Step 8
service-policy output policy-map-name
Step 9
end
Step 10
show policy-map policy-map-name
or
show policy-map interface interface-id
Step 11
copy running-config startup-config
To delete an existing policy map, use the no policy-map policy-map-name global configuration
command. To delete an existing class, use the no class class-name policy-map configuration command.
To remove the two-rate policer, use the no police cir cir [bc conform-burst] pir pir [be peak-burst]
[conform-action action [exceed-action action [violate-action action]]] policy-map class configuration
command. To remove the policy map and interface association, use the no service-policy output
policy-map-name interface configuration command.
This example shows how to configure a class-level, two-rate traffic policer to limit outbound traffic to
an average committed rate of 500 kbps and a peak rate of 1 Mbps. Traffic marked as conforming to the
average committed rate (500 kbps) is sent as is. Traffic marked as exceeding 500 kbps, but not exceeding
1 Mbps, is marked with IP precedence 2 and then sent. All traffic marked as exceeding 1 Mbps is
dropped. The burst parameters are set to 10000 bytes.
Switch(config)# class-map c1
Switch(config-cmap)# match ip precedence 4
Switch(config-cmap)# exit
Switch(config)# policy-map policy1
Switch(config-pmap)# class c1
Switch(config-pmap-c)# police cir 500000 bc 10000 pir 1000000 be 10000 conform-action
transmit exceed-action set-prec-transmit 2 violate-action drop
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface gigabitethernet1/1/1
Switch(config-if)# service-policy output policy1
This example shows how to configure a class-level, two-rate traffic policer that uses a CIR and a PIR
based on a percentage of bandwidth. A CIR of 20 percent and a PIR of 40 percent are specified. The
optional bc and be values (300 ms and 400 ms, respectively) are specified.
Switch(config)# class-map c1
Switch(config-cmap)# match ip precedence 4
Switch(config-cmap)# exit
Switch(config)# policy-map policy1
Switch(config-pmap)# class class1
Switch(config-pmap-c)# police cir percent 20 bc 300 ms pir percent 40 be 400 ms
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface gigabitethernet1/1/1
Switch(config-if)# service-policy output policy1
Catalyst 3750 Metro Switch Software Configuration Guide
26-82
Purpose
Return to global configuration mode.
Specify an ES port to attach to the policy map, and enter interface
configuration mode.
Specify the egress policy-map name, and apply it to the ES port.
Only one policy map per port is supported.
Return to privileged EXEC mode.
Verify your entries.
(Optional) Save your entries in the configuration file.
Chapter 26
Configuring QoS
78-15870-01

Advertisement

Table of Contents
loading

Table of Contents