<Huawei>
system-view
[Huawei]
sysname CE1
[CE1]
bridge 1
[CE1-bridge1]
quit
[CE1]
interface gigabitethernet 0/0/1.1
[CE1-GigabitEthernet0/0/1.1]
bridge 1
[CE1-GigabitEthernet0/0/1.1]
bridge vlan-transmit enable
[CE1-GigabitEthernet0/0/1.1]
quit
[CE1]
interface gigabitethernet 0/0/1.2
[CE1-GigabitEthernet0/0/1.2]
bridge 1
[CE1-GigabitEthernet0/0/1.2]
bridge vlan-transmit enable
[CE1-GigabitEthernet0/0/1.2]
quit
# The configuration of CE2 is similar to that of CE1, and is not mentioned here.
Step 2
Configure CE1 user-side interface to add VLAN tags to user packets and re-mark voice services
with high priority.
[CE1]
interface gigabitethernet 0/0/1.1
[CE1-GigabitEthernet0/0/1.1]
vlan stacking vid 10 to 30 pe-vid 20
[CE1-GigabitEthernet0/0/1.1]
quit
[CE1]
interface gigabitethernet 0/0/1.2
[CE1-GigabitEthernet0/0/1.2]
vlan stacking vid 31 to 50 pe-vid 21 remark-8021p 7
[CE1-GigabitEthernet0/0/1.2]
quit
# The configuration of CE2 is similar to that of CE1, and is not mentioned here.
Step 3
Add GE0/0/0 on CE1, and GE0/0/0 and GE0/0/1 on PE1 to VLAN 20 and VLAN 21 in trunk
mode.
# Add GE10/0/0 on CE1 to VLAN 20 and VLAN 21 in trunk mode. The configuration of CE2
is similar to that of CE1, and is not mentioned here.
[CE1]
vlan batch 20 to 21
[CE1]
interface gigabitethernet 0/0/0
[CE1-GigabitEthernet0/0/0]
port link-type trunk
[CE1-GigabitEthernet0/0/0]
port trunk allow-pass vlan 20 21
[CE1-GigabitEthernet0/0/0]
quit
# Add GE0/0/0 and GE0/0/1 on PE1 to VLAN 20 and VLAN 21 in trunk mode. The
configurations of PE2 and P are similar to the configuration of PE1, and are not mentioned here.
<Huawei>
system-view
[Huawei]
sysname PE1
[PE1]
vlan batch 20 to 21
[PE1]
interface gigabitethernet 0/0/0
[PE1-GigabitEthernet0/0/0]
port link-type trunk
[PE1-GigabitEthernet0/0/0]
port trunk allow-pass vlan 20 21
[PE1-GigabitEthernet0/0/0]
quit
[PE1]
interface gigabitethernet 0/0/1
[PE1-GigabitEthernet0/0/1]
port link-type trunk
[PE1-GigabitEthernet0/0/1]
port trunk allow-pass vlan 20 21
[PE1-GigabitEthernet0/0/1]
quit
Step 4
Verify the configuration.
# On a PC in a VLAN of a branch in enterprise A, ping a PC in the same VLAN of the other
branch in enterprise A. The ping operation succeeds, indicating that devices transmitting the
same service can communicate with each other.
----End
Configuration Files
Configuration file of CE1
Huawei AR530&AR550 Series Industrial Switch Routers
Configuration Guide - Ethernet Switching
4 QinQ Configuration
Issue 01 (2014-11-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
139