Quidway S3500-EA Series Operation Manual - page 8
Operation Manual - QinQ-BPDU Tunnel
Quidway S3500-EA Series Ethernet Switches
Chapter 1 QinQ Configuration
Huawei Technologies Proprietary
1-7
[Sysname] interface Ethernet 1/0/3
[Sysname-Ethernet1/0/3] port link-type trunk
[Sysname-Ethernet1/0/3] port trunk permit vlan 1000 2000
# Set the QinQ TPID value of Ethernet1/0/3 to 0x8200.
[Sysname-Ethernet1/0/3] qinq ethernet-type 8200
[Sysname-Ethernet1/0/3] quit
# Configure Ethernet1/0/4 as a hybrid port, and configure the port to permit the frames
of VLAN 10 and VLAN 1000. Remove the tags of frames of VLAN 1000 when these
frames are forwarded and keep those of the frames of VLAN 10 untouched.
[Sysname] interface Ethernet 1/0/4
[Sysname-Ethernet1/0/4] port link-type hybrid
[Sysname-Ethernet1/0/4] port hybrid vlan 10 tagged
[Sysname-Ethernet1/0/4] port hybrid vlan 1000 untagged
# Add the tag of VLAN 1000 as the outer tag for the frames of VLAN 10.
[Sysname-Ethernet1/0/4] qinq vid 1000
[Sysname-Ethernet1/0/4-vid-1000] raw-vlan-id inbound 10
[Sysname-Ethernet1/0/4-vid-1000] quit
# Configure Ethernet1/0/5 as a hybrid port, and configure the port to permit the frames
of VLAN 20 and VLAN 2000. Remove the tags of the frames of VLAN 2000 when these
frames are forwarded and keep those of the frames of VLAN 20 untouched.
[Sysname] interface Ethernet 1/0/5
[Sysname-Ethernet1/0/5] port link-type hybrid
[Sysname-Ethernet1/0/5] port hybrid vlan 20 tagged
[Sysname-Ethernet1/0/5] port hybrid vlan 2000 untagged
# Add the tag of VLAN 2000 as the outer VLAN tag for frames of VLAN 20.
[Sysname-Ethernet1/0/5] qinq vid 2000
[Sysname-Ethernet1/0/5-vid-2000] raw-vlan-id inbound 20
[Sysname-Ethernet1/0/5-vid-2000] quit
After the above configuration, the frames of VLAN 10 and VLAN 20 coming from
Customer 1 are double-tagged when transmitted by the trunk ports of Provider 1 and
Provider 2:
z
The frames from VLAN 10 are transmitted with the tag of VLAN 1000 as the outer
tag, and the TPID carried in the outer tag being 0x8200.
z
The frames from VLAN 20 are transmitted with the tag of VLAN 2000 as the outer
tags and the TPID carried in the outer tag being 0x8200.