H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – QoS
H3C S7500 Series Ethernet Switches Chapter 1
QoS Commands
1-35
Description
Use the traffic-remark-vlanid command to enable the ACL for traffic identifying and
tag the packet matching the ACL with the outer VLAN tag to implement the traffic-based
selective QinQ feature.
Use the undo traffic-remark-vlanid command to disable the configuration.
This command is applicable to only the permit rules in the ACL.
Refer to the selective QinQ module in this manual for the detailed information about the
selective QinQ feature.
Caution:
z A-type LPUs, LS82GT20, and LS82GP20 do not support traffic-based selective
QinQ.
z Execute the vlan-vpn enable command in the corresponding port view before
executing the traffic-remark-vlanid command.
z The QinQ feature cannot be enabled on a port with Voice VLAN function enabled.
Examples
# Tag the packets matching the permit rule in ACL 2000 with an outer VLAN tag on
Ethernet 2/0/1, thus implementing the traffic-based selective QinQ feature.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] vlan 25
[H3C-vlan25] quit
[H3C] acl number 2000
[H3C-acl-basic-2000] rule permit source 10.1.1.1 0.0.0.255
[H3C-acl-basic-2000] quit
[H3C] interface Ethernet2/0/1
[H3C-Ethernet2/0/1] port link-type hybrid
[H3C-Ethernet2/0/1] port hybrid vlan 25 untagged
[H3C-Ethernet2/0/1] vlan-vpn enable
[H3C-Ethernet2/0/1] qos
[H3C-qosb-Ethernet2/0/1] traffic-remark-vlanid inbound ip-group 2000
remark-vlan 25