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
- Describe CE, PE and P roles and where VRFs live.
- Explain the route distinguisher (unique routes) and route targets (import/export policy).
- Describe the two-label stack: transport (LDP) and VPN (MP-BGP).
- Know the CE–PE options: static, OSPF, EIGRP, BGP.
How routes travel
- CE-A1 tells PE1 about 10.1.0.0/16 (static, OSPF, EIGRP or eBGP) inside VRF A.
- 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. - PE2 imports every VPNv4 route whose RT matches VRF A's import RT into VRF A, and tells CE-A2.
- 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 distinguisher | Route target | |
|---|---|---|
| Is | 64-bit prefix added to the route | Extended BGP community |
| Purpose | Make overlapping prefixes unique in MP-BGP | Decide which VRFs import a route |
| How many | One per VRF per PE | Any number of import and export RTs |
| Enables | Overlap | Extranets 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 10Commands
show ip vrf / show vrf | VRFs with their RD and interfaces. |
show bgp vpnv4 unicast all | VPNv4 routes with RDs. |
show bgp vpnv4 unicast vrf A <prefix> | A route's RT, VPN label and next hop. |
show ip route vrf A | What the customer VRF can reach. |
Exam traps
- The RD does not decide import; the RT does.
- Without
send-community extended, RTs are stripped and no PE imports anything. - P routers know nothing about VPN routes.
- The inner label identifies the VRF on the egress PE; the outer label reaches that PE.
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).