I would like to configure QinQinQ and vlan mapping on S9300 at the same time,as below :
1) at G1/0/0 frame of ( 3500 & 10 tag ) enters then I will add new tag ( 3599 ) then at the exit interface g1/0/1 the frame should output like (3599 & 3000 & 10 ) ?
Vlan mapping is used to replace vlan tag, and it will be the affect in bidirectional but when you configure it you need to look in the incoming direction and the outcoming direction works in the opposite way ,
For vlan mapping , the configuration will be :
[Quidway] interface GigabitEthernet1/0/1
[Quidway-GigabitEthernet1/0/1] port vlan-mapping vlan 3599 inner-vlan 3000 map-vlan 3599 map-inner-vlan 3500
For the QinQinQ , the S9300 only handle the outermost two tag , and the inner tag will be treated as normal data , so the configuration will be :
[Quidway] interface gigabitethernet 1/0/0
[Quidway-GigabitEthernet1/0/0] port vlan-stacking vlan 3500 stack-vlan 3599
Now you can realize the QinQinQ and Vlan-mapping at the same time .
Where it will be like this :