Configuration Guide  QinQ Configuration 
 
  Once QinQ is enabled on a port, to enable IGMP Snooping, you need set 
SVGL sharing mode or otherwise IGMP Snooping does not function on the 
port with QinQ enabled. 
Configuring Basic QinQ 
In  the  global  configuration  mode,  input  the  interface  command  to  enter  the 
interface configuration mode. Follow these steps to configure a tunnel port:   
Enter the global configuration mode. 
Enter the interface configuration mode. 
switchport mode dot1q-tunnel 
Set the port as a dot1q-tunnel port. 
switchport  dot1q-tunnel  allowed  vlan 
[add] { tagged | untagged } v_list   
Add the allowed VLAN for dot1q-tunnel 
port and specify that whether the VLAN is 
tagged or not when outputting the packets 
of allowed VLAN.   
switchport  dot1q-tunnel  allowed  vlan 
remove v_list 
Delete the allowed VLAN on the 
dot1q-tunnel port. 
switchport  dot1q-tunnel  native  vlan 
VID 
Set the default VLAN for the dot1q-tunnel 
port. 
It is not recommended to set the native VLAN of trunk port in the 
ISP network as the default VLAN of tunnel port, because the tag 
with native VID will be stripped off on trunk port.   
The following example demonstrates how to configure a QinQ port: 
Ruijie(config)# interface fastEthernet 0/1 
Ruijie(config-if)# switchport mode dot1q-tunnel 
Ruijie(config-if)# switchport dot1q-tunnel nativ vlan 20 
Ruijie(config-if)# switchport dot1q-tunnel allowed vlan tagged 100-200 
Ruijie(config)# end 
Configuring Flexible QinQ 
The section includes: 
  Configure protocol-based VID change policy table 
  Configure flow-based VID change policy table