hit counter script

Service-Policy - Cisco Catalyst 2960 Command Reference Manual

Hide thumbs Also See for Catalyst 2960:
Table of Contents

Advertisement

service-policy

service-policy
To use this command, the switch must be running the LAN Base image.
Note
Use the service-policy interface configuration command on the switch to apply a policy map defined by
the policy-map command to the input of a physical port. Use the no form of this command to remove
the policy map and port association.
Syntax Description
input policy-map-name
Though visible in the command-line help strings, the history keyword is not supported, and you should
Note
ignore the statistics that it gathers. The output keyword is also not supported.
Defaults
No policy maps are attached to the port.
Command Modes
Interface configuration
Command History
Release
12.2(25)FX
Usage Guidelines
Policy maps can be configured on physical ports.
You can apply a policy map to incoming traffic on a physical port.
Classification using a port trust state (for example, mls qos trust [cos | dscp | ip-precedence] and a
policy map (for example, service-policy input policy-map-name) are mutually exclusive. The last one
configured overwrites the previous configuration.
Examples
This example shows how to apply plcmap1 to an physical ingress port:
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# service-policy input plcmap1
This example shows how to remove plcmap2 from a physical port:
Switch(config)# interface gigabitethernet0/2
Switch(config-if)# no service-policy input plcmap2
You can verify your settings by entering the show running-config privileged EXEC command.
Catalyst 2960 Switch Command Reference
2-286
service-policy input policy-map-name
no service-policy input policy-map-name
Modification
This command was introduced.
Apply the specified policy map to the input of a physical port.
Chapter 2 Catalyst 2960 Switch Cisco IOS Commands
OL-8604-04

Advertisement

Table of Contents
loading

Table of Contents