![Cisco 10000 Series Configuration Manual Download Page 399](http://html.mh-extra.com/html/cisco/10000-series/10000-series_configuration-manual_66373399.webp)
12-15
Cisco 10000 Series Router Quality of Service Configuration Guide
OL-7433-09
Chapter 12 Sharing Bandwidth Fairly During Congestion
Configuring Fair Bandwidth Sharing During Congestion
Attaching Service Policies
To attach a service policy, perform any of the following configuration tasks:
•
Attaching a Service Policy to an Interface, Subinterface, or PVC, page 12-15
•
Attaching a Service Policy to a Virtual Access Interface, page 12-16
For more information, see
Chapter 4, “Attaching Service Policies.”
Attaching a Service Policy to an Interface, Subinterface, or PVC
To attach a service policy to an interface, subinterface, or PVC, enter the following command in the
appropriate configuration mode:
Configuration Example for Attaching a Service Policy to an Interface
As shown in
Example 12-4
, you can attach the same policy map to multiple interfaces.
Example 12-4
attaches the policy map named
policy1
to the Ethernet 1/0/0 and serial 1/0/1 interfaces for outbound
packets. Each interface can have only one policy attached for inbound packets and one policy attached
for outbound packets.
Example 12-4 Attaching a Service Policy to an Interface
Router(config)#
interface ethernet1/0/0
Router(config-if)#
service-policy output policy1
Router(config-if)#
interface serial1/0/1
Router(config-if)#
service-policy output policy1
Router(config-if)#
exit
Command
Purpose
Router(config-if)#
service-policy
[
input
|
output
]
policy-map-name
Attaches the policy map you specify to an interface.
input
indicates to apply the service policy to inbound
packets.
output
indicates to apply the service policy to outbound
packets.
policy-map-name
is the name of the policy map whose QoS
policies you want to apply to the interface, subinterface, or
PVC.
Note
When you attach a service policy to an interface and
the policy map configuration enables CBWFQ, all
classes configured as part of the policy map are
installed in the fair queuing system.