Professional Documents
Culture Documents
APNIC eLearning:
MPLS L3 VPN
18 JANUARY 2017
11:00 AM AEST Brisbane (UTC+10)
Introduction
• Presenter/s Jessica Bei Wei
Training Officer
jwei@apnic.net
Specialties:
Routing & Switching
MPLS, IPv6
QoS
1
1/18/17
Agenda
• MPLS VPN
• VRF
• RD & RT
• Control Plane of MPLS L3VPN
• Data Plane of MPLS L3VPN
• Configuration Example
2
1/18/17
P P
CE CE
VPNA PE PE VPNB
MPLS Network
VPNB
P P
CE VPNA
CE
3
1/18/17
CE
VPNA VRF A
PE
MPLS Backbone
CE
VPNB
VRF B
4
1/18/17
What is RD
• Route distinguisher is an 8-octet field prefixed to the
customer's IPv4 address. RD makes the customer’s IPv4
address unique inside the SP MPLS network.
• RD is configured in the VRF at PE
IPv4 Address (4
VPNv4 Address: Route Distinguisher (8 bytes)
bytes)
Route Advertisement: RD
• VPN customer IPv4 prefix is converted into a VPNv4 prefix
by appending the RD to the IPv4 address
• PE devices use MP-BGP to advertise the VPNv4 address
VPNv4 Prefixes on PE:
100:1:10.1.1.0
VPNA
200:1:10.1.1.0
10.1.1.0/24 CE
VRF A
RD: 100:1
PE
MPLS Backbone
VPNB VRF B
CE
10.1.1.0/24 RD: 200:1
10
5
1/18/17
What is RT
• Route Target is a BGP extended community attribute, is
used to control VPN routes advertisement.
Type 0 100:1
Example:
Type 1 192.168.1.1:1
11
Route Advertisement: RT
VRF A:
200:1:10.1.1.0/24
RT: 200:1, 300:1 VRF B:
CE CE
VPNB
VPNA
MPLS Network
VPNB
10.1.1.0/24 CE PE1 PE2 VPNA
CE
12
6
1/18/17
13
VPN Label
VRF B:
200:1:10.1.1.0/24
200:1:10.1.1.0/24 RT: 200:1, 300:1
RT: 200:1, 300:1
Out Label: 100
Local Label: 100
CE MP-iBGP CE
VPNB
VPNA
VPNB
CE PE1 PE2 VPNA
MPLS Network
10.1.1.0/24 CE
14
7
1/18/17
10.1.1.0/24 CE1
2 P P
CE2
10.1.1.0/24
Next-Hop=CE-1
P P
1 PE1 PE2
MPLS Backbone
15
10.1.1.0/24 CE1 5
2 P P 4
CE2
10.1.1.0/24
Next-Hop=CE-1
P P
1 PE1 PE2
MPLS Backbone
4. PE2 receives and checks whether the RT=200:1 is locally configured as ‘import RT’
within any VRF, if yes, then
– PE2 translates VPNv4 prefix back to IPv4 prefix
– Updates the VRF CEF Table for 10.1.1.0/24 with label=100
5. PE2 advertises this IPv4 prefix to CE2 (using whatever routing protocol)
16
8
1/18/17
Local Out Out Local Out Out Local Out Out Local Out Out
Prefix Prefix Prefix Prefix
Label Interface Label Label Interface Label Label Interface Label Label Interface Label
Pop- Pop-
1.1.1.1/32 - - 50 1.1.1.1/32 Eth0/1 25 1.1.1.1/32 Eth0/0 50 - 1.1.1.1/32 Eth0/1 25
Label Label
• LDP runs on the MPLS backbone network to build the public LSP. The
tunnel label is also called transport label or public label.
• Local label mapping are sent to connected nodes. Receiving nodes
update forwarding table.
17
Data Plane
Site 1 Site 2
CE1
10.1.1.0/24 CE2
P3 P4
PE1 PE2
10.1.1.1 10.1.1.1 IP Packet
P2
IP Packet 100 10.1.1.1 P1
18
9
1/18/17
Configuration Example
• Task: Configure MPLS L3VPN on Cisco IOS (Version 15.2) to
make the following CEs communication with each other.
• Prerequisite configuration:
– 1. IP address configuration on PE & P routers
– 2. IGP configuration on PE & P routers
• Make sure all the routers in public network can reach each other.
19
ip cef
mpls ldp router-id loopback 0
interface ethernet1/0
mpls ip
mpls label protocol ldp
interface ethernet1/1
mpls ip
mpls label protocol ldp
20
10
1/18/17
Configure VRF
• Configuration steps:
– 2. Configure VRF instance on PE routers
vrf definition VPNA
rd 100:10
route-target export 100:10
route-target import 100:10
!
address-family ipv4
exit-address-family
!
21
Configure MP-iBGP
• Configuration steps:
– 3. Activate VPNv4 address family on PE routers
router bgp 100
neighbor 4.4.4.4 remote-as 100
neighbor 4.4.4.4 update-source loopback 0
!
address-family vpnv4
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community both
exit-address-family
!
22
11
1/18/17
24
12
1/18/17
25
Configuration Example
• Task: Configure MPLS L3VPN on Huawei VRP (Version 5.1) to
make the following CEs communication with each other.
• Prerequisite configuration:
– 1. IP address configuration on PE & P routers
– 2. IGP configuration on PE & P routers
• Make sure all the routers in public network can reach each other.
VPNA VPNA
MPLS Network
26
13
1/18/17
27
Configure VRF
• Configuration steps:
– 2. Configure VRF instance on PE routers
[PE1] ip vpn-instance VPNA
[PE1-vpn-instance-VPNA] ipv4-family
[PE1-vpn-instance-VPNA-af-ipv4] route-distinguisher 100:10
[PE1-vpn-instance-VPNA-af-ipv4] vpn-target 100:10 both
IVT Assignment result:
Info: VPN-Target assignment is successful.
EVT Assignment result:
Info: VPN-Target assignment is successful.
[PE1-vpn-instance-VPNA-af-ipv4] quit
28
14
1/18/17
Configure MP-iBGP
• Configuration steps:
– 3. Enable MP-iBGP neighbors in vpnv4 address-family on PE routers
[PE1] bgp 100
[PE1-bgp] peer 4.4.4.4 as-number 100
[PE1-bgp] peer 4.4.4.4 connect-interface loopback 0
[PE1-bgp] ipv4-family vpnv4
[PE1-bgp-af-vpnv4] peer 4.4.4.4 enable
[PE1-bgp-af-vpnv4] quit
[PE1-bgp] quit
29
30
15
1/18/17
31
32
16
1/18/17
33
34
17
1/18/17
Thank You!
END OF SESSION
36
18