Skip to content

MPLS VPNs: RD, RT & VPNv4 Routes Explained Simply

Understanding the Problem: Overlapping Customer IPs

Service providers face a challenge when multiple customers use the same private IP address ranges (e.g., 10.x.x.x). Without a mechanism to make these routes unique, the network cannot correctly deliver traffic. This is where Route Distinguishers (RDs) solve the problem.

Route Distinguisher (RD): Making Routes Unique

  • An RD is a 64-bit value prepended to an IPv4 prefix, creating a globally unique VPNv4 route within the MPLS infrastructure.
  • Format: Typically written as two 32-bit numbers separated by a colon (e.g., 100:20). The first number often represents the BGP ASN, while the second is an arbitrary identifier.
  • Configuration: Each VRF on a PE router is assigned an RD. When the PE advertises a customer route via iBGP, it prepends the VRF’s RD to the IPv4 prefix.
  • Example: Customer route 10.10.20.0/24 from VRF BLUE with RD 100:20 becomes VPNv4 route 100:20:10.10.20.0/24.

VPNv4 Routes and MP-BGP

  • VPNv4 route = 64-bit RD + 32-bit IPv4 prefix = 96-bit address family.
  • These routes are exchanged between PE routers using Multi-Protocol BGP (MP-BGP).
  • The iBGP update contains:
    • The VPNv4 route (RD + prefix)
    • The next-hop IP address of the advertising PE
    • A VPN label (a local MPLS label assigned by the advertising PE)

Control Plane vs. Data Plane: The iBGP update shares routing information (control plane), not user data. The VPN label is used later when forwarding actual packets.

To understand how the underlying MPLS network transports these VPN labels, it helps to first understand MPLS Explained: What Is Multi-Protocol Label Switching? (Simple Guide).

How PE1 Receives the Route

When PE1 receives the MP-BGP update from PE2, it learns:

  • Destination: 100:20:10.10.20.0/24 (unique VPNv4 route)
  • Next hop: PE2’s IP address
  • VPN label: 19 (assigned by PE2)

PE1 now has all the information needed to forward traffic to CE3’s network, but it still needs to know which local VRF to associate the route with.

Route Target (RT): Controlling Import/Export

  • An RT is a 64-bit BGP extended community value, written in the same ASN:number format (e.g., 100:30).
  • Purpose: Determines which VRF on a PE should import or export a VPNv4 route.
  • Configuration: Each VRF has an import RT and an export RT (often the same value for simplicity).
  • When PE2 advertises the route from VRF BLUE, it attaches the export RT (e.g., 100:30) as a BGP extended community.

How RTs Enable Correct Assignment

  1. PE2 exports the VPNv4 route with RT 100:30.
  2. PE1 receives the route and checks its VRF import RTs.
  3. Only the VRF BLUE (configured with import RT 100:30) accepts the route.
  4. PE1 installs the route in VRF BLUE and advertises it to CE1.

Without RTs, PE1 would have two VPNv4 routes (one for BLUE, one for GREEN) with no way to associate them to the correct customer VRF.

Summary: How MPLS L3VPN Ties It Together

The complete MPLS VPN solution uses:

  • VRFs: Separate routing instances per customer on the PE
  • RDs: Create unique VPNv4 routes from overlapping customer IPs
  • MP-BGP: Exchanges VPNv4 routes (with RD, next-hop, and VPN label) between PEs
  • RTs: Control which VRF imports/exports which VPNv4 route
  • Underlying IGP + LDP: Provide label-switched paths between PEs for next-hop reachability

The exchange of VPNv4 routes via MP-BGP relies on a BGP session between PEs, which is further explained in How BGP Is Used in the MPLS Core: Edge Routing Explained.

The result is a scalable, secure Layer 3 VPN service where multiple customers share the same provider network while keeping their traffic fully isolated.

Keep this summary

Save it to LunaNotes and it becomes a real note in your library — editable, searchable, and ready to turn into flashcards or a diagram. Free to start.

Save to LunaNotes

Or summarise for another video.

32K+ people have turned 65K+ videos into notes

“Very useful tool. I'm using it for the last couple weeks and I'm loving it so far. Makes learning on YouTube a great experience.”
Bhai Chrome Web Store review

This summary and transcript were automatically generated using AI with the Free YouTube transcript summary tool by LunaNotes.

Related summaries

VRF in MPLS Networks: Virtual Routing and Forwarding Explained Simply

VRF in MPLS Networks: Virtual Routing and Forwarding Explained Simply

Understand how Virtual Routing and Forwarding (VRF) creates separate routing domains within a single router, and how it enables MPLS networks to isolate customer traffic. This video covers VRF configuration, routing table isolation, and the role of MP-BGP in scaling service provider networks.

Configure MPLS VPNv4 Routes on Cisco IOS Step-by-Step

Configure MPLS VPNv4 Routes on Cisco IOS Step-by-Step

Learn how to configure VPNv4 routes on an MPLS backbone using Cisco IOS routers. This tutorial covers underlay setup, OSPF, MPLS/LDP, VRFs, Route Distinguishers, Route Targets, and multi-protocol iBGP peering for VPNv4.

How BGP Is Used in the MPLS Core: Edge Routing Explained

How BGP Is Used in the MPLS Core: Edge Routing Explained

Learn how BGP operates only on the perimeter of an MPLS network, enabling PE routers to share customer routes while core P routers stay label-switching only. This video breaks down the CE/PE/P router roles, IBGP full-mesh on edges, and why MPLS beats IP routing for scalability.

MPLS Labels, Device Roles & LDP Protocol Explained Simply

MPLS Labels, Device Roles & LDP Protocol Explained Simply

This video from telecom.Tech breaks down MPLS labels, the roles of CE, PE, and P routers, and how the Label Distribution Protocol (LDP) auto-populates forwarding tables. A clear, beginner-friendly overview of MPLS core network operations and packet switching mechanics.

Basic MPLS Configuration on Cisco IOS: Step-by-Step Guide

Basic MPLS Configuration on Cisco IOS: Step-by-Step Guide

Learn how to configure MPLS on Cisco IOS routers in a typical ISP network. This video walks through the full process: eBGP peerings with customers, OSPF underlay, iBGP full mesh among PEs, and finally enabling MPLS with LDP, followed by verification using LFIB and PHP.

Found this summary useful?

Take it with you. One click puts it in your own LunaNotes library.

Save to LunaNotes

Start taking better notes today with LunaNotes