Configuring Class-Based Shaping - Cisco 3845 - Security Bundle Router Software Manual

Software configuration guide
Hide thumbs Also See for 3845 - Security Bundle Router:
Table of Contents

Advertisement

Chapter 27
Configuring QoS
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface gigabitethernet 0/1
Switch(config-if)# service-policy vlan
Switch(config-if)# exit

Configuring Class-Based Shaping

You use the shape average policy-map class configuration command to configure traffic shaping.
Class-based shaping sets the explicit maximum peak information rate (PIR) for the class by limiting it
to the configured bandwidth. You can configure class-based shaping at the class level and at the VLAN
level.
Beginning in privileged EXEC mode, follow these steps to use class-based shaping to configure the
maximum permitted average rate for a class of traffic:
Command
Step 1
configure terminal
Step 2
policy-map policy-map-name
Step 3
class {class-map-name | class-default}
Step 4
shape average {target bps | percent value}
Step 5
end
Step 6
show policy-map [policy-map-name [class
class-map-name]]
Step 7
copy running-config startup-config
After you create the policy map, attach it to an interface or an EFP. See the
to an Interface or EFP" section on page
existing policy map or class map or to delete a class-based shaping configuration.
This example shows how to configure traffic shaping for outgoing traffic on a Gigabit Ethernet port so
that outclass1, outclass2, and outclass3 get a maximum of 50, 20, and 10 Mb/s of the available port
bandwidth.
Switch(config)# policy-map out-policy
Switch(config-pmap)# class classout1
Switch(config-pmap-c)# shape average 50000000
Switch(config-pmap-c)# exit
Switch(config-pmap)# class classout2
Switch(config-pmap-c)# shape average 20000000
Switch(config-pmap-c)# exit
OL-23400-01
Purpose
Enter global configuration mode.
Create a policy map by entering the policy map name, and enter
policy-map configuration mode.
Enter a child class-map name or class-default to match all
unclassified packets, and enter policy-map class configuration
mode.
Specify the average class-based shaping rate.
For target bps, specify the average bit rate in bits per second.
The range is from 1000 to 10000000000 (10 Gigabits).
Enter percent value to set the percentage of interface
bandwidth for peak information rate. The range is 0 to 100
percent. The percentage is calculated based on the peak
information rate (PIR) of the parent class. If there is no
configured PIR at any level, this is the percentage of the
interface speed. Setting the percent to 0 disables shaping.
Return to privileged EXEC mode.
Verify your entries.
(Optional) Save your entries in the configuration file.
27-56. Use the no form of the appropriate command to delete an
Cisco ME 3800X and 3600X Switch Software Configuration Guide
Configuring QoS
"Attaching a Service Policy
27-47

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Me 3800xMe 3600x

Table of Contents