Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

MPLS VPN Context

Direct answer

MPLS L3VPN uses VRFs on PE routers and MP-BGP to exchange customer routes with route distinguishers and route targets, plus a VPN label that sits under the transport label.

When to use this

Use it when customer routes do not appear at a remote PE, or VPN traffic does not reach the far site.

First 30 seconds

1. MPLS L3VPN uses two labels: transport (LDP) and VPN (MP-BGP).

2. RD makes routes unique; RT controls import/export.

3. PE–PE iBGP VPNv4 sessions use loopbacks.

4. P routers only need transport labels.

5. Check both labels on the ingress PE.

Operational verification

CE route → VRF → VPNv4 with RD/RT and VPN label → remote PE imports → two-label forwarding

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
L3VPN pitfalls
  • Route-target import/export mismatch → routes not in the remote VRF.
  • RD unique per VRF but RT controls import — confusing the two.
  • PE–CE routing loops when a CE is dual-homed (use site-of-origin or as-override carefully).
  • Missing label path between PE loopbacks (check LDP).
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS / IOS XE
Scope / prerequisiteUse it when customer routes do not appear at a remote PE, or VPN traffic does not reach the far site.
What next?2 suggested next steps
Evidence1
On this pageJump to a specific section
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • Labels are locally significant and normally change hop by hop
  • LERs impose/remove labels; LSRs swap labels
  • LDP commonly follows IGP reachability, so router-ID/transport reachability must work first
  • LIB/control-plane bindings and LFIB/data-plane actions are separate
  • Penultimate-hop popping is normal; MPLS VPN requires additional VRF/MP-BGP state.
Key checks
  • show bgp vpnv4 unicast all summary — VPNv4 peers
  • show ip route vrf <vrf> — customer routes
  • show ip cef vrf <vrf> <prefix> detail — VPN and transport labels
ReferenceWhat it is1 section · depth on demand

Key elements

ElementPurpose
VRF on the PESeparate routing table per customer
Route distinguisher (RD)Makes overlapping customer prefixes unique in MP-BGP (VPNv4)
Route targets (RT)Control which VRFs import/export routes
VPN labelIdentifies the VRF at the egress PE
PE–CE routingStatic, OSPF, EIGRP or eBGP

Checks: show bgp vpnv4 unicast all, show ip route vrf <name>, show mpls forwarding-table vrf <name>.

ReferenceWhy it matters1 section · depth on demand

How it works

In an MPLS L3VPN each PE keeps a VRF per customer. MP-BGP carries VPNv4/VPNv6 routes between PEs with a route distinguisher (to make prefixes unique) and route targets (to decide which VRFs import them). Packets carry two labels: the outer transport label (LDP/SR) to reach the egress PE and the inner VPN label to select the VRF.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

Minimal PE configuration (IOS XE)

vrf definition CUST-A
 rd 65000:101
 address-family ipv4
  route-target export 65000:101
  route-target import 65000:101
 exit-address-family
!
interface GigabitEthernet0/0/2
 vrf forwarding CUST-A
 ip address 172.16.1.1 255.255.255.252
!
router bgp 65000
 neighbor 10.255.0.4 remote-as 65000
 neighbor 10.255.0.4 update-source Loopback0
 address-family vpnv4
  neighbor 10.255.0.4 activate
  neighbor 10.255.0.4 send-community extended
 address-family ipv4 vrf CUST-A
  neighbor 172.16.1.2 remote-as 65101
  neighbor 172.16.1.2 activate

Route targets travel as extended communities; without send-community extended the remote PE receives VPN routes it cannot import.

Follow one customer prefix end to end

StepCommand (on PE1 unless stated)Expected
Learned from CEshow bgp vpnv4 unicast vrf CUST-A 10.101.1.0Path from 172.16.1.2
Advertised with labelshow bgp vpnv4 unicast all labelsIn/out VPN label for the prefix
Imported remotely (PE2)show bgp vpnv4 unicast vrf CUST-A 10.101.1.0Path via 10.255.0.1 with RT 65000:101
In the VRF RIB (PE2)show ip route vrf CUST-A 10.101.1.0B route, next hop 10.255.0.1
Label stack (PE2)show ip cef vrf CUST-A 10.101.1.0 detaillabel [transport|VPN], e.g. [18|24]
PE2# show ip cef vrf CUST-A 10.101.1.0 detail
10.101.1.0/24, epoch 0
  recursive via 10.255.0.1 label 24
    nexthop 10.1.34.3 GigabitEthernet0/0/1 label 22

RD vs RT — the frequent confusion

The RD (RFC 4364) only makes the prefix unique inside MP-BGP; it does not decide where the route goes. Import and export route targets decide membership. Two VRFs with different RDs share routes if their route targets match, and identical RDs do not join VRFs.

Common faults

  • Route present in VPNv4 table but not in the VRF: RT import does not match.
  • Route in VRF but traffic fails: no LSP to the remote PE loopback (check traceroute mpls).
  • Dual-homed CE in one AS on both sides: AS-path loop; use as-override or allowas-in with site-of-origin.
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 3031

Authoritative/upstream documentation reviewed for bounded claims in Routing → MPLS Fundamentals → MPLS VPN Context. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc3031.html · confidence 94%
Confirmation

Confirm action

Continue?