Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

7/26/2021 MPLS Layer 3 VPN PE-CE RIP

Get Full Access to our 731 Cisco Lessons Now Start $1 Trial

Search … 

You are here: Home » MPLS

MPLS Layer 3 VPN PE-CE RIP 

Lesson Contents Course Contents


1. Configuration MPLS

1.1. IGP and LDP


1.2. VRFs on the PE Routers  Unit 1: Introduction

1.3. IBGP between PE1 and PE2  Unit 2: LDP (Label Distribution Protocol)

 Unit 3: MPLS VPN

In my previous lessons I explained the basics of MPLS L3 VPNs and I explained in detail VRFs (Virtual Routing and Forwarding)

how to configure it. This time, we are going to configure MPLS VPN PE-CE with RIP as the MPLS L3 VPN Explained

routing protocol between the customer and service provider. MPLS L3 VPN Configuration

MPLS L3 VPN BGP Allow AS in


RIP is a simple routing protocol and easy to implement with MPLS VPN. Here’s the MPLS L3 VPN BGP AS Override
topology we will use: MPLS L3 VPN PE-CE RIP

MPLS L3 VPN PE-CE EIGRP

MPLS L3 VPN PE-CE OSPF

MPLS L3 VPN PE-CE OSPF Default Route

MPLS L3 VPN PE-CE OSPF Global Default


Route

MPLS L3 VPN PE-CE OSPF Sham Link

VRF Lite Route Leaking

MPLS VPN Extranet Route Leaking

MPLS VPN VRF Export Map

MPLS VPN VRF Import Map

MPLS over FlexVPN

 Unit 4: MPLS L2 Encapsulation

 Unit 5: IPv6 MPLS

https://networklessons.com/mpls/mpls-layer-3-vpn-pe-ce-rip 1/5
7/26/2021 MPLS Layer 3 VPN PE-CE RIP

This is the same topology that I used in my previous examples. Let’s see what the
configuration is like… Get Full Access to our 731 Cisco Lessons Now Start $1 Trial

1. Configuration
1.1. IGP and LDP
We will start with the configuration of the service provider network, we’ll have to
configure an IGP (OSPF) and LDP on the PE1, P and PE2 router. Let’s add some loopbacks
that are required for LDP:

PE1(config)#interface loopback 0

PE1(config-if)#ip address 2.2.2.2 255.255.255.255

P(config)#interface loopback 0

P(config-if)#ip address 3.3.3.3 255.255.255.255

PE2(config)#interface loopback 0

PE2(config-if)#ip address 4.4.4.4 255.255.255.255

Now we can configure OSPF:

PE1(config)#router ospf 1

PE1(config-router)#network 192.168.23.0 0.0.0.255 area 0

PE1(config-router)#network 2.2.2.2 0.0.0.0 area 0

PE1(config-router)#mpls ldp autoconfig

P(config)#router ospf 1

P(config-router)#network 192.168.23.0 0.0.0.255 area 0

P(config-router)#network 192.168.34.0 0.0.0.255 area 0

P(config-router)#network 3.3.3.3 0.0.0.0 area 0

P(config-router)#mpls ldp autoconfig

PE2(config)#router ospf 1

PE2(config-router)#network 192.168.34.0 0.0.0.255 area 0

PE2(config-router)#network 4.4.4.4 0.0.0.0 area 0

PE2(config-router)#mpls ldp autoconfig

This time I used the mpls ldp autoconfig command to automatically enable LDP for all
OSPF enabled interfaces. Let’s do a quick check to see if LDP is enabled:

P#show mpls ldp neighbor | include Peer

Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 3.3.3.3:0

Peer LDP Ident: 4.4.4.4:0; Local LDP Ident 3.3.3.3:0

Our P router in the middle has two neighbors so this is looking good. Just in case, let’s
verify if there is connectivity between PE1 and PE2:

https://networklessons.com/mpls/mpls-layer-3-vpn-pe-ce-rip 2/5
7/26/2021 MPLS Layer 3 VPN PE-CE RIP

PE1#traceroute 4.4.4.4 source loopback 0

Get Full Access to our 731 Cisco Lessons Now Start $1 Trial
Type escape sequence to abort.

Tracing the route to 4.4.4.4

VRF info: (vrf in name/id, vrf out name/id)

