Configuration Guide QinQ Configuration
Configuring protocol-based VID change policy table
Configuring VID add policy table
Configuring outer tag-based VID change policy table
Configuring inner tag-based 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 during forwarding according to the
VID of the tags of the packet. Run the dot1q outer-vid command to specify the
outer VID when adding outer tag to inner VID list. With this command, you can
specify an internal VLAN and add the same outer VID as the inner VID, and add
the egress to the untagged port set of the VLAN. In addtion, the packets with
original inner tag can be outputted via egress.
Enter the global configuration mode.
Enter the interface configuration mode.
switchport mode dot1q-tunnel
Set the port as a dot1q-tunnel port.
dot1q outer-vid VID register inner-vid
v_list
Configure the protocol-based policy to add
the VID of outer tag.
no dot1q outer-vid VID register
inner-vid v_list
The following example adds the VID 3 of outer tag when the VID of the tag of
incoming packet is 4-22:
Ruijie# configure
Ruijie(config)# interface gigabitEthernet 0/1
Ruijie(config-if)# switchport mode dot1q-tunnel
Ruijie(config-if)# switchport dot1q-tunnel allowed vlan add tagged 3
Ruijie(config-if)# dot1q outer-vid 3 register inner-vid 4-22
Ruijie(config-if)# end
Configure outer tag-based VID change policy table
For the packets incoming from Access port, Trunk port, Hybrid port and Uplink
port, sometimes you need to change the VIDs of outer tags according to the
VIDs of outer tags of incoming packets. Run the dot1q relay-vid VID translate
local-vid v_list command to change the local VID (VID of outer tag before
change) list.