Configuring Output Policy Maps With Port Shaping - Cisco ME 3400G-2CS - Ethernet Access Switch Software Configuration Manual

Ethernet access switch
Hide thumbs Also See for ME 3400G-2CS - Ethernet Access Switch:
Table of Contents

Advertisement

Chapter 30
Configuring QoS
This example shows how to configure traffic shaping for outgoing traffic on a Fast Ethernet port so that
outclass1, outclass2, and outclass3 get a maximum of 50, 20, and 10 Mbps of the available port
bandwidth. The class class-default gets the remaining 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
Switch(config-pmap)# class classout3
Switch(config-pmap-c)# shape average 10000000
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface fastethernet0/1
Switch(config-if)# service-policy output out-policy
Switch(config-if)# exit

Configuring Output Policy Maps with 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
actions for the queues on the shaped port.
The total of the minimum bandwidth guarantees (CIR) for each queue of the child policy cannot exceed
the total port shape rate.
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
Step 5
service-policy policy-map-name
Step 6
exit
Step 7
exit
Step 8
interface interface-id
Step 9
service-policy output policy-map-name
Step 10
end
78-17058-01
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 64000 to 1000000000.
Specify the child policy-map to be used in the hierarchical policy
map if required.
Return to policy-map configuration mode.
Return to global configuration mode.
Enter interface configuration mode for the interface to which you
want to attach the policy.
Attach the parent policy map (created in Step 2) to the egress
interface.
Return to privileged EXEC mode.
Cisco ME 3400 Ethernet Access Switch Software Configuration Guide
Configuring QoS
30-47

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents