8 - Configuring A VPRN
8 - Configuring A VPRN
• This module also assumes the reader is familiar with the following
concepts: LDP, MPLS, IGP, EGP.
Service Tunnel
(Demultiplex) (Signaled
SDP
via T-LDP or Transport
BGP-LU/MP-BGP) Tunnel
(Signaled
Service (e.g. VPWS, VPLS, VPRN) via
L-LDP,
RSVP-TE, or
Service Tunnel
(Signaled GRE)
Service ID SDP SDP
via T-LDP or
VCID BGP-LU/MP-BGP)
Sensitivity: Internal
N6
N1
1/1/5:40 1/1/5:40
A Gi0/0.40
A
Gi0/0.40
VRF 1122 VRF 1122
192.168.1.1/31
1/1/5:41
SDP / MP-BGP 192.168.2.1/31
B 1/1/5:42
Gi0/0.41 C
VRF 2233 VPRN Service IDs: Gi0/0.42
VRF 3344
192.168.1.1/31 1/1/5:42
C SD 1122, 2233, 3344 G P 192.168.2.1/31
Gi0/0.42 P/ - B N6’s Routing Tables
VRF 3344 MP P
192.168.1.1/31 -BG / M VPRN Subscriber Prefix
P
N1’s Routing Tables
P SD 1122 A 192.168.1.0/31
VPRN Subscriber Prefix 1122 A 192.168.2.0/31
1122 A 192.168.1.0/31 3344 C 192.168.1.0/31
3344 C 192.168.3.0/31
Gi0/0.41 N7 1/1/5:42 2233 B 192.168.1.0/31
B VRF 2233
192.168.3.1/31 2233 B 192.168.3.0/31
3344 C 192.168.1.0/31
3344 C 192.168.2.0/31
R3 Loopback42
Sensitivity: Internal ASN: 65003 24.137.88.1/24
VPRN Components
MP-BGP / Multiprotocol BGP – An enhancement of BGP-4 that allows different types of addresses (AFIs/SAFIs) to be distributed in
parallel. VPNv4 unicast traffic has an AFI of 1, and a SAFI of 128 (1/128).
• RFC 4760 - Multiprotocol Extensions for BGP-4; https://tools.ietf.org/html/rfc4760
BGP-LU / BGP Labeled Unicast – A MP-BGP extension used to distribute Service labels that are mapped to particular prefixes.
• RFC 3107 - Carrying Label Information in BGP-4; https://tools.ietf.org/html/rfc3107
• RFC 8277 - Using BGP to Bind MPLS Labels to Address Prefixes; https://tools.ietf.org/html/rfc8277
VRF / VPN Routing & Forwarding Table – The virtual routing table on the PE router that contains the customer’s prefixes for the VPRN.
VPNv4 Prefix – The combination of a customer’s prefix and their VRF’s Route Distinguisher.
• [Route Distinguisher] + [IPv4 Prefix] = [VPN-IPv4 / VPNv4 Prefix].
RD / Route Distinguisher – An additional string added to a customer’s prefixes so they can be distinguished from other prefixes within the
Service Provider network.
• Type 0 – ASN:Assigned Number:Prefix (e.g.: {0:7029:3344:151.41.3.1/32}).
• Type 1 – IPv4 Address:Assigned Number:Prefix (e.g.: {1:6.6.6.6:3344:151.41.3.1/32}).
• Type 2 – ASN:Assigned Number:Prefix (e.g.: {2:7029:3344:151.41.3.1/32}). Note: used explicitly to signal Multicast VPNs.
RT / Route Target – A BGP-4 extended community attached to VPNv4 prefixes that identifies which VPRN the prefix belongs to.
• Type 0x00: Two-Octet AS Specific Extended Community – ASN:Assigned Number (e.g.: 7029:3344).
• Type 0x01: IPv4 Address Specific Extended Community – IPv4 Address:Assigned Number (e.g.: 6.6.6.6:3344).
• RFC 4360 - BGP Extended Communities Attribute; https://tools.ietf.org/html/rfc4360
Sensitivity: Internal
VPRN Components
CE<>PE UPDATE message PE<>PE UPDATE message PE<>CE UPDATE message
C C
SDP / MP-BGP
Service Provider
IP/MPLS
N1 N6 Customer
Payload
1/1/5:42 N2 N5 1/1/5:42
R1 R2
Gi0/0.42 Gi0/0.42
Customer
Payload
Sensitivity: Internal N3 N4
VPRN Configuration (Underlying Policies and Protocols)
configure router policy-options begin Enters ‘edit’ mode via the CLI.
Sensitivity: Internal
VPRN Configuration: PE-to-CE (from the persepective of N6)
R2 (AS65002) N6 (AS7029)
VRF RD RT Interface VPRN ASN RD RT Interface
1122 65002:1122 65002:1122 Gi0/0.40 192.168.2.1/31 1122 65000 65000:1122 65000:1122 toR2-VRF1122 192.168.2.0/31
Loopback40 151.40.2.1/24
3344 65002:3344 65002:3344 Gi0/0.42 192.168.2.1/31 3344 65000 65000:3344 65000:3344 toR2-VRF3344 192.168.2.0/31
Loopback42 98.98.98.1/24
R3 (AS65003) N7 (AS7029)
VRF RD RT Interface VPRN ASN RD RT Interface
2233 65003:2233 65003:2233 Gi0/0.41 192.168.3.1/31 2233 65000 65000:2233 65000:2233 toR3-VRF2233 192.168.3.0/31
Loopback41 151.41.3.1/24
3344 65003:3344 65003:3344 Gi0/0.42 192.168.3.1/31 3344 65000 65000:3344 65000:3344 toR3-VRF3344 192.168.3.0/31
Loopback42 24.137.88.1/24
Sensitivity: Internal
MP-BGP (7029 <> 7029)
BGP4
(65000 <> 65001)
BGP4
(65000 <> 65003)
Sensitivity: Internal
Goals
• VPRN Underlying Requirements
• Configure a routing policy on each PE (N1, N6, N7) that will allow routes to be redistributed from MP-BGP into BGP4.
• Configure a full mesh of SDPs (T-LDP tunnels) between the PEs.
• CE-to-PE Routing
• Configure each CE to distribute a public IPv4 system address to the PE via eBGP.
• Each address MUST be in a separate broadcast domain.
• Configure a VPRN service for the subscriber on each PE.
• PE-to-PE Routing
• Configure a full mesh of MP-BGP (VPNv4 Unicast) neighborships between the PEs.
• PE-to-CE Routing
• Configure each CE to distribute a public IPv4 system address to the PE via eBGP.
• Configure a VPRN service for the subscriber on each PE.
• Verification
• Confirm IPv4 prefixes are being distributed from the CE to the PE.
• Confirm IPv4 prefixes are being converted into VPNv4 prefixes by the PE.
• Confirm VPNv4 prefixes are being redistributed to each PE with the appropriate RD.
• Confirm VPNv4 prefixes are being converted back into IPv4 prefixes, and redistributed from the PEs to the CEs.
Sensitivity: Internal