Skip to content
Reticux Engineering by Reticux Engineering

Day 90 — 6VPE: IPv6 VPN Services over MPLS

Reticux Engineering —

1. Opening

6VPE extends the BGP/MPLS VPN model to IPv6 tenants. It is not merely 6PE with a different address family: VPNv6 NLRI includes an RD, route-target policy controls membership, and labels identify the correct VPN context at the egress PE.

The hard part of inter-AS VPN engineering is deciding where VPN knowledge stops, where labels are exchanged, and which routers must trust one another. Option A, Option B and Option C all extend VPN service across AS boundaries, but they put radically different state on ASBRs. Carrier Supporting Carrier changes the business role of the customer, while 6PE and 6VPE extend MPLS services to IPv6 without forcing a wholesale redesign of the provider core.

A useful design review therefore asks four questions before any configuration is written: which nodes hold VPN routes, which nodes exchange labels, which nodes require per-VRF state, and which administrative domains must trust one another's routing information.

2. Concept and standards behavior

RFC 4659 defines the VPN-IPv6 address family and reuses the RFC 4364 VPN model. VPNv6 uses AFI 2 and SAFI 128, an 8-octet RD plus IPv6 prefix, Route Targets as extended communities, and MPLS labels. The service can be transported across an IPv4 MPLS core, allowing a provider to add IPv6 VPNs without making every P router aware of customer IPv6 routes.

A modern reading must preserve the older architecture RFCs while applying current references where later standards superseded individual mechanisms. In particular, labeled-unicast discussion uses RFC 8277 as the current baseline even when RFC 4364, RFC 4798 or RFC 4659 historically cite RFC 3107.

3. Scenario

CE-A -- PE1 -- P1 -- ASBR1 ===== ASBR2 -- P2 -- PE2 -- CE-B
            Provider AS65000       Provider AS65100

Documentation-safe addressing is used throughout: PE/ASBR loopbacks are taken from 192.0.2.0/24, the inter-AS link from 198.51.100.0/30, customer IPv4 from 203.0.113.0/24, customer IPv6 from 2001:db8::/32, and only private ASNs are used.

Success criteria

  1. Customer routes cross the AS/service boundary only through the intended model.
  2. ASBR state matches the chosen architecture.
  3. Required service and transport labels are present.
  4. Route policy cannot broaden VPN scope silently.
  5. End-to-end forwarding succeeds.
  6. A negative cross-VPN or wrong-service test fails as intended.

4. Topology diagram

A matching SVG and PNG are stored under media/diagrams/.

5. Prerequisites

  • IOS XR 24.x feature support verified on the exact hardware/image.
  • Intra-AS MPLS transport healthy before inter-AS testing.
  • Local L3VPN or IPv6 service works inside each AS first.
  • Explicit IOS XR route-policy at eBGP boundaries.
  • Independent management/rollback access.
  • RD/RT and infrastructure-prefix inventories under change control.
  • Documentation-safe addresses and private ASNs only.

6. Baseline configuration

vrf CUST-A
 address-family ipv6 unicast
  import route-target 65000:110
  export route-target 65000:110
 !
!
router bgp 65000
 address-family vpnv6 unicast
 !
 neighbor 192.0.2.22
  remote-as 65000
  update-source Loopback0
  address-family vpnv6 unicast
  !
 !
 vrf CUST-A
  rd 65000:110
  address-family ipv6 unicast
  !
 !

This is a topic-specific excerpt, not a complete deployment. Validate exact syntax and label behavior on the selected IOS XR platform.

7. Verification before modification

show bgp summary
show bgp vpnv4 unicast
show bgp vpnv6 unicast
show bgp ipv4 labeled-unicast
show bgp ipv6 labeled-unicast
show mpls forwarding
show route

The verification goal is to correlate route state with label forwarding. A route in BGP does not prove an MPLS path exists.

8. Controlled modification

Advertise the CUST-A IPv6 prefix 2001:db8:110::/48, verify its VPNv6 RD/RT/label state, and import it only into the remote CUST-A VRF.

Predict the exact BGP table, next hop and label change before committing. Preserve a before/after evidence bundle.

9. Fault injection

Illustrative lab — not a real incident.

Create the same IPv6 prefix in CUST-B with a different RD/RT, then intentionally import CUST-A’s RT into CUST-B. The provider VPN table can legitimately hold both routes, but CUST-B should not import CUST-A.

Inject one failure only; keep all other variables unchanged so the result proves causality.

10. Step-by-step troubleshooting

  1. Verify the ingress customer/global route.
  2. Verify the expected BGP address family.
  3. Trace the route toward the AS/service boundary.
  4. Confirm what state the boundary router should hold.
  5. Inspect RD/RT where VPN routes are present.
  6. Inspect next-hop changes.
  7. Inspect service-label and transport-label state.
  8. Verify MPLS forwarding across the boundary/core.
  9. Verify the remote PE receives/imports the route.
  10. Verify PE-to-CE/global advertisement.
  11. Test forwarding.
  12. Run the negative isolation/scope test.
  13. Correct the first failed invariant only.
  14. Repeat the same route-and-label trace.

11. Root cause and correction

The VPNv6 control plane is functioning; the fault is route-target membership. Remove the unintended RT import and prove overlapping IPv6 prefixes remain isolated.

