Use it when customer routes do not appear at a remote PE, or VPN traffic does not reach the far site.
MPLS VPN Context
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.
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.
CE route → VRF → VPNv4 with RD/RT and VPN label → remote PE imports → two-label forwarding
Context & applicabilityCommon mistakes · platform/version boundaries
- 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-overridecarefully). - Missing label path between PE loopbacks (check LDP).
Operational reference
Fast context before you go deeper.
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.
- 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.
show bgp vpnv4 unicast all summary— VPNv4 peersshow ip route vrf <vrf>— customer routesshow ip cef vrf <vrf> <prefix> detail— VPN and transport labels
ReferenceWhat it is1 section · depth on demand
Key elements
| Element | Purpose |
|---|---|
| VRF on the PE | Separate 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 label | Identifies the VRF at the egress PE |
| PE–CE routing | Static, 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
| Step | Command (on PE1 unless stated) | Expected |
|---|---|---|
| Learned from CE | show bgp vpnv4 unicast vrf CUST-A 10.101.1.0 | Path from 172.16.1.2 |
| Advertised with label | show bgp vpnv4 unicast all labels | In/out VPN label for the prefix |
| Imported remotely (PE2) | show bgp vpnv4 unicast vrf CUST-A 10.101.1.0 | Path via 10.255.0.1 with RT 65000:101 |
| In the VRF RIB (PE2) | show ip route vrf CUST-A 10.101.1.0 | B route, next hop 10.255.0.1 |
| Label stack (PE2) | show ip cef vrf CUST-A 10.101.1.0 detail | label [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-overrideorallowas-inwith site-of-origin.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%