10-10
# 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.
Selective QinQ Configuration Example (Port-Based Configuration)
Network requirements
As shown in Figure 10-5,
z Provider A and Provider B are edge devices on the service provider network and are
interconnected through trunk ports. They belong to SVLAN 1000 and SVLAN 2000 separately.
z Customer A, Customer B and Customer C are edge devices on the customer network.
z Third-party devices with a TPID value of 0x8200 are deployed between Provider A and Provider
B.
Make configuration to achieve the following:
z VLAN 10 frames of Customer A and Customer B can be forwarded to each other across SVLAN
1000;
z VLAN 20 frames of Customer A and Customer C can be forwarded to each other across SVLAN
2000.