27-56
Cisco ME 3800X and 3600X Switch Software Configuration Guide
OL-23400-01
Chapter 27 Configuring QoS
Configuring QoS
Attaching a Service Policy to an Interface or EFP
You use the service-policy interface configuration command to attach a service policy to an interface or
EFP (service instance) and to specify the direction in which the policy should be applied: either an input
policy map for incoming traffic or an output policy map for outgoing traffic. Input and output policy
maps support different QoS features.
You can attach a service policy to a physical port or to an EFP. However, you cannot attach a service
policy to a physical port that has EFPs configured. If you try to configure an EFP on a switchport that
has a service policy attached, the service policy is detached.
Note
If you enter the no policy-map configuration command or the no policy-map policy-map-name global
configuration command to delete a policy map that is attached to an interface or EFP, a warning message
appears that lists any interfaces from which the policy map is being detached. The policy map is then
detached and deleted. For example:
Warning: Detaching Policy test1 from Interface GigabitEthernet0/1
Beginning in privileged EXEC mode, follow these steps to attach a policy map to a port:
To remove the policy map and port association, use the no service-policy {input | output}
policy-map-name interface configuration command.
Beginning in privileged EXEC mode, follow these steps to attach a policy map to an EFP:
Command
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
interface interface-id
Specify the port to attach to the policy map, and enter interface
configuration mode. Valid interfaces are physical ports.
Step 3
service-policy {input | output}
policy-map-name
Specify the policy-map name and whether it is an input policy
map or an output policy map.
Step 4
end
Return to privileged EXEC mode.
Step 5
show policy-map [policy-map-name] [class
class-map-name]
Verify your entries.
Step 6
copy running-config startup-config
(Optional) Save your entries in the configuration file.
Command
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
interface interface-id
Specify the port to attach to the policy map, and enter interface
configuration mode. Valid interfaces are physical ports.