Professional Documents
Culture Documents
Ipv6 Over Mpls 6pe - 6vpe
Ipv6 Over Mpls 6pe - 6vpe
Get Full Access to our 731 Cisco Lessons Now Start $1 Trial
Search …
1.1. 6PE
1.1.1. PE Routers Unit 1: Introduction
On the PE routers, we use MP-BGP to exchange IPv6 prefixes and the LSP (Label
Switched Path) is based on IPv4. This allows service providers to offer IPv6 to their
customers without making major changes to the core of their MPLS network.
To achieve this, a small modification to MP-BGP was needed. The LSP between the PE
routers is based on IPv4 so the next hop addresses are IPv4 addresses. When a PE router
advertises an IPv6 prefix through MP-BGP to another PE router, it embeds the IPv4
address in the IPv6 next hop address so that a PE router knows which IPv4 address (and
thus which label) to use to get to the other PE router.
In this lesson, I’ll show you how to configure 6PE and 6VPE.
1. Configuration
Here is the topology we will use:
https://networklessons.com/mpls/ipv6-over-mpls-6pe-6vpe 1/16
7/26/2021 IPv6 over MPLS 6PE/6VPE
Get Full Access to our 731 Cisco Lessons Now Start $1 Trial
Above, we have a service provider in AS234 with two PE routers and one P router, the
MPLS core is based on IPv4. The SP has a customer that is ready to use IPv6. On each CE
router, there is a loopback with an IPv6 address. Between the PE-CE routers, we are
going to use MP-BGP to advertise those IPv6 prefixes so that we have connectivity
between CE1 and CE2.
Configurations
Want to take a look for yourself? Here you will find the startup configuration of each
device.
CE1
hostname CE1
ip cef
interface Loopback0
interface GigabitEthernet0/1
end
CE2
https://networklessons.com/mpls/ipv6-over-mpls-6pe-6vpe 2/16
7/26/2021 IPv6 over MPLS 6PE/6VPE
hostname CE2
Get Full Access to our 731 Cisco Lessons Now Start $1 Trial
!
ip cef
interface Loopback0
interface GigabitEthernet0/0
interface GigabitEthernet0/1
end
P
hostname P
ip cef
interface Loopback0
interface GigabitEthernet0/1
interface GigabitEthernet0/2
router ospf 1
end
PE1
https://networklessons.com/mpls/ipv6-over-mpls-6pe-6vpe 3/16
7/26/2021 IPv6 over MPLS 6PE/6VPE
hostname PE1
Get Full Access to our 731 Cisco Lessons Now Start $1 Trial
!
ip cef
interface Loopback0
interface GigabitEthernet0/1
interface GigabitEthernet0/2
router ospf 1
bgp log-neighbor-changes
end
PE2
hostname PE2
ip cef
interface Loopback0
interface GigabitEthernet0/1
interface GigabitEthernet0/2
router ospf 1
bgp log-neighbor-changes
end
With the configuration above, I have an LSP between PE1 and PE2. These two PE routers
are MP-BGP neighbors:
https://networklessons.com/mpls/ipv6-over-mpls-6pe-6vpe 4/16
7/26/2021 IPv6 over MPLS 6PE/6VPE
Get Full Access to our 731 Cisco Lessons Now Start $1 Trial
BGP router identifier 2.2.2.2, local AS number 234
4.4.4.4 4 234 65 65 1 0 0
00:55:23 0
2.2.2.2 4 234 66 66 1 0 0
00:55:59 0
We can see the transport labels that are used between PE1 (2.2.2.2) and PE2 (4.4.4.4):
18 17 4.4.4.4/32 0 Gi0/2
192.168.23.3
17 16 2.2.2.2/32 0 Gi0/2
192.168.34.3
Now let’s see if we can get IPv6 traffic over this network.
1.1. 6PE
https://networklessons.com/mpls/ipv6-over-mpls-6pe-6vpe 5/16
7/26/2021 IPv6 over MPLS 6PE/6VPE
Let’s start with 6PE, this is where we use the global IPV6 routing table on the PE routers.
Get Full Access to our 731 Cisco Lessons Now Start $1 Trial
1.1.1. PE Routers
Let’s start with PE1. There are a couple of things I need to do:
PE1(config)#ipv6 unicast-routing
PE1(config-router)#address-family ipv6
PE2(config)#ipv6 unicast-routing
PE2(config-router)#address-family ipv6
1.1.2. CE Routers
The configuration of the CE routers is pretty straightforward. We configure MP-BGP for
IPv6 and advertise the IPv6 prefix on the loopback interface. Let’s start with CE1:
https://networklessons.com/mpls/ipv6-over-mpls-6pe-6vpe 6/16
7/26/2021 IPv6 over MPLS 6PE/6VPE
CE1(config)#ipv6 unicast-routing
Get Full Access to our 731 Cisco Lessons Now Start $1 Trial
CE1(config)#router bgp 1
CE1(config-router)#address-family ipv6
CE1(config-router-af)#network 2001:DB8:1:1::1/128
CE2(config)#ipv6 unicast-routing
CE2(config)#router bgp 5
CE2(config-router)#address-family ipv6
CE2(config-router-af)#network 2001:DB8:5:5::5/128
1.2. Verification
Let’s verify our work. Let’s start with the PE routers to see if MP-BGP has exchanged any
prefixes:
*> 2001:DB8:1:1::1/128
2001:DB8:0:12::1
0 0 1 i
*>i 2001:DB8:5:5::5/128
::FFFF:4.4.4.4 0 100 0 5 i
We see two entries on the PE router. The 2001:DB8:1:1::1/128 prefix we learned from
CE1 and the 2001:DB8:5:5::5/128 prefix we learned from PE2. Take a good look at the
next hop address for that second prefix, it has IPv4 address 4.4.4.4 embedded in it.
4.4.4.4 is the IPv4 address on the loopback of the PE2 router which is used for our LSP.
This is how the PE1 router is able to figure out what LSP to use if it wants to reach
2001:DB8:5:5::5/128.
https://networklessons.com/mpls/ipv6-over-mpls-6pe-6vpe 7/16
7/26/2021 IPv6 over MPLS 6PE/6VPE
Get Full Access to our 731 Cisco Lessons Now Start $1 Trial
BGP routing table entry for 2001:DB8:5:5::5/128, version 6
Advertised to update-groups:
Refresh Epoch 1
Above, we see the next hop again but also the VPN label (19) that is used to reach this
prefix. You can also use the show bgp ipv6 unicast labels command to see the labels
that are used:
2001:DB8:1:1::1/128
2001:DB8:0:12::1
19/nolabel
2001:DB8:5:5::5/128
::FFFF:4.4.4.4 nolabel/19
With 6PE, prefixes are installed in the global IPv6 routing table. Let’s take a look:
B 2001:DB8:1:1::1/128 [20/0]
B 2001:DB8:5:5::5/128 [200/0]
Above, we see the two prefixes in the global IPv6 routing table. Let’s take a look at the
PE2 router:
*>i 2001:DB8:1:1::1/128
::FFFF:2.2.2.2 0 100 0 1 i
*> 2001:DB8:5:5::5/128
2001:DB8:0:45::5
0 0 5 i
https://networklessons.com/mpls/ipv6-over-mpls-6pe-6vpe 8/16
7/26/2021 IPv6 over MPLS 6PE/6VPE
PE2 uses ::FFFF:2:2:2:2 as the next hop address for 2001:DB8:1:1::1/128. That’s the IPv4
GetofFull
address on the loopback interface the Access to our
PE1 router, 731
that Cisco
is used forLessons
the LSP.Now Start $1 Trial
Advertised to update-groups:
Refresh Epoch 1
2001:DB8:1:1::1/128
::FFFF:2.2.2.2 nolabel/19
2001:DB8:5:5::5/128
2001:DB8:0:45::5
19/nolabel
B 2001:DB8:1:1::1/128 [200/0]
B 2001:DB8:5:5::5/128 [20/0]
The PE routers look good, everything we need is there. Let’s take a look at the CE routers:
B 2001:DB8:5:5::5/128 [20/0]
B 2001:DB8:1:1::1/128 [20/0]
Each CE router has a BGP route. Let’s see if we can ping from one loopback interface to
another:
https://networklessons.com/mpls/ipv6-over-mpls-6pe-6vpe 9/16
7/26/2021 IPv6 over MPLS 6PE/6VPE
Get Full Access to our 731 Cisco Lessons Now Start $1 Trial
Type escape sequence to abort.
!!!!!
Our ping is successful, if we want to see the labels then we can use a traceroute:
CE1#traceroute
Priority [0]:
1 2001:DB8:0:12::2 7 msec
4 2001:DB8:0:45::5 8 msec
This is looking good. We see the VPN label (19) and the transport label (17) in this output.
Configurations
Want to take a look for yourself? Here you will find the startup configuration of each
device.
CE1
https://networklessons.com/mpls/ipv6-over-mpls-6pe-6vpe 10/16
7/26/2021 IPv6 over MPLS 6PE/6VPE
hostname CE1
Get Full Access to our 731 Cisco Lessons Now Start $1 Trial
!
ip cef
ipv6 unicast-routing
ipv6 cef
interface Loopback0
interface GigabitEthernet0/0
interface GigabitEthernet0/1
ipv6 enable
router bgp 1
bgp log-neighbor-changes
address-family ipv4
exit-address-family
address-family ipv6
network 2001:DB8:1:1::1/128
exit-address-family
end
CE2
https://networklessons.com/mpls/ipv6-over-mpls-6pe-6vpe 11/16
7/26/2021 IPv6 over MPLS 6PE/6VPE
hostname CE2
Get Full Access to our 731 Cisco Lessons Now Start $1 Trial
!
ip cef
ipv6 unicast-routing
ipv6 cef
interface Loopback0
interface GigabitEthernet0/1
router bgp 5
bgp log-neighbor-changes
address-family ipv4
exit-address-family
address-family ipv6
network 2001:DB8:5:5::5/128
exit-address-family
end
P
hostname P
ip cef
interface Loopback0
interface GigabitEthernet0/1
interface GigabitEthernet0/2
router ospf 1
end
PE1
https://networklessons.com/mpls/ipv6-over-mpls-6pe-6vpe 12/16
7/26/2021 IPv6 over MPLS 6PE/6VPE
hostname PE1
Get Full Access to our 731 Cisco Lessons Now Start $1 Trial
!
ip cef
ipv6 unicast-routing
ipv6 cef
interface Loopback0
interface GigabitEthernet0/1
interface GigabitEthernet0/2
router ospf 1
bgp log-neighbor-changes
address-family ipv4
exit-address-family
address-family ipv6
exit-address-family
end
PE2
https://networklessons.com/mpls/ipv6-over-mpls-6pe-6vpe 13/16
7/26/2021 IPv6 over MPLS 6PE/6VPE
hostname PE2
Get Full Access to our 731 Cisco Lessons Now Start $1 Trial
!
ip cef
ipv6 unicast-routing
ipv6 cef
interface Loopback0
interface GigabitEthernet0/1
interface GigabitEthernet0/2
router ospf 1
bgp log-neighbor-changes
address-family ipv4
exit-address-family
address-family ipv6
exit-address-family
end
1.3. 6VPE
Now let’s try the 6VPE configuration. I’ll use the same startup configuration I showed in
the beginning of this lesson.
https://networklessons.com/mpls/ipv6-over-mpls-6pe-6vpe 14/16
7/26/2021 IPv6 over MPLS 6PE/6VPE
Get Full Access to our 731 Cisco Lessons Now Start $1 Trial
1.3.1. PE Routers
6VPE uses VRFs so that’s the first thing I am going to configure. We’ll create a VRF called
“CUSTOMER” and use RD 1:1:
PE1(config-vrf)#rd 1:1
PE1(config-vrf)#address-family ipv6
Make sure IPv6 unicast routing is enabled before you configure MP-BGP:
PE1(config)#ipv6 unicast-routing
Now we can configure MP-BGP. I need to enable the VPNv6 address family and activate
the PE2 router. We also need to configure the CE router as a neighbor under the VRF:
Learn any CCNA, CCNP and CCIE R&S Topic. Explained As Simple As Possible.
Try for Just $1. The Best Dollar You’ve Ever Spent on Your Cisco Career!
Full Access to our 731 Lessons. More Lessons Added Every Week!
Content created by Rene Molenaar (CCIE #41726)
No Questions Asked!
« Previous Lesson
Forum Replies
tomkbui27
https://networklessons.com/mpls/ipv6-over-mpls-6pe-6vpe 15/16
7/26/2021 IPv6 over MPLS 6PE/6VPE
Hi,
Get Full Access to our 731 Cisco Lessons Now Start $1 Trial
what is the send label command do? is it allowing the PE routers to add the transport label and the VPN label to IPv6 prefixes and then forward to other
PE routers?
gazwoz
ReneMolenaar
Hello Zaman,
https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/z/45deac/40.png
Zaman.rubd:
Why VPN label is needed in 6PE solution. I think only IPV4 LSP is enough . Please clear me if any logic here
The VPN label solves the same issue as with “regular” MPLS VPN:
https://networklessons.com/cisco/ccie-routing-switching-written/mpls-layer-3-vpn-explained
The VPN label helps the PE router to figure out to which RT/VRF the packet belongs.
https://cdn-forum.networklessons.com/letter_avatar_p
Zaman.rubd
Hi Laz ,
Still I can’t understand the logic behind the use of VPN label for 6PE scenario.Can you please help to understandable it again ? Appreciate your very nice
cooperation as always .Thx
BR//ZAMAN
denis.grinceac
Hi, there.
Not really a question but just a comment in regards to the second video (6vPE). The voice is audible on the left channel only. It is still fine but probably
worth to reupload the video with fixed voice track.
12 more replies! Ask a question or join the discussion by visiting our Community Forum
https://networklessons.com/mpls/ipv6-over-mpls-6pe-6vpe 16/16