1 192.168.23.3 [MPLS: Label 17 Exp 0] 0 msec 0 msec 4 msec

2 192.168.34.4 0 msec 0 msec *

PE1 and PE2 are able to reach each other and you can see we are using label switching.

1.2. VRFs on the PE Routers


Our next step in the configuration is to configure the VRFs. I will use a VRF called
“CUSTOMER”, the route distinguisher and route-target will be 1:1.

PE1 & PE2

(config)#ip vrf CUSTOMER

(config-vrf)#rd 1:1

(config-vrf)#route-target both 1:1

Don’t forget to add the interfaces facing the customer routers into the VRF:

PE1(config)#interface FastEthernet 0/0

PE1(config-if)#ip vrf forwarding CUSTOMER

PE1(config-if)#ip address 192.168.12.2 255.255.255.0

PE2(config)#interface FastEthernet 0/1

PE2(config-if)#ip vrf forwarding CUSTOMER

PE2(config-if)#ip address 192.168.45.4 255.255.255.0

Let’s check if the PE routers are able to ping the CE routers from the VRF:

PE1#ping vrf CUSTOMER 192.168.12.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

PE2#ping vrf CUSTOMER 192.168.45.5

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.45.5, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms

So far so good…

1.3. IBGP between PE1 and PE2


Our two PE routers require iBGP to exchange the VPNv4 routes. Let’s configure this:

We're Sorry, Full Content Access is for Members Only...


If you like to keep on reading, Become a Member Now! Here is why:
https://networklessons.com/mpls/mpls-layer-3-vpn-pe-ce-rip 3/5
7/26/2021 MPLS Layer 3 VPN PE-CE RIP

 Learn any CCNA, CCNP and CCIE R&S Topic. Explained As Simple As Possible.
GetYou’ve
 Try for Just $1. The Best Dollar Full Access to our
Ever Spent on731
YourCisco
CiscoLessons
Career! Now Start $1 Trial
 Full Access to our 731 Lessons. More Lessons Added Every Week!
 Content created by Rene Molenaar (CCIE #41726)

Give Membership a try - it's just $1 ►

491 Sign Ups in the last 30 days

100% Satisfaction Guaranteed!

You may cancel your monthly membership at any time.

No Questions Asked!

« Previous Lesson

MPLS L3 VPN BGP AS


Override
Next Lesson
MPLS L3 VPN PE-CE EIGRP »

Forum Replies


haiminh8811

Thanks for great lesson.

I’m quite new to Vpn l3. Could you explain about label stack of vpn packet when it travels from CE1 to PE1, then through isp , then out on PE2, then to
CE2. Tks !!


ReneMolenaar

Hi Zeeshan,

In an MPLS PE-CE scenario, you can use IGPs or BGP. Even static routes are possible.

Rene


lagapides

Hello Shang

This behaviour is normal. Not only that, it is actually desired. The whole purpose of the MPLS Layer 3 VPN is to be able to create a transparent MPLS VPN
between the two CE routers as if they are directly connected to each other. You’ve configured the Loopback to participate in the RIP routing, but you’ve
also configured the ip vrf forwarding CUSTOMER VRF on the customer facing Fa0/0 interface and the mpls ldp autoconfig on the network facing
interface. This will cause all additional network interfaces to be “inside the VPN” and not visible to t

... Continue reading in our forum


risyou

https://networklessons.com/mpls/mpls-layer-3-vpn-pe-ce-rip 4/5
7/26/2021 MPLS Layer 3 VPN PE-CE RIP

Hello lagapides

Get Full
Thank you for your kindly explaination.
Access to our 731 Cisco Lessons Now Start $1 Trial
I also find some hint in the next few lessons.


ReneMolenaar

Hello Viral,

You’ll need an IGP so that your IBGP routers know how to reach each other. Here is an example:

https://networklessons.com/bgp/internal-bgp-border-gateway-protocol-explained

Another IGP is no problem, you could use EIGRP or IS-IS.

Rene

 10 more replies! Ask a question or join the discussion by visiting our Community Forum

© 2013 - 2021 NetworkLessons.com Disclaimer Privacy Policy Support About

https://networklessons.com/mpls/mpls-layer-3-vpn-pe-ce-rip 5/5

You might also like