CLI ReferenceInterface Configuration Commands QinQ Configuration Commands
Here is an example of configuring vlan 3-6 of dot1q-tunnel port as
allowed VLAN and outputting the frame with tag:
Ruijie(config)#interface gigabitEthernet 0/1
Ruijie(config-if)#switchport dot1q-tunnel allowed vlan tagged 3-6
Ruijie(config)#end
show interface
dot1q-tunnel
The software version must be RGOS10.3 and later.
switchport dot1q-tunnel native vlan
Use this command to configure the default vlan id of dot1q-tunnel.
switchport dot1q-tunnel native vlan vid
no switchport dot1q-tunnel native vlan
Configure default vlan id.
Configure default vlan as 1.
Interface configuration mode.
Here is an example of configuring default vlan of dot1q-tunnel port as
8:
Ruijie(config)#interface gigabitEthernet 0/1
Ruijie(config-if)#switchport dot1q-tunnel native vlan 8
Ruijie(config)#end
show interface
dot1q-tunnel