[BEB1-Ten-GigabitEthernet1/0/2] port link-type trunk
[BEB1-Ten-GigabitEthernet1/0/2] port trunk permit vlan 1000
[BEB1-Ten-GigabitEthernet1/0/2] undo port trunk permit vlan 1
# Create service instance 1 on Ten-GigabitEthernet 1/0/2.
[BEB1-Ten-GigabitEthernet1/0/2] service-instance 1
# Configure the service instance to match frames that have an outer VLAN ID of 1000. Associate the
service instance with the PBB VSI, and set the access mode to Ethernet.
[BEB1-Ten-GigabitEthernet1/0/2-srv1] encapsulation s-vid 1000
[BEB1-Ten-GigabitEthernet1/0/2-srv1] xconnect vsi test access-mode ethernet
[BEB1-Ten-GigabitEthernet1/0/2-srv1] quit
[BEB1-Ten-GigabitEthernet1/0/2] quit
# Enable Ethernet encapsulation for the PBB VSI.
[BEB1] vsi test
[BEB1-vsi-test] pbb i-sid 1
[BEB1-vsi-test-1] encapsulation ethernet
[BEB1-vsi-test-1] quit
[BEB1-vsi-test] quit
Configuring BEB 2
# Configure BEB 2 in the same way BEB 1 is configured. (Details not shown.)
Configuring BCB
# Create VLAN 2000.
<BCB> system-view
[BCB] vlan 2000
[BCB-vlan2000] quit
# Configure Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2 as trunk ports, assign them to
VLAN 2000, and remove them from VLAN 1.
[BCB] interface range ten-gigabitethernet 1/0/1 to ten-gigabitethernet 1/0/2
[BCB-if-range] port link-type trunk
[BCB-if-range] port trunk permit vlan 2000
[BCB-if-range] undo port trunk permit vlan 1
[BCB-if-range] quit
Configuring Device A
# Create VLAN 1000.
<DeviceA> system-view
[DeviceA] vlan 1000
[DeviceA-vlan1000] quit
# Configure Ten-GigabitEthernet 1/0/1 as an access port, and assign it to VLAN 1000.
[DeviceA] interface ten-gigabitethernet 1/0/1
[DeviceA-Ten-GigabitEthernet1/0/1] port access vlan 1000
# Enable QinQ on Ten-GigabitEthernet 1/0/1.
[DeviceA-Ten-GigabitEthernet1/0/1] qinq enable
3