Juniper JunOS MPLS L3VPN
MPLS L3VPN configuration for Juniper MX routers: LDP or RSVP label distribution, VRF instances with PE-CE routing (BGP/OSPF/static), and VPNv4 route reflectors.
What is it?
MPLS L3VPN (RFC 4364) allows a service provider to carry multiple customers' IP traffic over a shared MPLS backbone, with full separation between customers. Each customer gets a VRF (Virtual Routing and Forwarding instance) on each PE (Provider Edge) router. Route Distinguishers (RD) make customer routes unique in the BGP VPNv4 table. Route Targets (RT) control which VRFs import/export routes to each other — they implement the VPN topology (hub-and-spoke, any-to-any, extranet). BGP with the VPNv4 address family carries customer routes between PE routers.
When to use
- ·Service provider offering managed L3 VPN service to enterprise customers
- ·Large enterprise with multiple business units that need isolated routing but shared infrastructure
- ·Connecting multiple data centers with full routing isolation between tenants
- ·Any scenario requiring multiple isolated routing tables over shared MPLS infrastructure
When NOT to use
- ·Simple site-to-site connectivity — IPSec VPN is simpler
- ·If MPLS is not available end-to-end — MPLS L3VPN requires MPLS labels throughout the core
How it compares
Prerequisites
- →MPLS must be running in the core (LDP or RSVP for label distribution)
- →BGP with VPNv4 address family must be configured between all PE routers (or via route reflectors)
- →IGP (OSPF or IS-IS) must be running in the core so PE loopbacks are reachable
- →Route Distinguishers and Route Targets must be planned and allocated before configuration
Config Generator
Verification commands
show bgp summaryVerify BGP sessions with route reflectors and PE peers are Established
ExpectedAll PE-to-RR sessions 'Establ' with non-zero VPNv4 prefixes
show route table <vrf-name>.inet.0Show routes in a specific VRF routing table
ExpectedLists customer routes with next-hop PE loopback and MPLS label
show mpls lspVerify MPLS label-switched paths are established between PEs
ExpectedLSPs to all remote PE loopbacks should show 'Up' state
Debug commands
show route table bgp.l3vpn.0Show the BGP VPNv4 table with all received VPN routes before VRF import
Common mistakes & fixes
Further learning
Recommended books to go deeper on this topic.
MPLS Fundamentals
Luc De Ghein · Cisco Press · Label switching, LDP, RSVP, L3VPN VRF, PE-CE routing — the MPLS bible
Routing TCP/IP, Volume 2
Jeff Doyle · Cisco Press · BGP as PE-CE protocol in MPLS L3VPN environments