2.2 Describe MPLS Layer 3 VPNs

ENARSI 300-410 v1.1 · 2.0 VPN Technologies

An MPLS Layer 3 VPN gives each customer a private routed WAN over a shared provider core. PE routers keep one VRF per customer, exchange customer routes with MP-BGP as VPNv4 routes made unique by a route distinguisher, and import them with route targets. Two labels carry each packet: one to reach the PE, one for the VRF.

What you must know

How routes travel

  1. CE-A1 tells PE1 about 10.1.0.0/16 (static, OSPF, EIGRP or eBGP) inside VRF A.
  2. PE1 prefixes it with VRF A's RD (65000:1) to make the VPNv4 route 65000:1:10.1.0.0/16, attaches export RT 65000:1 and a VPN label, and sends it over MP-BGP to PE2.
  3. PE2 imports every VPNv4 route whose RT matches VRF A's import RT into VRF A, and tells CE-A2.
  4. Traffic from CE-A2 gets two labels at PE2: the VPN label (inner, from MP-BGP) and the transport label to reach PE1 (outer, from LDP).

Customer A's sites reach each other (1). Customer B uses the same addresses, but its RD keeps its routes distinct and its RT is never imported into VRF A (2).

RD versus RT

Route distinguisherRoute target
Is64-bit prefix added to the routeExtended BGP community
PurposeMake overlapping prefixes unique in MP-BGPDecide which VRFs import a route
How manyOne per VRF per PEAny number of import and export RTs
EnablesOverlapExtranets and hub-and-spoke VPNs (import another customer's RT)
vrf definition A
 rd 65000:1
 address-family ipv4
  route-target export 65000:1
  route-target import 65000:1
!
router bgp 65000
 neighbor 4.4.4.4 remote-as 65000
 neighbor 4.4.4.4 update-source Loopback0
 address-family vpnv4
  neighbor 4.4.4.4 activate
  neighbor 4.4.4.4 send-community extended
 address-family ipv4 vrf A
  redistribute ospf 10

Commands

show ip vrf / show vrfVRFs with their RD and interfaces.
show bgp vpnv4 unicast allVPNv4 routes with RDs.
show bgp vpnv4 unicast vrf A <prefix>A route's RT, VPN label and next hop.
show ip route vrf AWhat the customer VRF can reach.

Exam traps

Check yourself

Two customers use 10.1.0.0/16. What keeps their routes apart in MP-BGP?
Different route distinguishers.
A route has RT 65000:1. Which VRFs get it?
Every VRF with route-target import 65000:1.
Why do P routers not need BGP?
They forward on the transport label to the egress PE and never look at customer routes.
What are the two labels for?
Outer: reach the egress PE (LDP). Inner: select the VRF there (MP-BGP).