12. Post-fix verification

Verify BGP family state, next hops, RTs where applicable, MPLS labels, forwarding, and negative isolation. IPv6 topics also require IPv6-specific MTU and next-hop validation.

13. Rollback

Restore the previous route-policy, VRF handoff, VPN session or labeled-unicast transport configuration. Preserve the failing evidence before rollback. Do not widen route policy merely to restore reachability.

Rollback immediately if a route leaks across VPNs, the ASBR state model changes unintentionally, a label resolves to the wrong context, or an inter-AS fault begins affecting unrelated local services.

14. Deep-dive engineering notes

6PE versus 6VPE

6PE is global IPv6 reachability. 6VPE is per-VPN IPv6 reachability. The names are similar, but the service semantics differ fundamentally.

VPNv6 identity

The RD creates unique VPNv6 NLRI so identical customer IPv6 prefixes can coexist. This is the IPv6 analogue of VPNv4 uniqueness.

Route targets

RTs control membership. A VPNv6 route can be present in the provider VPN table and still be absent from a given VRF because its RT is not imported. This is expected policy behavior.

Labels

The egress PE uses the VPN/service label to identify the VPN forwarding context. The ingress PE also needs transport reachability to the egress PE. Troubleshoot the two label roles separately.

IPv4 core transport

A provider can run an IPv4-signaled MPLS core while offering IPv6 VPN services at the edges. This makes 6VPE a pragmatic dual-stack service migration path.

Inter-AS IPv6 VPNs

RFC 4659 maps the RFC 4364 multi-AS approaches to IPv6 VPNs. The same state-placement questions apply, but the VPNv6 family, IPv6 CE policy and next-hop/transport encoding must be validated explicitly.

14A. 6VPE tenant-isolation acceptance

Create two VPNs with deliberately overlapping IPv6 prefixes, for example 2001:db8:110::/48 in CUST-A and the same documentation prefix in CUST-B. Assign distinct RDs and RTs. The provider VPNv6 table should hold both routes simultaneously while each VRF imports only its own RT. This is the clearest proof that VPNv6 provides tenant identity rather than merely IPv6 reachability.

Next, test route-target directionality. Add a shared-services IPv6 prefix that both CUST-A and CUST-B may import, but do not allow either tenant's site prefix to leak into the other tenant. Shared-service reachability is therefore a controlled RT/policy relationship, not a reason to merge VPNs.

Trace one packet end to end: CE-A IPv6 → PE1 VRF lookup → VPN/service label selection → provider MPLS transport → PE2 VPN label/context → CUST-A IPv6 VRF → CE-B. Record where the VPN label is consumed and how the egress PE selects the correct VRF.

Then break only the VPNv6 route target while leaving IPv4 VPN service intact for the same customer. This demonstrates that dual-stack VPN health must be tracked per address family. A customer can have functioning VPNv4 and failed VPNv6 on the same PE pair.

For production monitoring, maintain independent VPNv4/vpnv6 prefix counts, RT membership, label allocation and CE adjacency state. Do not infer IPv6 VPN health from IPv4 VPN success.

15. Production workflow

  1. Build CUST-A IPv6 VRFs on both PEs.
  2. Configure unique RDs and intended RTs.
  3. Establish VPNv6 MP-BGP.
  4. Advertise one IPv6 prefix.
  5. Verify label and remote VRF import.
  6. Verify MPLS transport.
  7. Create overlapping CUST-B prefix.
  8. Prove both routes coexist in the VPN table.
  9. Prove cross-VRF isolation.
  10. Inject an RT leak, correct it and rerun negative tests.

Dual-stack VPN rollout

Introduce VPNv6 for one customer/site pair first, compare VPNv4 and VPNv6 route counts, and verify shared failures such as PE transport loss versus family-specific failures such as an IPv6 RT or CE policy error. This creates clean operational ownership before broad rollout.

16. Production lessons

  • 6VPE is the IPv6 extension of BGP/MPLS L3VPN.
  • VPNv6 uses RD, RT and labels.
  • Overlapping IPv6 prefixes are isolated by VPN identity/membership.
  • IPv4 MPLS transport can remain in place.
  • Apply IPv6 CE policy, max-prefix and MTU checks independently.

17. Knowledge check

  1. Which routers should hold VPN routes in this design?
  2. Which BGP family carries the critical route/label information?
  3. What negative test proves the service boundary remains correct?

Answers

  1. The answer is architecture-specific; the state-placement decision is the core of the topic.
  2. The relevant VPN or labeled-unicast family, depending on the design.
  3. Verify an unrelated VPN or unauthorized infrastructure prefix remains absent across the boundary.

18. Sources

  • RFC 4659 — BGP-MPLS IPv6 VPN extension
  • RFC 4364 — BGP/MPLS IP VPNs
  • RFC 4760 — Multiprotocol BGP
  • Cisco IOS XR 24.x — 6VPE / IPv6 VPN Provider Edge Transport over MPLS
Written by Reticux Engineering

Practical, lab-tested network engineering: Cisco, Juniper and Fortinet configurations, troubleshooting steps and exam-focused practice.

No comments:

Learn BGP, Cisco routing and network security with daily lab-driven lessons, from CCNA basics to CCNP level policy design.