Configuration procedures
Configure BEB 1:
# Create VLAN 20.
<BEB1> system-view [BEB1] vlan 20 [BEB1-vlan20] quit
# Enable L2VPN.
[BEB1] l2vpn enable
# Create a VSI of the PBB type named aaa.
[BEB1] vsi aaa
# Specify the I-SID as 1.
[BEB1-vsi-aaa] pbb i-sid 1
# Specify B-VLAN 20 for PBB VSI aaa.
[BEB1-vsi-aaa-1] bvlan 20 [BEB1-vsi-aaa-1] quit [BEB1-vsi-aaa] quit
# Configure Ten-GigabitEthernet 1/0/1 as a trunk port, assign it to VLAN 20, and configure it as an uplink port of PBB VSI aaa.
[BEB1] interface ten-gigabitethernet 1/0/1 [BEB1-Ten-GigabitEthernet1/0/1] port link-type trunk [BEB1-Ten-GigabitEthernet1/0/1] port trunk permit vlan 20 [BEB1-Ten-GigabitEthernet1/0/1] pbb uplink vsi aaa [BEB1-Ten-GigabitEthernet1/0/1] quit
# Create Ethernet service instance 1 on Ten-GigabitEthernet 1/0/2.
[BEB1] interface ten-gigabitethernet 1/0/2 [BEB1-Ten-GigabitEthernet1/0/2] service-instance 1
# Configure the Ethernet service instance to match all 802.1q tagged frames. Associate the Ethernet service instance with PBB VSI aaa, and set the access mode to Ethernet.
[BEB1-Ten-GigabitEthernet1/0/2-srv1] encapsulation tagged [BEB1-Ten-GigabitEthernet1/0/2-srv1] xconnect vsi aaa access-mode ethernet [BEB1-Ten-GigabitEthernet1/0/2-srv1] quit [BEB1-Ten-GigabitEthernet1/0/2] quit
# Configure Ethernet encapsulation for the PBB VSI.
[BEB1] vsi aaa [BEB1-vsi-aaa] pbb i-sid 1 [BEB1-vsi-aaa-1] encapsulation ethernet [BEB1-vsi-aaa-1] quit
Configure BEB 2 in the same way BEB 1 is configured. (Details not shown.)