271
“
no class <class-map-name>
“ command deletes the specified class.
Parameters: < 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 class map mode,classification and policy
configuration can be performed on packet traffic classified by class map.
Example:
Entering a policy class mode.
Switch(Config)#policy-map p1
Switch(Config-PolicyMap)#class c1
Switch(Config-Policy-Class)#exit
9.1.3.2 match
Command:match {access-group <acl-index-or-name> | ip dscp <dscp-list>| ip
precedence <ip-precedence-list>|
ipv6 access-group
<acl-index-or-name>
| ipv6 dscp <dscp-list>| ipv6 flowlabel
<flowlabel-list>| vlan <vlan-list>|cos<cost-list>}
no match {access-group | ip dscp | ip precedence | ipv6 access-group |
ipv6 dscp | ipv6 flowlabel | vlan|cos }
Function:
Configure the match standard of the class map; the “no” form of this command
deletes the specified match standard..
Parameter: access-group <acl-index-or-name>
match specified ACL,the parameters
are the number or name of the ACL;
ip dscp <dscp-list>
and
ipv6 dscp <dscp-list>
match specified DSCP value, the parameter is a list of DSCP consisting of maximum 8
DSCP values;
ip precedence <ip-precedence-list>
match specified IP Precedence,
the parameter is a IP Precedence list consisting of maximum 8 IP Precedence values
with a valid range of 0
~
7;
ipv6
access-group <acl-index-or-name>
match specified
IPv6 ACL,the parameter is the number or name of the IPv6 ACL;
ipv6 flowlabel
<flowlabel-list>
match specified IPv6 flow label, the parameter is IPv6 flow label
value;
vlan <vlan-list>
match specified VLAN ID, the parameter is a VLAN ID list
consisting of maximum 8 VLAN IDs.
<cost-list>
match specified cos value, the patameter
is a COS list consisting of maximum 8 Cos.
Default:
No match standard by default
Command Mode:
Class-map Mode
Usage Guide:
Only one match standard can be configured in a class map. When
configuring match the ACL, only the permit rule is available in the ACL except for PBR.
Example:
Create a class-map named c1, and configure the class rule of this class-map
to match packets with IP Precedence of 0.1.