QoS Commands 479
service-policy
Use the service-policy command in either Global Configuration mode (for all 
system interfaces) or Interface Configuration mode (for a specific interface) 
to attach a policy to an interface. To return to the system default, use the no 
form of this command.
Syntax
service-policy in 
policymapname
no service-policy in 
policymapname
•
policymapname
 — Specifies the DiffServ policy name as a unique case-
sensitive alphanumeric string. (Range: 1–31 alphanumeric characters)
Default Configuration
This command has no default configuration.
Command Mode
Global Configuration mode (for all system interfaces)
Interface Configuration  (Ethernet, Port-channel) mode (for a specific 
interface)
User Guidelines
This command effectively enables DiffServ on an interface. No separate 
interface administrative mode command for DiffServ is available.
Ensure that no attributes within the policy definition exceed the capabilities 
of the interface. When a policy is attached to an interface successfully, any 
attempt to change the policy definition, such that it would result in a 
violation of the interface capabilities, causes the policy change attempt to 
fail.
Example
The following example shows how to attach a service policy named "DELL" to 
all interfaces.
console(config)#service-policy DELL