H3C LS-3100-52P-OVS-H3 Operation Manual - page 207
1-23
[DeviceC] traffic classifier downlink_out
[DeviceC-classifier-downlink_out] if-match customer-vlan-id 30
[DeviceC-classifier-downlink_out] if-match service-vlan-id 200
[DeviceC-classifier-downlink_out] quit
# Specify the original CVLAN and SVLAN for outgoing VPN 1 traffic on GigabitEthernet 1/0/1.
[DeviceC] traffic behavior downlink_out
[DeviceC-behavior-downlink_out] remark customer-vlan-id 10
[DeviceC-behavior-downlink_out] remark service-vlan-id 100
[DeviceC-behavior-downlink_out] quit
# Configure a downlink policy to map the new CVLAN and SVLAN to the original CVLAN and SVLAN for
the outgoing VPN 1 traffic on GigabitEthernet 1/0/1.
[DeviceC] qos policy downlink_out
[DeviceC-qospolicy-downlink_out] classifier downlink_out behavior downlink_out
[DeviceC-qospolicy-downlink_out] quit
# Specify the original CVLAN and the new SVLAN in the VLAN mapping for outgoing VPN 1 traffic on
GigabitEthernet 1/0/2.
[DeviceC] traffic classifier uplink_out
[DeviceC-classifier-uplink_out] if-match customer-vlan-id 10
[DeviceC-classifier-uplink_out] if-match service-vlan-id 200
[DeviceC-classifier-uplink_out] quit
# Specify the new CVLAN used for replacing the original CVLAN for outgoing VPN 1 traffic on
GigabitEthernet 1/0/2.
[DeviceC] traffic behavior uplink_out
[DeviceC-behavior-uplink_out] remark customer-vlan-id 30
[DeviceC-behavior-uplink_out] quit
# Configure an uplink policy to map the original CVLAN and the new SVLAN to the new CVLAN for
outgoing VPN 1 traffic on GigabitEthernet 1/0/2.
[DeviceC] qos policy uplink_out
[DeviceC-qospolicy-uplink_out] classifier uplink_out behavior uplink_out
[DeviceC-qospolicy-uplink_out] quit
# Apply uplink and downlink policies to GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2.
[DeviceC] interface gigabitethernet 1/0/1
[DeviceB-GigabitEthernet1/0/1] port link-type trunk
[DeviceB-GigabitEthernet1/0/1] port trunk permit vlan 200
[DeviceC-GigabitEthernet1/0/1] qos apply policy downlink_in inbound
[DeviceC-GigabitEthernet1/0/1] qos apply policy downlink_out outbound
[DeviceC-GigabitEthernet1/0/1] quit
[DeviceC] interface gigabitethernet 1/0/2
[DeviceB-GigabitEthernet1/0/2] port link-type trunk
[DeviceB-GigabitEthernet1/0/2] port trunk permit vlan 200
[DeviceC-GigabitEthernet1/0/2] qos apply policy uplink_out outbound
[DeviceC-GigabitEthernet1/0/2] quit
4) Configuration on Device D
# Configure QinQ function on GigabitEthernet 1/0/2 to add outer VLAN tag 200 to the traffic tagged with
VLAN 30.