DGS-6604
m
service-policy
CLI Reference Guide
544
service-policy
To attach a policy map to an input interface use the service-policy command in
the interface configuration mode. To remove a service policy from an input
interface, use the no form of this command.
service-policy
NAME
no service-policy
NAME
Default
None
Command Mode
Interface configuration
Usage Guideline
Only physical port interfaces are valid for this command.
Use the
service-policy
command to attach a single policy map to input
interfaces. This policy is attached to the interface for aggregate and controls the
number or rate of packets. The packet arriving at a port will be treated based on
the service policy attached to the interface.
A policy map needs to be created before it is specified in this command.
A policy map without a configured class policy can not be attached.
Examples
In the following example shown on the next page, two policy maps are defined-
cust1-classes, and cust2-classes.
For cust1-classes, gold is configured to use CoS Queue 6 and policed by a
single rate policer with an average rate set to 64 Kbits per second and a normal
burst size set to 128 Kbytes. Silver is configured to use CoS queue 5 and policed
by a single rate policer with an average rate set to 64 Kbits per second and the
normal burst size set to 128 Kbytes. Bronze is configured to use CoS queue 0
and policed by a single rate policer with an average rate set to 64 Kbits per
second and a normal burst size set to 128K bytes.
For cust2-classes, gold is configured to use CoS Queue 6 and policed by a
single rate policer with an average rate set to 128 Kbits per second and the
normal burst size set to 256 Kbytes. Silver is policed by a single rate policer with
an average rate set to 128 Kbits per second and the normal burst size set to 256
Kbytes. Bronze is policed by a single rate policer with an average rate set to128
Kbits per second and the normal burst size set to 256 Kbytes.
Syntax Description
NAME
The name of a service policy map (created using the policy-map command) to
be attached. The name can be a maximum of 32 alphanumeric characters.