
147
Configure the link layer protocol on the PE and a connected CE to set up a link layer connection
(such as a PPP connection) between the PE and the CE.
2.
Bind the two ACs that connect the two CEs:
You can bind the ACs by binding the PE's Layer 3 interfaces connected to the two CEs. After
the binding, the PE forward packets received from one AC to another.
Packet forwarding process
As shown in
, MPLS L2VPN forwards Layer 2 packets received from CE 1 directly to CE 2.
Figure 38 Packet forwarding process
Implementation of MPLS L2VPN
To establish a local connection, you only need to bind the two ACs on the PE. (Details not shown.)
This section only describes how to set up a remote MPLS L2VPN connection in different modes.
CCC MPLS L2VPN
The CCC mode sets up a CCC connection by establishing two static LSPs in opposite directions and
binding the static LSPs to ACs.
Figure 39 CCC MPLS L2VPN network diagram
After you complete the configurations as shown in
, a static LSP from PE 1 to PE 2 and a
static LSP from PE 2 to PE 1 are established. Bind the two LSPs to Interface A on PE 1 and to
Interface B on PE 2. A CCC connection is successfully established.
The following describes how a packet is forwarded from CE 1 to CE 2:
1.
After PE 1 receives a packet from CE 1 on Interface A, it adds label 300 (corresponding to the
static LSP from PE 1 to PE 2) into the packet.
2.
After the P device receives the packet, it looks up the label forwarding table, and swaps label
300 with label 310.