Configuration Guide QinQ Configuration
Configuring VLAN Mapping
Configuring One-to-one VLAN Mapping
On Access, Trunk, Hybrid or Uplink ports, execute the following commands to
configure one-to-one VLAN mapping. For detailed commands, please see the
Command Reference.
Follow these steps:
Enter configuration mode.
Enter interface configuration mode.
switchport mode port-type
Configure the port as an Access, Trunk,
Uplink or Hybrid port.
vlan-mapping-in vlan cvlan
remark svlan
Configure one-to-one VLAN mapping in the
ingress direction. This command changes
the Customer VLAN ID of the ingress
packet to the specified Server VLAN ID.
no vlan-mapping-in vlan cvlan
remark svlan
Cancel one-to-one VLAN mapping in the
ingress direction.
vlan-mapping-out vlan svlan
remark
c
vlan
Configure one-to-one VLAN mapping in the
egress direction. This command changes
the Server VLAN ID of the egress packet
back to the specified Customer VLAN ID.
no vlan-mapping-out vlan svlan
remark
c
vlan
Cancel one-to-one VLAN mapping in the
egress direction.
Exit interface configuration mode.
show interface[ intf-id ]
vlan-mapping
The following example demonstrates how to change the VID in the tag of the
ingress packet back to 4 before forwarding it.
Ruijie(config)# interface gigabitEthernet 0/1
Ruijie(config-if)# switchport mode trunk
Ruijie(config-if)# vlan-mapping-in vlan 3 remark 4
Ruijie(config-if)# vlan-mapping-out vlan 4 remark 3
Ruijie(config-if)# end
Configuring Many-to-one VLAN Mapping
On Access, Trunk, Hybrid or Uplink ports, execute the following commands to
configure many-to-one VLAN mapping. For detailed commands, please see the
Command Reference.