Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Clase 18. Mpls 6pe Es-Es2023
Clase 18. Mpls 6pe Es-Es2023
RE DATOS II
espoch
AS 65000
2001: 212::/64 2001:4 45::/64
R1 R5
20D1:1111::1/1Z8
MPLS -
6PE
Alberto Arellano A. Ing. Msc.
eaiasrellanooch edu
ec
CCNA - CCNP - CCSP - LPI - JNCIA
6PE RFC 4798 - 02 2007
• Proveedor IPv6 Edge
• Un método para proporcionar conectividad IPv6 a sus
clientes sin actualizar toda la red a IPv6.
• 6PE utiliza la tabla de enrutamiento global lPv6 en los
routers PE
• Proporciona conectividad global IPv6 a través de un núcleo
IPv4-MPLS
• Mecanismo de transición para proporcionar acceso
unicast IPv6 sobre MPLS con señalización IPv4
• Mecanismo de coexistencia para combinar servicios
IPv4 e IPv6 en una red troncal MPLS
• Como otras tecnoIogías "tunneI" IPv6, permite
servicios como:
• "Acceso a Internet IPv6"
• Conectividad entre iguales
• Acceso a servicios IPv6 suministrados por el propio SP
6PE
Sesiones MP-BGP
2001:0620:: jp g 2001:042
IPv6
145.95.0.0 Ë4 V* 2001:0421::
2001:0621:: IPv6
IPv4
-" 192.254.10.0
V6: V6:
ICPIBGP lGPv4 IGPIBCP
MPLS V4:
- LDPv4
- (TE v4)
PE RoutinDistribución de
etiquetas
2001:DB :
6PE-1 2001:F0DD::
200.11.11.1
0.1
6PE Avance 6PE-1
2001:DB8::
PE-1 20D1:ALIME
NTOS::
6PE Forwardin
2001:DBB::
6PE-1 2001:
F00
6PE Forwardin P2
2001:DB8::
2001:F00
6PE Avance 6PE-2
2001:DB8::
6PE 1 2001:COMID
A::
Interacciones en
6PE
• Red de clientes
• Fomento: IPv6
• Enrutamiento: IGPv6 (IS-IS, OSPF),
estático
• PE-CE
• Fomento: IPv6
• Enrutamiento: eBGP, IGPv6 (IS-IS, OSPF),
estático
• PE-PE
• Fomento: MPLS
• Enrutamiento: MP-BGP, IGP
• Distribución de etiquetas: MP-BGP (v6),
LDP (v4)
6PE Confi uración
2001:DB8::
cef ipv6 Sesión iBGP
6PE-2
router bgp 100
6PE-1
sin sincronización
no bgp default ipv4 unicast
vecino 2001:DB8:1: :1 remote-as 65014 2001:DB8.1::1 Es el CE local
200.10.10.1 Es el 6PE remoto
vecino 200.10.10.1 remote-as 100
neighbor 200.10.10.1 update-source Loopback0
address-family ipv6
vecino 200.10.10.1 activar
neighbor 200.10.10.1 send-label Enviar etiquetas junto con
neighbor 2001:DB8:1: :1 prefijos IPv6 mediante
MP-BGP Nota. ¡Wil!
activate redistributR connected Causa Sesión a Flap
no synchronization
exit-address-family
Examen 6PE
PROVEEDOR DE SERVICIOS
HPLS IPv4= 10.10.X.0/ 24
OSPF 10
ASH-5oo
5 eŒ/Œ
e0/ł
100a:l:A:l::/d4 1001:l:B:I::/M
eR/ł
Z001: Z:A:1: :/b4 1001:2:B:1::/G4
etho
eEhO j
UbunCu-1
ASN-300 ASN-400
Autoconfiguración LDP
La función de autoconfiguración MPLS LDP permite
configurar globalmente el protocolo de distribución de
etiquetas (LDP) en cada interfaz asociada a una pasarela
interior específica.
Protocol (IGP) instancia. ,
P conf1g)#opIslabel rango tasa la
P-1(config)#mp1s Idp router-id lot forzar
P-1(config)#router ospf 1e
P-1(conf1g- router}#router-Id 1. 1.1. 1
P-1(conf1g- router)# np1s 1dp autoconf1g
P-2(conf1g)#inp1s label range 2ee zge P-1(conf1g-router)#ex1t
P-2(conf1g)#npIs 1dp router-Id lot force
P-2(conf1g)#router ospf IN
P-2(conf1g-router)#router-Id 2.2.2.2 P-3(conf1g)#np1s IaIzeI rango 3ee 3ge
P-2(conf1g- router)#mp1s Idp P-3(config)#mpls ldp router-id lot forzar
autoconf1g P-2(conf1g- router)#ex1t P-3(conf1g)#router ospf le
P-3(conf1g-router}#router-1d 3.3.3.3
P-3(conf1g- router) 'npJs Idp
autoconf1g P-3(conf1g- router)#exs.t
PE-1 MPLS Confi
PE-1#
PE-1#conf I
Introduzca los comandos deconf1gurat1on, unopor 11ne.
Finalice con CNTL/Z. PE-
1(conf1g)#1pvd unicast- rout1ng
PE-1(conf1g)olnt zoe
PE-1(conf1g-1f)#1p add 7. 7. 7. 7 255.255.255.255
PE-1(conf1g-1f)#1p ospf 1e a rea e
PE-1(conf1g-1f)#ex1t
PE-1(conf1g)#1nt ed/e
PE-1(conf1g-1f)#1p add 1e. 1e.2.2 255.255.255. e
PE-1(conf1g-1f)#no shut
PE-1(conf1g-1f)#1p ospf 1e a rea e
PE-1(conf1g-1f)#ex1t
PE-1(conf1g)#1nt ed/1
PE-1(conf1g-1f)#1pvB add 2ee1:1:A:1: :1/64
PE-1(conf1g-1f)#1pvB add fete: : 2 11nk-local
PE-1(conf1g-1f)#no shut
PE-1(conf1g-1f)#ex1t
PE-1(conf1g)#op1s label range ver ver
PE-1(conf1g)#zip1s 1dp router-1d lot
fuerz
a PE-1(conf1g)#router ospf 1e
PE-1(conf1g- router)#router-1d 7.7.7.7 PE-
1(conf1g- router)#inp1s Idp autoconf1g PE-
1(conf1g- router)#ex1t
PE-1(conf1g)#
PE-2 MPLS Confi
PE-2#
PE-2#conf I
Introduzca los comandos deconf1gurat1on, unopor cada11ne.
Terminecon CNTL/Z. PE-
2(conf1g)#1pvd un1cast- routing
PE-2(conf1g)#1nt lote
PE-2(conf1g-1f)#1p add g. g. g. g 2ss.255.255.25s
PE-2(conf1g-1f)#1p ospf IN área £/
PE-2(conf1g-1f)#ex1t
PE-2(conf1g)#1nt ed/e
PE-2(conf1g-1f)#1p add 1e. 1e. 5.2 255.255.255. e
PE-2(conf1g-1f)#no sbut
PE-2(conf1g-1f)#1p ospf IN area e
PE-2(conf1g-1f)#ex1t
PE-2(conf1g)#1nt ed/1
PE-2(conf1g-1f)#1pv5 add 2ee1:1: B:1: :1/64 PE-
2(conf1g-1f)#1pvB add fete:: s fink-local PE-
2(conf1g-1f)#no sbut
PE-2(conf1g-1f)#ex1t
PE-2(conf1g)#inp1s label range ver ver
PE -2(conf1g)#iopIs Idp router-Id lot forzar
PE-2(conf1g)#router ospf IN
PE-2(conf1g- router)#router-1d g.g.g.g
PE-2(conf1g- router)#opIs Idp autoconf1g
PE-2(conf1g- router)#ex1t
PE -2(conf1g)#
CE-1 MP-BGP
CE-1
CE-1#conf t
Introduzca los comandos de configuración, uno por línea. Termine con
CNTL/Z.
CE-1(config)#ipv6 unicast-routing
CE-1(config)#int ed/e
CE-1(config-if)#ipv6 add 2ee1:1:A:1::2/64
CE-1(config-if)#ipv6 add fells:1 link-
local CE-1(config-if)#no shut
CE-1(config-if)#salir
CE-1(config)#int et/1
CE-1(config-if)#ipv6 add 2ee1:2:A:1::1/64
CE-1(config-if)#no
shut CE-1(config-
if)#exit
CE-1(config)#router bgp 3ee
CE-1(config-router)#bgp router-id 1.1.1.2
CE-1(config-router)#no bgp default ipv4-unicast
CE-1(config-router)#neighbor 2ee1:1:A:1::1 remote-as 5ee
CE-1(config-router)#address-family ipv6 unicast
CE-1(config-router-af)#neighbor 2ee1:1:A:1::1
activate CE-1(config-router-af)#network
2ee1:2:A:1::/64
CE-1(config-router-
af)#salir CE-1(config-
router)#salir CE-
1(config)#
CE-2 MP-BGP
CE-2#conf t
Introduzca conf1gurat1oncomnands, unopor. Terminew1tb
CNTL/Z. CE-2(conf1g)#1pvd un1cast - rout1ng
CE-2(conf1g)#1nt ee/e
CE-2(conf1g-1€)#1pvd add 2ee1:1: B:1: : 2/64
CE-2(conf1g-1€)#1pvd add fege: :4 1žnk-local
CE-2(conf1g-1f)#no shut
CE-2(conf1g-1€)#ex1t
CE-2(conf1g)#1nt e£//1
CE-2(conf1g-1f)#1pvd add 2ee1: 2: B:1: :1/64
CE-2(conf1g-1€)#no shut
CE-2(conf1g-1€)#ex1t
CE-2(conf1g)#router bgp 4ee
CE-2(conf1g-router)#bgp router -1d 1.1.1.3
CE-2(conf1g-router)#no bgp default 1pv4-un1cast
CE-2(conf1g- router)#ne1ghbor 2£/€/1:1: B:1: :1 reoote-as 5ee
CE-2(conf1g- router)#address-famlly 1pvd un1cast
CE-2(conf1g- router-af)#ne1ghbor 2ee1:1: B:1: :1 act1vate
CE-2(conf1g- router-af)#network 2ee1: 2: B:1: :/64
CE-2(conf1g-router-af)#ex1t
CE-2(conf1g- router)#ex1t
CE-2(conf1g)#ex1t
PE-1&PE-2 MP-BGP
PE -1(conf1g)#rout:er bgp 5ee
PE -1(conf1g-router)#no bgp default 1pv4-unicast
PE-1(conf1g- router)#ne1ghbor g. g. g. g remote-as véase
PE -1(conf1g- router)#ne1ghbor g. g.g. g updat:e-source Loopbacke
PE -1(conf1g- router)#ne1ghbor 2ee1:1:A:1: : 2 reoot:e -as 3ee
PE -1(conf1g-router)#address-family 1pvd unicast
PE-1(conf1g-router-af)#ne1ghbor 2ee1:1:A:1: : 2 activar
PE -1(conf1g- router - af)#ne1ghbor g. g. g. g
act:1vat:e PE -1(conf1g- router - a f)#ne1ghbor g. g. g.
g send -label PE-1(conf1g- router-af)#ex1t
PE -1(conf1g-router)#ex1t
PE -1(conf1g)#
PE-2(conf1g)#router bgp 5ee
PE-2(conf1g-router)#no bgp default 1pv4-un1cast
PE-2(conf1g- router)#ne1gbbor 7. 7. 7. 7 remote-as 5ee
PE-2(config-router)#neighbor 7 .7.7.7 update-source Loopbacke
PE-2(conf1g- router)#ne1gbbor 2ee1: 1: B: 1: : 2 remote-as 4ee
PE-2(conf1g-router)#address-€ao11y 1pv8 un1cast
PE-2(conf1g-router-af)#ne1gbbor 2ee1: 1: B: 1: : 2 act1vate
PE-2(conf1g-router-af)#ne1gbbor 7. 7. 7. 7 act1vate
PE-2(conf1g-router-af)#ne1gbbor 7. 7. 7. 7 send-label
PE-2(conf1g- router-af)#ex1t
PE-2(conf1g-
router)#ex1t PE-
2(conf1g)#
PE-1 Tabla BGP
PE-1#sh bgp 1pvd unicast
La versión de BGP taBIe es 6, ID del enrutador local es 7.7.7.7
Códigos de estado: s suppressed, d damped, h history, * valid, > best, i - internal, r
RIB-failure, S Stale, m multipath, b backup-path, RT-Filter, x
best-exte mail a add1t1ona1-path, c RIB-compressed,
senda secundaria,
Códigos de origen: i - IGP, e - EGP, 7 - incompleto
Códigos de validación RPKI: V válido, I no válido, N no encontrado
Trama 184: 126 bytes en el cable (1008 bits), 126 bytes capturados (1008 bits) en la interfaz 0
• Ethernet II, Src : aa:bb:cc:00:01:00 (aa:bb:cc:00:01:00), Dst: aa: bb:cc:00:02:00 (aa: bb:cc
:00:02:00) Destino: aa: bb:cc:00:02:00 (aa: bb:cc :00:02:00)
Origen: aa:bb:cc:00:01:00 (aa: bb:cc:00:01:00)
Tipo: Paquete conmutado por etiquetas MPLS
(0x8847)
• MultiProtocol Label Switching Header, Label: 205, Exp: 0, S: 0, TTL: 61
0000 0000 0000 1100 1101 . . . . . . . . . . . . . = Etiqueta MPLS: 205
000. . . . . . . . = Bits experimentales MPLS: 0
.0 . . . . . . . = MPLS Bottom Of Label Stack: 0
0011 1101 = MPLS TTL: 61
• MultiProtocol Label Switching Header, Etiqueta: 607, Exp: 0, S: 1, TTL: 62
0000 0000 0010 0101 1111 . . . . . . . . . . . . . = Etiqueta MPLS: 607
000. . . . . . . . = Bits experimentales MPLS: 0
.1 . . . . . . . = MPLS Bottom Of Label Stack: 1
. . . . . . . . . . . . . . . . . . . . 0011 1110 = MPLS TTL: 62
Internet Protocol Version 6, Src: 2001:2:a:1: :10, Dst: 2001:i:b:1: :10
Internet Control Message Protocol v6
bPE - H3C y Cisco
Loopback O
GE1/ 0 PE-2 2OD1
GE2/ D
PE-1 GE1/0,
LoopMcko OSPF 10
2001 ASN fi31OO
10.10.X.0/Z4
P2 P3 Y P4
P1(config)#int Ioe Pt(conf1g)#1nt ee/3
P1(conf1g-1f)#1p add 1.1. 1.1 255.255.255.255 P1(conf1g-1f)#1p add 1e. ae. g. i 255.255.255. e
P1(conf1g-1f)#1p osp£ 1e área e P1(config-if)#no shut
Pa(co "f1y-1fjsex1t Pt(confîg)#înt P1(conf1g-1f)#1p osp£ 1e área e
ee/e Pt(conf1g-1f)#ex1t
P1(conf1g-1f)#1p añadir 1e. 1e. 1. 1 255.255.255. P1(conf1g)#mpIs label range 12ee 13ee
e Pa(confîg-1f) "no shut P1(config)#mp1s ldp router-id loi force
P1(conf1g-1f)#1p osp£ 1e área e P1(config)#router ospf 1e
Pa(co "f1y-1fjsex1t P1(config-router)#router-id 1.1.1.1
P1(config) int ee/1 P1(config-router)#mp1s ldp autoconfig
P1(conf1g-1f)#1p añadir 1e. 1e. 2. 1 P1(conf1g-router)#exflt
255.255.255. e P1(conf1g)#
P1(config-if)#no shut
P1(conf1g-1f)#1p ospf 1e área e
Pa(co "f1y-1fjsex1t
P1(conf1g)#1nt ee/2
P1(conf1g-1f)#1p añadir 1e. 1e. 5. 1 255.255.255.
e Pa(confîg-1f) "no shut
Pt(conf1g-1f)#1p ospf 1e área e
Pa(co "f1y-1fjsex1t
¢HPE'systeio-v1ew
Sistema V1ew: volver a Usuario V1ew w1tb Ctrl+Z.
[HPE] sysnaioe PE-1
[PE-1] 1nterfaz 1oop6ack 1
[PE-1- LoopBack1] 1p add 5.5.5.5 32
[PE-1- LoopBack1] qult
[PE-1] 1nt g1ga 1/e
[PE-1-G1gab1tEthernet1/e] Ip add 1e. es decir,
g.2 24 [PE-1-G1gab1tEtbernet1/e] quit
[PE-1] 1nt g1ga 2/e
[PE-1-G1ga61tEtbernet2/e] 1pvB add 2ee1: 1: 1: 1: : 1
64 [PE-1-G1ga61tEtbernet2/e] quit
[PE-1] ospf 1e router-1d 5.5.5.5
[PE-1-ospf-1e] area e. e. e. e
[PE-1-ospf-1e-area-e. e. e. e] red 5.5.5.5 e. e. e. e
[PE-1-ospf-1e-area-e. e. e. e] network 1e. ie. g. e . e. e.
e.255 [PE-1-ospf-1e-area-e. e. e. e] qult
[PE-1-ospf-1e] qult
[PE-1] mpls Isr-Id
5.5.5.5 [PE-1] mpls 1dp
[PE-1-1dp] qult
[PE-1] 1nt g1ga 1/e
[PE-1-G1gab1tEtbernet1/e] mpls enable
[PE-1-G1gab1tEthernet1/e] mpls 1dp
enable [PE-1-G1gab1tEthernet1/e] quit
[PE-1] 1pv6 route-stat1c zeei:A:A:A: : 64 2ee1: 1:1:1: : 2
[PE-1]
Confioure PE-2
<HPE'systein-v1ew
Sistema V1ew: volver a Usar r V1ew con CI:rI+Z.
[HPE] sysnane PE-2
[PE-2] 1nter£ace 1oopback 1
[PE-2- LoopBack1] 1p add B.B. d. d 32
[PE-2- LoopBack1] qult
[PE-2] 1nt g1ga 1/e
[PE-2-G1gab1tEthernet1/e]1p add 1e. es decir, s.2 24
[PE-2-G1gab1tEthernet1/e]qult
[PE-2] 1nt g1ga 2/e
[PE-2-G1gab1tEthernet2/e]1pvB add 2eei:i:1:2::1 84
[PE-2-G1gab1tEthernet2/e]qult
[PE-2] ospf 1e router-1d s. 5.5.B
[PE-2-ospfie] area e. e. e. e
[PE-2-ospfie-area-e.e.e.e]red B. d. d. d e. e. e. e [PE-2-
ospfie-area-e.e.e.e]red 1e.1e. s. e. e . e . 255 [PE-2-ospfie-
area-e.e.e]qult
[PE-2-ospfie] qult
[PE-2] mpls 1sr-Id B.d.Hz. Cz
[PE-2] npls 1dp
[PE-2-1dp] qult
[PE-2]1nt g1ga 1/e
[PE-2-G1gab1tEthernet1/e]npls enable
[PE-2-G1gab1tEthernet1/e]mpls 1dp enable
[PE-2-G1gab1tEthernet1/e]qult
[PE-2] 1pv5 route-stat1c 2ee1: B: B: B: : e4 2ee1:1: 1: 2: : 2
[PE-2]
Confioure PE-2
[PE-1] display npls 1dp peer
Número total de peers: 1
Peer LDP ID Estado Papel GR MD5 KA enviado/recibido
z.z.z.z:e Operativo Activo Fue Fue 1/1
[PE-1] display npls tsp ra ra
FEC de de
1. 1. 1. 1/32
1. 1. 1. 1/32 Prof:o Etiqueta de Int:er£ace/Out: NHLFE
2.2.2.2/32 LDP entrada/sali GE1/e
2.2.2.2/32 LDP da GE1/e
3.3.3.3/32 1151/3
3.3.3.3/32 -/3
4.4.4.4/32 PLD 115e/12ee GE1/e
4.4.4.4/32 PLD -/12ee GE1/e
5.5.5.5/32 PLD 1149/12e2 GE1/e
8. 8. 8. 8/32 PLD -/12e2 GE1/e
8. 8. 8. 8/32 PLD "4g/'204 GE1/e
Ie.Ie.g.1 PLD -/1204 GE1/e
[PE-1] PLD 3/-
LDP 1147/12e7 GE1/e
LDP -/12e7 GE1/e
Local -/- GE1/e
Confioure CE1 & CE2
CE1#conf I:
Introduzca los comandos de conf1gurat1on, uno por 11ne.
Terminar con
CNTL/Z. CE1(conf1g)#1pv6 un1cast- routing
CE1(conf1g)#1nt loe
CE1(conf1g-1f)#1pvd add 2ee1:A:A:A: :1/64
CE1(conf1g-1f)#ex1t
CE1(conf1g)#1nt ed/e
CE1(conf1g-1£)#1pvB add 2ee1: 1: 1:1: : 2/64
CE1(conf1g-1f)#no
shut CE1(conf1g-
1f)#ex1t
CE1(conf1g)#1pvs ruta : :/e 2ee1: 1: 1:1:
:1 CE1(conf1g)#ex1t
CE14
CE2#conf t
Introduzca conf1gurat1onconnands, onepe r. Endwžtb CNTL/Z.
CE2(conf1g)#1pvčt un1cast- rout1ng
CE2(confžg)#1nt loe
CE2(conf1g-1f)#1pv6 add 2ee1: B:B:B: :1/64
CE2(conf1g-1f)#ex1t
CE2(conf1g)#1nt ee/e
CE2(conf1g-1f)#1pv6 add 2£'£'1:1:1: 2: : 2/64
CE2(conf1g-1f)#no shut
CE2(conf1g-1f)#ex1t
CE2(conf1g)#1pv6 route : :/£' 2ee1:1:1: 2: :1
CE2(confžg)#ex1t
CE2#
Confiar M-BGP PE-1&PE-2
[PE-1] bgp ssaee
[PE-1-bgp-defauIt:] rout:er-žd 5 .5.5.5
[PE-1-bgp-de€auIt:]peer B.B.B.B as-nuinber B51ee
[PE-1-bgp-de£auIt:] peer d. d. d. d connecž-1nžerface loopback 1
[PE-1-bgp-defauIt] address-fanžly žpv8
[PE-1-bgp-de€auIt:-žpvB] žoport:- rout:e d1rect:
[PE-1-bgp-de€auIt:-žpvB] žoporž- rouže sžaž1c
[PE-1-bgp-de£auIt:-žpvd]peer d. d. d. d enaIz1e
[PE-1-bgp-defauIt-žpv8]peer 8.8.8.8 Ia6e1- route-capabž1žty
[PE-1-bgp-defauIt:-žpvB] qužt:
[PE-1-bgp-de€auIt:] qužt:
[PE-1]
[PE-2] bgp B51ee
[PE-2-bgp-default] router-Id 6 . 6. 6. 6
[PE-2-bgp-default]peer 5.5.5.5 as-number d51ee
[PE-2-bgp-default]peer 5.5.5.5 connect-Interface 1oopback 1
[PE-2-bgp-default]dirección-fanlly 1pv6
[PE-2-bgp-default-1pvB] 1inport- route
d1rect [PE-2-bgp-default-1pvB] 1inport- route
stat1c [PE-2-bgp-default-1pvB] peer 5.5.5.5
enable
[PE-2-bgp-default-1pv6] peer 5.5.5.5 label- route-capab1l1ty
[PE-2-bgp-default-1pvB] qult
[PE-2-bgp-default]qult
[PE-2]
Rutina ZPv6 Cuad
ro
[PE-1]display ipv6 routing-table protocol bgp
Summary count : 2
Su'nna ry cuente
Tasa de éxito 1s 1ee por ciento (25e/25e), round-tr1p in1n/avg/max = 3/4/1e ins CE2#
Wireshark Captura ICMPv6