Service providers and enterprise engineers frequently encounter Layer-2 transport requests—such as bridging two distant server rooms into one broadcast domain, or letting a branch office dial directly into a central PPPoE BRAS located in another region. This guide demonstrates how Juniper MPLS L2Circuit (Pseudowire using ethernet-ccc / vlan-ccc) delivers a clean virtual leased line in under 20 lines of configuration.
Comparing L2 Extension Options: Why MPLS L2Circuit Wins Here
Before jumping into configuration, compare the three common approaches for remote Layer-2 transport:
- IP Routing + GRETAP Bridging: Possible, but requires building GRETAP Layer-2 tunnels and managing Linux/router bridges at both endpoints—cumbersome to deploy and troubleshoot.
- MPLS L3VPN: Not viable, because VRFs isolate broadcast domains by design, breaking PPPoE discovery frames (PADI/PADO) that require a shared Layer-2 segment.
- VPLS / VXLAN: Viable, yet provisioning full virtual-switch instances across dozens of point-to-point broadband access customers adds unnecessary operational overhead.
- MPLS L2Circuit (Pseudowire): Terminates each customer port in
ethernet-cccmode with minimal per-circuit state, making point-to-point Layer-2 circuits and remote PPPoE backhaul effortless to scale.
Lab Topology & Use Case
In this scenario, Ori-Client at Ori-Branch@Area0 needs to authenticate against the PPPoE-BRAS (MikroTik RouterOS) at Ori-Headquarter to reach the public Internet. The core ISP Transit Area 0 is already pre-configured with OSPF Area 0 and LDP (no BGP required), so we only need to configure the pseudowire on ingress PE VCP1 (R1) and egress PE VCP3 (R3).
1. Configuring MPLS LSPs & L2Circuit on VCP1 and VCP3
Define the MPLS LSPs between 10.0.0.1 and 10.0.0.3, set the customer/BRAS interfaces (ge-0/0/2) to encapsulation ethernet-ccc with family ccc, and bind both ends using matching virtual-circuit-id 100:
protocols {
mpls {
label-switched-path R1-R3 {
to 10.0.0.3; // Define MPLS LSP to remote PE (a single LSP can carry multiple L2Circuits)
}
interface ge-0/0/1.0;
}
l2circuit {
neighbor 10.0.0.3 {
interface ge-0/0/2.0 {
virtual-circuit-id 100; // Bind interface to remote PE with matching VC-ID 100
}
}
}
}
interfaces {
ge-0/0/2 {
encapsulation ethernet-ccc; // Enable Circuit Cross-Connect (CCC) pseudowire encapsulation
unit 0 {
family ccc; // Activate family ccc for transparent L2 pseudowire switching
}
}
}
protocols {
mpls {
label-switched-path R3-R1 {
to 10.0.0.1; // Define reverse MPLS LSP toward PE R1
}
interface ge-0/0/1.0;
}
l2circuit {
neighbor 10.0.0.1 {
interface ge-0/0/2.0 {
virtual-circuit-id 100; // Must match remote PE VC-ID (100)
}
}
}
}
interfaces {
ge-0/0/2 {
encapsulation ethernet-ccc; // Enable Circuit Cross-Connect (CCC) pseudowire encapsulation
unit 0 {
family ccc; // Activate family ccc for transparent L2 pseudowire switching
}
}
}
2. Verifying mpls.0 Labels & L2Circuit Status
Inspecting mpls.0 on VCP1 (R1) confirms the two-label stack imposed on frames entering ge-0/0/2.0: inner pseudowire label 299776 and outer transport label 299840, along with the reverse pop entry for incoming label 299776:
root@R1> show route table mpls.0
mpls.0: 11 destinations, 11 routes (11 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both
0 *[MPLS/0] 22:13:11, metric 1
to table inet.0
0(S=0) *[MPLS/0] 22:13:11, metric 1
to table mpls.0
1 *[MPLS/0] 22:13:11, metric 1
Receive
2 *[MPLS/0] 22:13:11, metric 1
to table inet6.0
2(S=0) *[MPLS/0] 22:13:11, metric 1
to table mpls.0
13 *[MPLS/0] 22:13:11, metric 1
Receive
299776 *[L2CKT/7] 21:57:36
> via ge-0/0/2.0, Pop Offset: 4
299792 *[LDP/9] 22:11:04, metric 1
> to 100.64.10.2 via ge-0/0/0.0, Pop
299792(S=0) *[LDP/9] 22:11:04, metric 1
> to 100.64.10.2 via ge-0/0/0.0, Pop
299808 *[LDP/9] 22:10:57, metric 1
> to 100.64.10.2 via ge-0/0/0.0, Swap 299840
ge-0/0/2.0 *[L2CKT/7] 21:57:36, metric2 1
> to 100.64.10.2 via ge-0/0/0.0, Push 299776, Push 299840(top) Offset: 252
Next, run show l2circuit connections on R1 to confirm that VC 100 is Up with bidirectional labels 299776:
root@R1> show l2circuit connections
Layer-2 Circuit Connections:
Legend for connection status (St)
EI -- encapsulation invalid NP -- interface h/w not present
MM -- mtu mismatch Dn -- down
EM -- encapsulation mismatch VC-Dn -- Virtual circuit Down
CM -- control-word mismatch Up -- operational
VM -- vlan id mismatch CF -- Call admission control failure
OL -- no outgoing label IB -- TDM incompatible bitrate
NC -- intf encaps not CCC/TCC TM -- TDM misconfiguration
BK -- Backup Connection ST -- Standby Connection
CB -- rcvd cell-bundle size bad SP -- Static Pseudowire
LD -- local site signaled down RS -- remote site standby
RD -- remote site signaled down HS -- Hot-standby Connection
XX -- unknown
Legend for interface status
Up -- operational
Dn -- down
Neighbor: 10.0.0.3
Interface Type St Time last up # Up trans
ge-0/0/2.0(vc 100) rmt Up Jun 10 10:16:22 2020 1
Remote PE: 10.0.0.3, Negotiated control-word: Yes (Null)
Incoming label: 299776, Outgoing label: 299776
Negotiated PW status TLV: No
Local interface: ge-0/0/2.0, Status: Up, Encapsulation: ETHERNET
Flow Label Transmit: No, Flow Label Receive: No
3. End-to-End Branch PPPoE Dial-Up Test
With the pseudowire operational, dial a standard Windows PPPoE session from Ori-Branch@Area0 – Ori-Client toward the headquarters MikroTik RouterOS BRAS (credentials ori / ori; BRAS setup omitted):



The remote branch workstation receives IPv4 connectivity directly from the headquarters BRAS over a transparent MPLS pseudowire, fulfilling the Layer-2 extension requirement with minimal configuration.