mac
Commands for Flexible QinQ
264
Apply policy-map p1 (p1 corresponds with the action that modify c-vid) to Ethernet port
1/1 for flexible QinQ.
Switch(Config-If-Ethernet1/1)#service-policy p1 in
20.5 set
Command: set {s-vid <new-vid> | c-vid <new-vid>}
no set {s-vid | c-vid}
Function: Assign the new cos and vid value to the packets which match the class map,
no command cancels the operation.
Parameters: s-vid <new-vid> specifies VID of an external VLAN Tag
c-vid <new-vid> specifies VID of a inner VLAN Tag
Default: Do not assign the value.
Command Mode: Policy class-map configuration mode
Usage Guide: Only assign the new value again for the classified flow that correspond
the match standard. When using flexible QinQ, the sent packets only with the inner
VLAN Tag or without Tag, it needs to use add s-vid command to add the specified
external VLAN Tag, otherwise the packets without the external VLAN Tag within the
switch.
Example: Set an external VLAN Tag' VID as 3 for the packet which satisfy c2 class rule.
Switch(config)#policy-map p1
Switch(Config-PolicyMap-p1)#class c2
Switch(Config-PolicyMap-p1-Class-c2)#set s-vid 3
Switch(Config-PolicyMap-p1-Class-c2)#exit










