Configuring Port Shaping - Cisco 3845 - Security Bundle Router Software Manual

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

Advertisement

Configuring QoS
Switch(config-pmap)# class classout3
Switch(config-pmap-c)# shape average 10000000
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# service-policy output out-policy
Switch(config-if)# exit

Configuring Port Shaping

Port shaping is applied to all traffic leaving an interface. It uses a policy map with only class default
when the maximum bandwidth for the port is specified by using the shape average command. A child
policy can be attached to the class-default in a hierarchical policy map format to specify class-based and
VLAN-based actions.
Beginning in privileged EXEC mode, follow these steps to use port 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-default
Step 4
shape average {target bps | percent value}
Step 5
service-policy policy-map-name
Step 6
end
Step 7
show policy-map [policy-map-name [class
class-map-name]]
Step 8
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
Use the no form of the appropriate command to delete an existing hierarchical policy map, to delete a
port shaping configuration, or to remove the policy map from the hierarchical policy map.
This example shows how to configure port shaping by configuring a hierarchical policy map that shapes
a port to 90 Mb/s, allocated according to the out-policy policy map configured in the previous example.
Switch(config)# policy-map out-policy-parent
Switch(config-pmap)# class class-default
Switch(config-pmap-c)# shape average 90000000
Switch(config-pmap-c)# service-policy out-policy
Switch(config-pmap-c)# exit
Cisco ME 3800X and 3600X Switch Software Configuration Guide
27-48
Purpose
Enter global configuration mode.
Create a hierarchical policy map by entering the hierarchical
policy map name, and enter policy-map configuration mode for
the parent policy.
Enter a policy-map class configuration mode for the default class.
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 based on the port operational link
speed. Setting the percent to 0 disables shaping.
Specify the child policy-map to be used in the hierarchical policy
map if required.
Return to privileged EXEC mode.
Verify your entries.
(Optional) Save your entries in the configuration file.
27-56.
Chapter 27
Configuring QoS
"Attaching a Service Policy
OL-23400-01

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 3845 - Security Bundle Router and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Me 3800xMe 3600x

Table of Contents