Cisco ME 3400 Command Reference Manual page 404

Ethernet access switch
Table of Contents

Advertisement

Chapter 2 Cisco ME 3400 Ethernet Access Switch Cisco IOS Commands
service-policy (policy-map class configuration)
For an output policy map, when shape average is also configured on the class class-default, you can
configure hierarchical policy maps by attaching a single service-policy policy-map class command to
the class class-default. This policy map specifies the service policy for the port-shaped traffic on the
port and is the parent policy map. You can configure the child policy with class-based queuing actions
by using the queue-limit policy map class command and with scheduling actions (by using the
bandwidth, shape average, or priority command).
To return to policy-map configuration mode, use the exit command. To return to privileged EXEC mode,
use the end command.
Examples
This example shows how to define the service policy and to attach it to a parent policy map to set the
maximum bandwidth (shape) for an output queue at 90000000 bits per second:
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
Switch(config-pmap)# exit
In this example, the class maps in the child-level policy map specify matching criteria for voice and
video traffic, and the child policy map sets the action for input policing each type of traffic. The
parent-level policy map specifies the VLANs to which the child policy maps are applied on the specified
port.
Switch(config)# class-map match-any dscp-23 video
Switch(config-cmap)# match ip dscp 23
Switch(config-cmap)# exit
Switch(config)# class-map match-any dscp-63 voice
Switch(config-cmap)# match ip dscp-63
Switch(config-cmap)# exit
Switch(config)# class-map match-any customer-1-vlan
Switch(config-cmap)# match vlan 100
Switch(config-cmap)# match vlan 200
Switch(config-cmap)# match vlan 300
Switch(config-cmap)# exit
You can also enter the match criteria as match vlan 100 200 300 with the same result.
Note
Switch(config)# policy-map child policy-1
Switch(config-pmap)# class dscp-63 voice
Switch(config-pmap-c)# police cir 10000000 bc 50000
Switch(config-pmap-c)# conform-action set-cos-transmit 5
Switch(config-pmap-c)# exceed-action drop
Switch(config-pmap-c)# exit
Switch(config-pmap)# class dscp-23 video
Switch(config-pmap-c)# set cos 4
Switch(config-pmap-c)# set ip precedence 4
Switch(config-pmap-c)# exit
Switch(config)# policy-map parent-customer-1
Switch(config-pmap)# class customer-1-vlan
Switch(config-pmap-c)# service-policy ingress-policy-1
Switch(config-pmap-c)# exit
You can verify your settings by entering the show policy-map privileged EXEC command.
Cisco ME 3400 Ethernet Access Switch Command Reference
2-376
OL-9640-10

Advertisement

Table of Contents
loading

Table of Contents