mac

221
cos <cost-list> match the specified CoS value, the parameter is a CoS list
consisting of maximum 8 CoS values, the ranging is 0 to 7
c-vlan <vlan-list> match the specified customer VLAN ID, the parameter is a
VLAN ID list consisting of maximum 8 VLAN IDs, the ranging is 1 to 4094
c-cos <cost-list> match the specified customer CoS value, the parameter is a
CoS list consisting of maximum 8 CoS values, the ranging is 0 to 7
Default: There is no match standard.
Command Mode: Class-map Mode
Usage Guide: Only one match standard can be configured in a class map. When
configuring the ACL match, permit rule is the match option, it will apply Policy Map action.
Deny rule is the excluding option, it does not apply Policy Map action. If it has been
configured other match rule, the operation is failure, but configuring the same match rule
will cover the previous.
Example: Create a class-map named c1, and configure the class rule of the class-map to
match packets with IP Precedence of 0.
Switch(config)#class-map c1
Switch(config-classmap-c1)#match ip precedence 0
Switch(config-classmap-c1)#exit
9.4 service-policy
Command: service-policy <policy-map-name> in
no service-policy <policy-map-name> in
Function: Bind the specified policy of flexible QinQ to the ingress of the port, the no
command cancels the binding.
Parameters: service-policy <policy-map-name>: The specified policy-map name of
flexible QinQ.
Default: No policy map is bound to port.
Command mode: Port Mode.
Usage Guide: Only one policy map can be bound to each port, the function takes effect
after the policy map is bound to a port. If s-vid needs to be modified, enable QinQ function
on the corresponding port at first. At present, do not support the configuration with add
commend and delete command in policy.
Example: Apply policy-map p1 (p1 corresponds with the action that modify s-vid) to
Ethernet port 1/1 for flexible QinQ.
Switch(Config-If-Ethernet1/1)#dot1q-tunnel enable
Switch(Config-If-Ethernet1/1)#service-policy p1 in