1-8
[ProviderA-GigabitEthernet1/0/2] port hybrid vlan 50 untagged
# Enable basic QinQ on GigabitEthernet 1/0/2.
[ProviderA-GigabitEthernet1/0/2] qinq enable
[ProviderA-GigabitEthernet1/0/2] quit
z
Configure GigabitEthernet 1/0/3
# Configure GigabitEthernet 1/0/3 as a trunk port to permit frames of VLAN 10 and 50 to pass through.
[ProviderA] interface gigabitethernet 1/0/3
[ProviderA-GigabitEthernet1/0/3] port link-type trunk
[ProviderA-GigabitEthernet1/0/3] port trunk permit vlan 10 50
# Set the TPID value in the outer tag to 0x8200.
[ProviderA-GigabitEthernet1/0/3] quit
[ProviderA] qinq ethernet-type 8200
2) Configuration on Provider B
z
Configure GigabitEthernet 1/0/1
# Configure VLAN 50 as the default VLAN of GigabitEthernet 1/0/1.
<ProviderB> system-view
[ProviderB] interface gigabitethernet 1/0/1
[ProviderB-GigabitEthernet1/0/1] port access vlan 50
# Enable basic QinQ on GigabitEthernet 1/0/1.
[ProviderB-GigabitEthernet1/0/1] qinq enable
[ProviderB-GigabitEthernet1/0/1] quit
z
Configure GigabitEthernet 1/0/2
# Configure GigabitEthernet 1/0/2 as a hybrid port and configure VLAN 10 as the default VLAN of the
port.
[ProviderB] interface gigabitethernet 1/0/2
[ProviderB-GigabitEthernet1/0/2] port link-type hybrid
[ProviderB-GigabitEthernet1/0/2] port hybrid pvid vlan 10
[ProviderB-GigabitEthernet1/0/2] port hybrid vlan 10 untagged
# Enable basic QinQ on GigabitEthernet 1/0/2.
[ProviderB-GigabitEthernet1/0/2] qinq enable
[ProviderB-GigabitEthernet1/0/2] quit
z
Configure GigabitEthernet 1/0/3
# Configure GigabitEthernet 1/0/3 as a trunk port to permit frames of VLAN 10 and 50 to pass through.
[ProviderB] interface gigabitethernet 1/0/3
[ProviderA-GigabitEthernet1/0/B] port link-type trunk
[ProviderA-GigabitEthernet1/0/B] port trunk permit vlan 10 50
# Set the TPID value in the outer tag to 0x8200.
[ProviderB-GigabitEthernet1/0/3] quit
[ProviderB] qinq ethernet-type 8200
3) Configuration on third-party devices
Configure the third-party devices between Provider A and Provider B as follows: configure the port
connecting GigabitEthernet 1/0/3 of Provider A and that connecting GigabitEthernet 1/0/3 of Provider B
to allow tagged frames of VLAN 10 and 50 to pass through.