In our previous Juniper Junos MPLS L2Circuit (Ethernet-CCC) guide, both A-end and Z-end endpoints terminated external devices such as servers or customer switches. But what if your own core router needs to act as the Z-end—landing an L2Circuit directly inside its Global Routing Table (GRT) to run an eBGP peering? On Juniper Junos, you accomplish this internal stitch using a Logical-Tunnel (lt-) interface.
Lab Topology & Real-World POP Extension Scenario
Consider a classic ISP POP constraint: CoreRouter (AS 65001, 192.168.0.2) needs an eBGP session with transit Upstream (AS 65000, 100.64.0.2/31) to ingest full Internet tables, but the physical fiber from Upstream lands only at a low-capacity edge node, Edge-Extend (192.168.0.1), which lacks the FIB capacity for full BGP tables.
Instead of terminating Layer-3 routing on Edge-Extend, we configure ge-0/0/0 as an ethernet-ccc port, backhaul it across an MPLS L2Circuit (VC 100) to CoreRouter, and terminate the pseudowire internally on lt-0/0/0.0 bridged to lt-0/0/0.1 inside inet.0.
1. Configuring Edge-Extend & CoreRouter Tunnel Services
The Upstream router already has its eBGP peer configured. Between Edge-Extend and CoreRouter, an SR-MPLS underlay using L-ISIS (classic LDP + IS-IS/OSPF works identically) is pre-configured, along with targeted LDP for RFC 4447 L2Circuit signaling.
First, configure the L2Circuit on Edge-Extend pointing to CoreRouter (192.168.0.2):
protocols {
mpls {
interface ge-0/0/1.0;
}
ldp {
transport-address router-id;
interface ge-0/0/1.0;
interface lo0.0;
}
l2circuit {
neighbor 192.168.0.2 {
interface ge-0/0/0.0 {
virtual-circuit-id 100;
no-control-word;
}
}
}
}
Next, enable tunnel-services on CoreRouter‘s FPC/PIC (required for lt- interface creation) and configure MPLS/LDP:
root> show configuration chassis
fpc 0 {
pic 0 {
tunnel-services {
bandwidth 100g;
}
inline-services {
bandwidth 100g;
}
}
} // Enable tunnel-services on FPC0 PIC0 to instantiate lt-0/0/0
ldp {
transport-address router-id;
interface ge-0/0/1.0;
interface lo0.0;
}
mpls {
interface ge-0/0/1.0;
}
2. Stitching Logical-Tunnel (lt-0/0/0) with L2Circuit
Configure two paired logical units on CoreRouter‘s lt-0/0/0 via peer-unit: unit 0 runs ethernet-ccc / family ccc to terminate the pseudowire, while unit 1 runs standard ethernet / family inet with peering IP 100.64.0.3/31 inside the Global Routing Table:
root> show configuration interfaces lt-0/0/0
unit 0 {
encapsulation ethernet-ccc; // Encapsulate unit 0 as ethernet-ccc to terminate the L2Circuit VC
peer-unit 1; // Internally pair unit 0 and unit 1 across the tunnel interface
family ccc; // Activate family ccc for pseudowire handoff
}
unit 1 {
encapsulation ethernet; // Standard Ethernet L3 sub-interface placed in the Global Routing Table
peer-unit 0; // Internally pair unit 1 back to unit 0
family inet {
address 100.64.0.3/31; // Point-to-point L3 peering address toward Upstream
}
} // A-end terminates on Edge-Extend ge-0/0/0; Z-end lands directly in CoreRouter's GRT
root> show configuration protocols l2circuit
neighbor 192.168.0.1 {
interface lt-0/0/0.0 { // Bind L2Circuit VC 100 seamlessly to lt-0/0/0.0
virtual-circuit-id 100;
no-control-word;
}
}
3. Verifying L2Circuit, eBGP Peering & End-to-End Trace
Confirm that lt-0/0/0.0(vc 100) is Up on CoreRouter with negotiated label 299776:
root> show l2circuit connections
Layer-2 Circuit Connections:
{..snip..}
Legend for interface status
Up -- operational
Dn -- down
Neighbor: 192.168.0.1
Interface Type St Time last up # Up trans
lt-0/0/0.0(vc 100) rmt Up May 30 10:58:31 2021 1
Remote PE: 192.168.0.1, Negotiated control-word: No
Incoming label: 299776, Outgoing label: 299776
Negotiated PW status TLV: No
Local interface: lt-0/0/0.0, Status: Up, Encapsulation: ETHERNET
Flow Label Transmit: No, Flow Label Receive: No
Configure the eBGP peering toward Upstream (100.64.0.2) on CoreRouter and verify that the session reaches Established:
root> show configuration protocols bgp
group external {
type external;
import accept-all; // Accept routes from Upstream (apply strict prefix filters in production)
export export-direct; // Advertise local Client prefix
peer-as 65000;
local-as 65001;
neighbor 100.64.0.2;
}
root> show bgp summary
Threading mode: BGP I/O
Groups: 1 Peers: 1 Down peers: 0
Table Tot Paths Act Paths Suppressed History Damp State Pending
inet.0
1 1 0 0 0 0
Peer AS InPkt OutPkt OutQ Flaps Last Up/Dwn State|#Active/Received/Accepted/Damped...
100.64.0.2 65000 37 37 0 0 15:38 Established inet.0: 1/1/1/0
Finally, test reachability from the downstream Client toward 8.8.8.8. Notice in the mtr output that packets hop cleanly from CoreRouter’s gateway (10.0.0.1) straight to Upstream (100.64.0.2)—the Edge-Extend transport hop is completely transparent at Layer 3:
root@localhost:~# ping 8.8.8.8 -c 3 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=62 time=11.9 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=62 time=9.22 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=62 time=12.0 ms --- 8.8.8.8 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 5ms rtt min/avg/max/mdev = 9.221/11.039/11.989/1.289 ms root@localhost:~# mtr 8.8.8.8 --report Start: 2021-05-30T13:02:25+0000 HOST: localhost Loss% Snt Last Avg Best Wrst StDev 1.|-- 10.0.0.1 0.0% 10 11.9 67.7 1.6 373.7 119.6 2.|-- 100.64.0.2 0.0% 10 5.8 6.6 2.9 12.7 3.0 3.|-- 8.8.8.8 0.0% 10 6.5 11.6 6.5 25.3 6.0
CoreRouter now terminates the remote L2Circuit directly inside its Global Routing Table, letting you extend upstream handoffs across low-cost edge POPs without pushing full BGP tables to the edge.