Yamaha 10G SWR2310-28GT/18GT/10G Command Reference - Page 247
Associate class map, 2.13 Set traffic classification conditions access-list
View all Yamaha 10G manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 247 highlights
Command Reference | Traffic control | 247 9.2.12 Associate class map [Syntax] class name no class name [Parameter] name : Class map name [Input mode] policy map mode [Description] Associates a class map to a policy map. When the class map association succeeds, move to policy map class mode. In policy map class mode, you can make the following settings for each traffic class. • Pre-marking or specifying the egress queue • Metering • Policing • Remarking If this command is executed with the "no" syntax, the association of the class map to the policy map is canceled. For LAN/SFP port and logical interface to which a policy map is applied, received frames are classified into traffic classes according to the conditions of the associated class map. If the action in the class map is "permit," the QoS processing specified by the user for that traffic class is performed. Up to eight class maps can be associated to one policy map. [Note] In order to execute this command, QoS must be enabled. It is meaningless to specify QoS processing settings for a traffic class for which the action is "deny." [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] 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.13 Set traffic classification conditions (access-list) [Syntax] match access-list acl-id no match access-list acl-id [Parameter] acl-id : IPv4 access list ID