[Input mode]
global configuration mode
[Description]
Generates a class map.
A class map defines the conditions used to classify received frames into traffic classes, and consists of conditions defined by the
match
command and the corresponding action (permit/deny).Class map actions are handled as follows. Class map actions are
handled as follows.
• If an access list (ACL) is specified (execute the
match access-group
command)
The class map action will be the action for the ACL.
• If other than an access list (ACL) is specified
Permit.
After generating the class map, move to class map mode to specify its content.
If this command is executed with the "no" syntax, the specified class map is deleted.
[Note]
In order to execute this command, QoS must be enabled.
If the specified class map has already been generated, the change is applied to the previous settings. However, if a policy map
has been applied to the LAN/SFP port, then the class map that is associated with the policy map cannot be edited or deleted.
[Example]
Create class map "class1."
SWR2311P(config)#class-map class1
SWR2311P(config-cmap)#
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 a LAN/SFP port 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
234
| Command Reference | Traffic control