# Tag CVLAN 10 frames with SVLAN 1000.
[ProviderA-Ethernet1/0/1] qinq vid 1000
[ProviderA-Ethernet1/0/1-vid-1000] raw-vlan-id inbound 10
[ProviderA-Ethernet1/0/1-vid-1000] quit
# Tag CVLAN 20 frames with SVLAN 2000.
[ProviderA-Ethernet1/0/1] qinq vid 2000
[ProviderA-Ethernet1/0/1-vid-2000] raw-vlan-id inbound 20
[ProviderA-Ethernet1/0/1-vid-2000] quit
[ProviderA-Ethernet1/0/1] quit
•
Configure Ethernet 1/0/2
# Configure Ethernet 1/0/2 as a hybrid port to permit frames of VLAN 1000 to pass through, and
configure Ethernet 1/0/2 to send packets of VLAN 1000 with tag removed.
[ProviderA] interface ethernet 1/0/2
[ProviderA-Ethernet1/0/2] port link-type hybrid
[ProviderA-Ethernet1/0/2] port hybrid vlan 1000 untagged
# Tag CVLAN 10 frames with SVLAN 1000.
[ProviderA-Ethernet1/0/2] qinq vid 1000
[ProviderA-Ethernet1/0/2-vid-1000] raw-vlan-id inbound 10
[ProviderA-Ethernet1/0/2-vid-1000] quit
[ProviderA-Ethernet1/0/2] quit
•
Configure Ethernet 1/0/3
# Configure Ethernet 1/0/3 as a trunk port to permit frames of VLAN 1000 and VLAN 2000 to pass
through.
[ProviderA] interface ethernet 1/0/3
[ProviderA-Ethernet1/0/3] port link-type trunk
[Sysname-Ethernet1/0/3] port trunk permit vlan 1000 2000
# Set the TPID value in the outer tag to 0x8200.
[ProviderA-Ethernet1/0/3] quit
[ProviderA] qinq ethernet-type 8200
2.
Configure Provider B.
•
Configure Ethernet 1/0/1.
# Configure Ethernet 1/0/1 as a trunk port to permit frames of VLAN 1000 and VLAN 2000 to pass
through.
<ProviderB> system-view
[ProviderB] interface ethernet 1/0/1
[ProviderB-Ethernet1/0/1] port link-type trunk
[ProviderB-Ethernet1/0/1] port trunk permit vlan 1000 2000
•
Configure Ethernet 1/0/2.
# Configure Ethernet 1/0/2 as a hybrid port to permit frames of VLAN 2000 to pass through, and
configure Ethernet 1/0/2 to send packets of VLAN 2000 with tag removed.
[ProviderB] interface ethernet 1/0/2
[ProviderB-Ethernet1/0/2] port link-type hybrid
[ProviderB-Ethernet1/0/2] port hybrid vlan 2000 untagged
# Tag CVLAN 20 frames with SVLAN 2000.
[ProviderB-Ethernet1/0/2] qinq vid 2000
146