EasyManua.ls Logo

Cisco Catalyst 3750 Metro - Service-Policy (Policy-Map Class)

Cisco Catalyst 3750 Metro
985 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2-418
Catalyst 3750 Metro Switch Command Reference
OL-9645-10
Chapter 2 Catalyst 3750 Metro Switch Cisco IOS Commands
service-policy (policy-map class)
This example shows how to create a hierarchical service policy in which all levels are present. This
configuration associates a class-level policy map with a VLAN-level policy map, associates the
VLAN-level policy map with a physical-level policy map, and attaches the physical-level policy map to
a port.
Switch(config)# class-map my-class
Switch(config-cmap)# match ip precedence 1
Switch(config-cmap)# exit
Switch(config)# class-map my-logical-class
Switch(config-cmap)# match vlan 5
Switch(config-cmap)# exit
Switch(config)# policy-map my-class-policy
Switch(config-pmap)# class my-class
Switch(config-pmap-c)# set precedence 2
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# policy-map my-logical-policy
Switch(config-pmap)# class my-logical-class
Switch(config-pmap-c)# shape average 400000000
Switch(config-pmap-c)# service-policy my-class-policy
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# policy-map my-physical-policy
Switch(config-pmap)# class class-default
Switch(config-pmap-c)# shape average 500000000
Switch(config-pmap-c)# service-policy my-logical-policy
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface gigabitethernet1/1/1
Switch(config)# service-policy input my-physical-policy
You can verify your settings by entering the show policy-map privileged EXEC command.
Related Commands Command Description
bandwidth Specifies or modifies the minimum bandwidth provided to a class
belonging to a policy map attached to an ES port.
class Specifies the name of the class whose traffic policy you want to create or
change.
policy-map Creates or modifies a policy map that can be attached to multiple ports to
specify a service policy.
priority Enables the strict-priority queue and gives priority to a class of traffic
belonging to a policy map attached to an ES port.
queue-limit Configures the maximum threshold for tail drop in a policy map attached
to an ES port.
random-detect Configures Weighted Random Early Detection (WRED) in a policy map
attached to an ES port.
shape Enables traffic shaping in a policy map attached to an ES port.
show policy-map Displays QoS policy maps.

Table of Contents

Related product manuals