347
deletes the specified match.
Parameter: access-group <acl-index-or-name> specifies the ACL. The attribute is the
ACL number or name.
Default: By default, there is no match.
Command mode: Class-map Mode
Usage Guide: Only one match can be set in one class-map. When the ACL applies to the
PBR, the actions of permit and deny are to specify the next hop or not to specify the next
hop when IP messages meet the match. The ACLs which apply to the PBR are indifferent
to the order because the deny action is superior to the permit action.
Example: Create a class-map called c1. Set the match policy of this class-map to the ACL
called c1
Switch(config)#class-map c1
Switch(config-ClassMap)#match access-group acl1
Switch(config-ClassMap)#exit
13.2.2.2.4 policy-map
Command: policy-map <policy-map-name>
no policy-map <policy-map-name>
Function: Create a policy-map and enter policy-map mode; The command “no
policy-map <policy-map-name>” deletes the specified policy-map.
Parameter: <policy-map-name> sets the policy-map name.
Default: By default, there is no policy-map.
Command mode: Global Mode
Usage Guide: After entering the policy-map mode, users can set actions for the PBR.
Example: Create and delete a policy-map called p1.
Switch(config)#policy-map p1
Switch(config-PolicyMap)#exit
Switch(config)#no policy-map p1
13.2.2.2.5 class
Command: class <class-map-name>
no class <class-map-name>
Function: Enter a policy-map class and enter policy-map mode; The command “no class
<class-map-name>” deletes the specified policy-map.
Parameter: < class-map-name > sets the policy-map name.