Accton Technology ES4626 Switch User Manual


 
317
policy map configuration mode.
Example: Create and delete a policy map named “p1”.
Switch(Config)#policy-map p1
Switch(Config-PolicyMap)#exit
Switch(Config)#no policy-map p1
13.1.2.2.5 class
Command: class <class-map-name>
no class <class-map-name>
Function: Associate a class to a policy map and enter the policy class map mode; the “no
class <class-map-name>” command deletes the specified class.
Parameter: < class-map-name> is the class map name used by the class.
Default: No policy class is configured by default.
Command mode: Policy map configuration Mode
Usage Guide: Before setting up a policy class, a policy map should be created and the
policy map mode entered; in the policy map mode, classification and policy
configuration can be performed on packet traffic classified by class map.
Example: Enter a policy class mode.
Switch(Config)#policy-map p1
Switch(Config-PolicyMap)#class c1
Switch(Config--Policy-Class)#exit
13.1.2.2.6 set
Command: set {ip dscp <new-dscp> | ip precedence <new-precedence>}
no set {ip dscp | ip precedence}
Function: Assign a new DSCP and IP precedence value for the classified traffic; the “no
set {ip dscp <new-dscp> | ip precedence <new-precedence>}” command
cancels the newly assigned value.
Parameter: <new-dscp> is the new DSCP value; <new-precedence> is the new IP
precedence value.
Default: No value is assigned by default.
Command mode: Policy class map configuration Mode
Usage Guide: Only traffic satisfies the matching criterion and those classified will be
assigned new values.
Example: Set the IP Precedence value of packets satisfying c1 class rule to 3.