service-policy (interface)
To attach a policy map to an input interface or output interface to be used as the service policy for that interface,
use the service-policy command in the appropriate configuration mode. To remove a service policy from
an input or output interface, use the no form of the command.
service-policy {input| output} policy-map
no service-policy {input| output} policy-map
Syntax Description
Attaches the specified policy map to the input interface.input
Attaches the specified policy map to the output interface.output
Name of a service policy map (created using the policy-map command) to
be attached.
policy-map
Command Default
No service policy is specified.
Command Modes
Interface configuration
Layer 2 transport configuration
Command History
ModificationRelease
This command was introduced.Release 2.0
The command was supported in Layer 2 transport configuration mode.Release 3.6.0
The command was supported in Layer 2 transport configuration mode.Release 3.6.0
The command was supported in dynamic template configuration mode
in BNG.
Release 4.3.0
Usage Guidelines
To use this command, you must be in a user group associated with a task group that includes appropriate task
IDs. If the user group assignment is preventing you from using a command, contact your AAA administrator
for assistance.
You can attach a single policy map to one or more interfaces to specify the service policy for those interfaces.
The class policies composing the policy map are then applied to packets that satisfy the class map match
criteria for the class. To apply a new policy to an interface, you must remove the previous policy. A new
policy cannot replace an existing policy.
Cisco IOS XR Modular Quality of Service Command Reference for the Cisco CRS Router, Release 4.0
OL-23235-03 93
Quality of Service Commands on the Cisco IOS XR Software
service-policy (interface)