Generate Policy Map For Received Frames; Apply Policy Map For Received Frames - Yamaha L2 Command Reference Manual

Intelligent l2 poe swr2311p-10g
Table of Contents

Advertisement

Class-Map Name: class1
Match vlan 10

9.2.21 Generate policy map for received frames

[Syntax]
policy-map name
no policy-map name
[Parameter]
name
[Input mode]
global configuration mode
[Description]
Generates a policy map. The policy map combines the following processing for received frames, for each traffic class.
Traffic classification
Pre-marking
Metering
Policing
Remarking
The policy map generated by this command can be applied to the LAN/SFP port by the service-policy input command. This
classifies received frames into traffic classes according to each class map in the policy map, and applies the QoS process
specified by the user to each class of traffic.
After generating the policy map, move to policy map mode to specify its content.
If this is executed with the "no" syntax, the specified policy map is deleted.
[Note]
In order to execute this command, QoS must be enabled.
If the specified policy map has already been generated, the change is applied to the previous settings. However, if the policy
map is already applied to a LAN/SFP port, it cannot be edited or deleted.
[Example]
Make the following settings for received frames to LAN port #1.
Permit traffic from the 10.1.0.0 network
Categorize bandwidth classes as CIR:48kbps, CBS:12kbyte, and EBS:12kbyte
Green: forward, Yellow: rewrite DSCP value to 10, Red: discard
[Traffic class definition]
SWR2311P(config)#access-list 1 permit any 10.1.0.0 0.0.255.255 any
SWR2311P(config)#class-map class1
SWR2311P(config-cmap)#match access-list 1
SWR2311P(config-cmap)#exit
[Policy settings]
SWR2311P(config)#policy-map policy1
SWR2311P(config-pmap)#class class1
SWR2311P(config-pmap-c)#police 48 12 12 yellow-action remark red-action drop
SWR2311P(config-pmap-c)#remark-map yellow ip-dscp 10
SWR2311P(config-pmap-c)#exit
SWR2311P(config-pmap)#exit
SWR2311P(config)#interface port1.1
SWR2311P(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 (maximum 32 characters; uppercase and lowercase are distinguished)
:
Name of policy map to apply
Command Reference | Traffic control | 239

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents