Configuration Guide QinQ Configuration
Enter the global configuration mode.
Enter the interface configuration mode.
switchport mode port-type
Set the port as Access port, Trunk port,
Uplink port or Hybrid port.
dot1q relay-vid VID translate
local-vid v_list
Configure the policy to change the VID of
outer tag according to original VID of outer
tag.
no dot1q relay-vid VID translate
local-vid v_list
The following example changes the VID of outer tag as 100 when the VID of
outer tag of incoming packets is 10-20.
Ruijie(config)# interface gigabitEthernet 0/1
Ruijie(config-if)# switchport mode trunk
Ruijie(config-if)# dot1q relay-vid 100 translate local-vid
10-20
Ruijie(config-if)# end
Configuring flow-based VID change policy table
Configuring VID add policy table
Configuring outer VID change policy table
Configuring inner VID change policy table
Configuring VID add policy table
For an incoming packet on dot1q-tunnel port, in some case, it is necessary to
specify the VID of outer tag for the packet according to its content. Run the
traffic-redirect access-group acl nested-vlan VID in comamnd to specify the
VID of outer tag when the packet incoming from the dot1q-tunnel port matches
ACL.
Enter the global configuration mode.
Enter the interface configuration mode.
switchport mode dot1q-tunnel
Set the port as a dot1q-tunnel port.
traffic-redirect access-group acl
nested-vlan VID in
Configure the flow-based policy to add the
VID of outer tag.