User Manual

Table Of Contents
SWR2310(config)#access-list 1 permit any 10.1.0.0 0.0.255.255 any
SWR2310(config)#class-map class1
SWR2310(config-cmap)#match access-list 1
SWR2310(config-cmap)#exit
[Policy settings]
SWR2310(config)#policy-map policy1
SWR2310(config-pmap)#class class1
SWR2310(config-pmap-c)#police 48 12 12 yellow-action remark red-action drop
SWR2310(config-pmap-c)#remark-map yellow ip-dscp 10
SWR2310(config-pmap-c)#exit
SWR2310(config-pmap)#exit
SWR2310(config)#interface port1.1
SWR2310(config-if)#service-policy input policy1
9.2.22 Apply policy map for received frames
[Syntax]
service-policy input name
no service-policy name
[Parameter]
name : Name of policy map to apply
[Input mode]
interface mode
[Description]
Applies the policy map to the corresponding LAN/SFP port and logical interface.
If this is executed with the "no" syntax, the policy map is deleted from the LAN/SFP port and logical interface.
[Note]
In order to execute this command, QoS must be enabled.
If a policy map has already been applied to the LAN/SFP port and logical interface, an error occurs.
For a class map that is associated with a policy map, an error occurs if there is not even one setting that corresponds to the trust
mode of the LAN/SFP port and logical interface. Of the class map settings, the following commands are limited in their
applicability by the trust mode.
Trust mode Command Restrictions
CoS set ip-dscp-queue Cannot be used
DSCP set cos-queue Cannot be used
Port Priority set cos Cannot be used
set ip-precedence
set ip-dscp
set cos-queue
set ip-dscp-queue
police, remark-map Cannot use a combination for which
remarking is enabled (*1)
*1) A combination for which remarking is enabled refers to when the yellow-action or red-action of the police command is set
to "remark" and the remark-map of the corresponding color is specified.
An LAN/SFP port to which a policy map is applied cannot be associated with an logical interface.
A policy map cannot be applied to an LAN/SFP port that is associated with an logical interface. However, in the case of settings
for an LAN/SFP port that is associated with an logical interface in the startup config, the setting for the lowest-numbered port is
applied to the logical interface.
Metering cannot be performed on the following logical interfaces. A policy map that includes metering (policer) settings
(police-type commands) must not be applied.
Logical interfaces that are grouped across member switches constituting a stack
Command Reference | Traffic control | 291