CLI ReferenceInterface Configuration Commands QinQ Configuration Commands
Here is an example of modifying the vid of the input messages whose
vids in the tag ranges from 3 to 7 as 4 and forwarding it:
Ruijie# configure
Ruijie(config)# vlan range 3-8
Ruijie(config-vlan-range)# exit
Ruijie(config)# interface gigabitEthernet 0/1
Ruijie(config-if)# switchport mode trunk
Ruijie(config-if)# vlan-mapping-in vlan 3-7 remark 8
Ruijie(config-if)# end
show interface[ intf-id ]
vlan-mapping
The software version must be RGOS10.4 and later.
vlan-mapping-out vlan src-vlan remark dest-vlan
Use this command to configure the policy list of the one-to-one VLAN mapping in the
outgoing direction on the acess, trunk, hybrid, uplink port.
vlan-mapping-out vlan src-vlan remark dest-vlan
no vlan-mapping-out vlan src-vlan remark dest-vlan
Interface configuration mode.
Here is an example of modifying the vid of the incoming messages
whose vid in the tag is 3 as 4 and forwarding it:
Ruijie# configure
Ruijie(config)# vlan range 3-4
Ruijie(config-vlan-range)# exit