Beruflich Dokumente
Kultur Dokumente
1
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Introducción .............................................................................................................................. 3
Audiencia ................................................................................................................................. 3
Capítulo I: IGPs .......................................................................................................................... 4
Seccion OSPF .............................................................................................................................. 5
Capítulo II: MPLS ...................................................................................................................... 29
Sección LDP .............................................................................................................................. 30
Sección MPLS-Traffic Engineering ............................................................................................... 47
Sección MPLS MTU (consideraciones) ......................................................................................... 64
MPLS TE con PBR ..................................................................................................................... 72
Capítulo III: MPLS VPN L3/L2 ...................................................................................................... 86
Sección PE-CE RIPv2 ................................................................................................................. 87
Sección PE-CE OSPF.................................................................................................................. 97
Sección PE-CE OSPF Sham-Link ............................................................................................... 106
Sección VRF Lite - CE Management .......................................................................................... 114
Sección PE-CE EIGRP .............................................................................................................. 121
Sección PE-CE EIGRP Dual-Homed .......................................................................................... 130
Sección PE-CE IS-IS ................................................................................................................. 138
Sección PE-CE eBGP Multihome ............................................................................................... 145
Sección PE-CE eBGP AS Override............................................................................................. 152
Sección PE-CE eBGP Hub and Spoke ......................................................................................... 159
Sección PE-CE Control VPN ..................................................................................................... 166
Sección Internet Access Static routes .......................................................................................... 182
Sección Internet Access GRE Tunnel ......................................................................................... 193
Sección CSC only Carrier Customer .......................................................................................... 196
Sección Carrier Supporting Carriers (CSC)................................................................................. 208
Sección AToM Interworking ..................................................................................................... 220
Sección AToM Ethernet Port Mode ........................................................................................... 226
Sección AToM Ethernet VLAN Mode ........................................................................................ 230
Sección AToM Bridge Mode...................................................................................................... 233
Sección AToM Load Sharing...................................................................................................... 237
Sección AToM Frame Relay Port to Port .................................................................................... 243
Sección AToM sobre tunnel GRE .............................................................................................. 249
Sección L2TPv3 ....................................................................................................................... 257
Sección Multicast MPLS VPN .................................................................................................... 265
Sección Inter-AS MP-eBGP ....................................................................................................... 278
Seción Inter-AS: MP-eBGP Multi-hop RRs Option 3 con AS Intermedio. ..................................... 292
Capítulo IV: IPv6 ..................................................................................................................... 319
Seccion MP-BGP on IPv6 (6VPE) .............................................................................................. 320
Dual Stack IPv6 (6PE) y MPLS VPNv4 sobre MPLS Backbone...................................................... 329
IPv6 sobre MPLS AToM ........................................................................................................... 346
Capítulo V: High Availability ....................................................................................................... 352
Sección HSRP .......................................................................................................................... 353
Sección VRRP .......................................................................................................................... 362
Capítulo VI: Labs ..................................................................................................................... 370
Sección Challenge IPv4 Lab ....................................................................................................... 371
Seccion Challenge IPv6 Lab ....................................................................................................... 438
2
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Introducción
MPLS es ya una tecnología consolidada dentro infraesctructuras de proveedores de servicios de Internet (ISPs). Adoptado en gran
medida por su versatilidad y capacidad de transportar todo tipo de tráfico L2-L3. Esto ha significado un gran avance en cuanto a la
escalabilidad de las redes. La ventaja de MPLS por sobre el ruteo convencional de paquetes se debe en gran medida al mayor
rendimiento (opera entre la capa 2 y capa 3), flexibilidad, servicios privados (MPLS VPN), adicionalmente MPLS permite
coexistir redes de distinto tipo, incluso con tecnologias heredadas (por ejemplo redes Frame-Relay, ATM). Desde sus comienzos
hasta hoy MPLS ha pasado por distintas etapas y el crecimiento tecnologico e implementacion ha tenido un crecimiento
exponencial. Es por eso que hoy MPLS ya no se limita unicamente a un ISP; empresas medianas y grandes apuestan firmemente
por MPLS por la eficiencia y relativamente fácil adminsitración.
Existe variada y abundante documentacion teórica en lo que respecta a MPLS, sin embargo el material teórico en castellano es
escaso, y encontrar documentación practica es una tarea dificil si no imposible.
La presente Guía de Laboratorios MPLS entrega una gran fuente de informacion. Plantea distintos escenarios y tareas con
explicaciones precisas y acotadas que permiten al lector adquir conocimiento y detrezas que le permitan diseñar, configurar y
comprobar una implementacion completa de extremo a extremo, es decir, red cliente, red proveedor, red final cliente o
Internet.
Los laboratorios presentados aquí incluyen topolgias genéricas y originales dando énfasis al aprendizaje por sobre el diseño
óptimo, aunque muchas veces se cumplen ambas premisas.
El equipamiento utilizado se compone de un odenador, IOS 12.4 y 15.0 (distintas plataformas), analizador de protocolos
WireShark, el emulador routers Dynamips.
Audiencia
El material presentado puede ser de gran ayuda a ingenieros que tengan conocimientos previos en redes y requieran conocer
aspectos fundamentales de MPLS a nivel práctico (CCNA SP, CCNP, CCIP). Tambien puede ser de gran utilidad para quienes
esté preparando el examen de laboratorio CCIE Service Provider.
Audiencia
El material presentado puede ser de gran ayuda a ingenieros que tengan conocimientos previos en redes y requieran conocer
aspectos fundamentales de MPLS a nivel práctico (CCNA SP, CCNP, CCIP). Tambien puede ser de gran utilidad para quienes
esté preparando el examen de laboratorio CCIE Service Provider v2.0.
3
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Capítulo I: IGPs
4
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Seccion OSPF
R1
interface Serial1/0
encapsulation frame-relay
no shutdown
R2
interface Serial1/0
encapsulation frame-relay
no shutdown
5
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R3
interface Serial1/0
encapsulation frame-relay
no shutdown
R4
interface Serial1/0
encapsulation frame-relay
no shutdown
R1
interface Serial1/0.1
ip ospf priority 255
router ospf 1
network 10.1.1.0 0.0.0.255 area 0
neighbor 10.1.1.4
neighbor 10.1.1.3
neighbor 10.1.1.2
interface Loopback0
ip ospf 1 area 0
R2
interface Serial1/0.2
ip ospf priority 254
interface Loopback0
ip ospf 1 area 0
router ospf 1
network 10.1.1.0 0.0.0.255 area 0
neighbor 10.1.1.3
neighbor 10.1.1.4
neighbor 10.1.1.1
R3
interface Serial1/0.3
ip ospf priority 0
interface Loopback0
ip ospf 1 area 0
router ospf 1
network 10.1.1.0 0.0.0.255 area 0
R4
interface Serial1/0.4 multipoint
ip ospf priority 0
interface Loopback0
ip ospf 1 area 0
router ospf 1
network 10.1.1.0 0.0.0.255 area 0
R1
interface Serial1/0.1
8
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
ip ospf 1 area 0
ip ospf network point-to-multipoint
interface Loopback0
ip ospf 1 area 0
router ospf 1
router-id 100.1.1.1
R2
interface Serial1/0.2
ip ospf 1 area 0
ip ospf network point-to-multipoint
interface Loopback0
ip ospf 1 area 0
router ospf 1
router-id 100.2.2.2
R3
interface Serial1/0.3
ip ospf 1 area 0
ip ospf network point-to-multipoint
interface Loopback0
ip ospf 1 area 0
router ospf 1
router-id 100.3.3.3
R4
interface Serial1/0.4
ip ospf 1 area 0
ip ospf network point-to-multipoint
interface Loopback0
ip ospf 1 area 0
router ospf 1
router-id 100.4.4.4
9
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Configuración Area 10
En la red Broadcast R9 debe ser DR y R10 BDR. R11 no puede ser DR.
R9
interface Loopback0
ip ospf 1 area 10
interface FastEthernet0/0
ip ospf priority 255
ip ospf 1 area 10
router ospf 1
router-id 100.9.9.9
R10
interface Loopback0
ip address 100.10.10.10 255.255.255.255
ip ospf 1 area 10
interface FastEthernet0/0
ip address 10.1.119.10 255.255.255.0
ip ospf priority 254
ip ospf 1 area 10
no shutdown
router ospf 1
router-id 100.10.10.10
R11
interface Loopback0
ip address 100.11.11.11 255.255.255.255
ip ospf 1 area 10
interface FastEthernet0/0
ip address 10.1.119.11 255.255.255.0
ip ospf priority 0
ip ospf 1 area 10
no shutdown
router ospf 1
router-id 100.11.11.11
R1
interface FastEthernet0/0
ip address 10.1.119.1 255.255.255.0
ip ospf 1 area 10
no shutdown
LSA1 Router : One per router, listing RID and all interface IP addresses. Represents stub networks as well. R9 posee en su DB
Router el RID del AREA10.
LSA2 Net: One per transit network. Created by the DR on the subnet, and represents the subnet and the router interfaces
connected to the subnet.
LSA3 Summary Net : Created by ABRs to represent one area’s type 1 and 2 LSAs when being advertised into another area.
Defines the links (subnets) in the origin area, and cost, but no topology data.
Nota: Recordar que todos los routers que pertenecen a la misma area deben tener las misma tabla topologica.
Fijemos lla atención en el prefijo 100.4.4.4
11
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
El costo es calculado en base a la metrica publicada por el ABR R1 mas la metrica para alcanzar al ABR.
00:26:41 8 8 0 0 0 0 16 R, N,
00:01:18 4 8 0 0 0 0 12 R,
00:01:08 4 8 0 0 0 0 16 R,
R4(config)#interface loopback 0
R4(config-if)#shutdown
R10
access-list 10 permit 100.4.4.4
R10#debug ip ospf spf inter 10
OSPF: Detect change in LSA type 3, LSID 100.4.4.4, from 100.1.1.1 area 10
OSPF: Schedule partial SPF - type 3 id 100.4.4.4 adv rtr 100.1.1.1
OSPF: Service partial SPF 1/0/0
OSPF process partial spfQ entry
OSPF process partial spfQ LSA id 100.4.4.4: mask 255.255.255.255, type 3 adv_rtr 100.1.1.1, age 3600, seq 0x80000002
(Area 10)
OSPF process summary partial ABR 0x0 txit 0x0 LSA 100.4.4.4: mask 255.255.255.255, t3 adv 100.1.1.1, age 3600, seq
0x80000002 (Area 10)
OSPF: Start partial processing Summary LSA 100.4.4.4, mask 255.255.255.255, adv 100.1.1.1, age 3600, seq 0x80000002
(Area 10) type 3
OSPF: delete lsa id 100.4.4.4, type 3, adv rtr 100.1.1.1 from delete list
R1
OSPF: Adding Stub nets
OSPF: delete lsa id 100.1.1.1, type 0, adv rtr 100.1.1.1 from delete list
OSPF: insert route list LS ID 100.1.1.1, type 0, adv rtr 100.1.1.1
OSPF: delete lsa id 100.2.2.2, type 0, adv rtr 100.2.2.2 from delete list
OSPF: Add Network Route to 100.2.2.2 Mask /32. Metric: 65, Next Hop: 10.1.1.2
OSPF: insert route list LS ID 100.2.2.2, type 0, adv rtr 100.2.2.2
OSPF: delete lsa id 100.3.3.3, type 0, adv rtr 100.3.3.3 from delete list
OSPF: Add Network Route to 100.3.3.3 Mask /32. Metric: 65, Next Hop: 10.1.1.3
OSPF: insert route list LS ID 100.3.3.3, type 0, adv rtr 100.3.3.3
OSPF: Entered old delete routine area 0
OSPF: Deleting STUB NET old route 100.4.4.4, mask /32, next hop 10.1.1.4
OSPF: delete lsa id 100.4.4.4, type 0, adv rtr 100.4.4.4 from delete list
OSPF: Generate sum from intra-area route 100.4.4.4, mask 255.255.255.255, type 3, age 3600, metric 16777215, seq
0x80000002 to area 10
13
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4
interface loopback 0
no shutdown
R1
interface GigabitEthernet2/0
ip address 10.1.17.1 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 7
no shutdown
R7
interface GigabitEthernet1/0
ip address 10.1.17.7 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 7
no shutdown
router ospf 1
router-id 100.7.7.7
R1
router ospf 1
auto-cost reference-bandwidth 1000
En todos lor routers del Dominio OSPF debemos cambiar el BW de referencia usando el comando de router auto-cost reference-
bandwidth 1000
router ospf 1
auto-cost reference-bandwidth 1000
LSA 4 y 5
14
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5
interface Serial1/0
ip address 172.1.35.5 255.255.255.0
encapsulation ppp
no shutdown
interface Serial2/0
ip address 172.1.45.5 255.255.255.0
encapsulation ppp
no shutdown
router bgp 2
bgp router-id 5.5.5.5
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 172.1.35.3 remote-as 1
neighbor 172.1.45.4 remote-as 1
address-family ipv4
neighbor 172.1.35.3 activate
neighbor 172.1.45.4 activate
network 100.5.5.5 mask 255.255.255.255
network 5.5.5.0 mask 255.255.255.0
R3
interface Serial2/0
ip address 172.1.35.3 255.255.255.0
encapsulation ppp
no shut
router bgp 1
bgp router-id 100.3.3.3
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 172.1.35.5 remote-as 2
!
address-family ipv4
neighbor 172.1.35.5 activate
neighbor 172.1.35.5 default-originate
no auto-summary
no synchronization
network 0.0.0.0
exit-address-family
R4
interface Serial2/0
ip address 172.1.45.4 255.255.255.0
encapsulation ppp
no shut
router bgp 1
bgp router-id 100.4.4.4
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 172.1.45.5 remote-as 2
!
address-family ipv4
neighbor 172.1.45.5 activate
15
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Redistribuimos las redes BGP (este tipo de prácticas solo tiene sentido en laboratorios, en redes en producción puede crear
problemas graves). Ambos ASBRs redistribuyen las redes publicadas por R5.
R3
ip prefix-list RED-R5 seq 5 permit 192.168.5.5/32
router ospf 1
redistribute bgp 1 subnets route-map EXTERNAS
R4
ip access-list standard RED-R5
permit 5.5.5.0 0.0.0.255
router ospf 1
redistribute bgp 1 subnets route-map EXTERNAS
Stubby Areas
Los ABRs no inundan las areas con LSA typo 5. En lugar de ello publica un ruta por defecto dentro del stubby area. Como
resultado, las rutas internas usan ruteo por defecto.
EL clásico diseño es tener un solo ABR para una stubby area, sin embargo puede existir mas de uno.
En nuestro ejemplo Area 6 tiene dos ABRs, ambos pueden inyectar una ruta por defecto dentro del area, pero esto resulta en un
suboptimo ruteo.
La tarea primordial de las stubby areas es parar LSA externas 5. Sin embargo los ABRs tambien pueden dejar de inundar LSA 3.
Area Type Bloquea LSA5 Bloquea LSA3 Permite LSA7 Comando router
Stubb SI NO NO area 2 stub
Totally Stubby SI SI NO area 2 stub no-summary
Not-So-Stubby SI NO SI area 2 nssa
Totally NSSA SI SI Si area 2 nssa no-summary
R1
interface FastEthernet0/1
ip address 10.1.16.1 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 6
no shutdown
duplex full
R6
interface FastEthernet0/1
ip address 10.1.16.6 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 6
no shutdown
duplex full
interface loopback0
ip ospf 1 area 6
router ospf 1
router-id 100.6.6.6
R2
interface FastEthernet0/0
ip address 10.1.26.2 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 6
no shutdown
duplex full
R6
interface FastEthernet0/0
ip address 10.1.26.6 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 6
no shutdown
18
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
duplex full
19
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R1
router ospf 1
area 6 stub
R6
router ospf 1
area 6 stub
20
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
router ospf 1
area 6 stub
R1
router ospf 1
area 6 stub no-summary
R2
router ospf 1
area 6 stub no-summary
LS age: 207
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 0.0.0.0 (summary Network Number)
Advertising Router: 100.1.1.1
LS Seq Number: 80000002
Checksum: 0x13C2
Length: 28
Network Mask: /0
TOS: 0 Metric: 1
Routing Bit Set on this LSA
LS age: 198
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 0.0.0.0 (summary Network Number)
Advertising Router: 100.2.2.2
LS Seq Number: 80000002
Checksum: 0xFDD4
Length: 28
Network Mask: /0
TOS: 0 Metric: 1
Area 7 NSSA
Area Type Bloquea LSA5 Bloquea LSA3 Permite LSA7 Comando router
Stubb SI NO NO area 2 stub
Totally Stubby SI SI NO area 2 stub no-summary
Not-So-Stubby SI NO SI area 2 nssa
Totally NSSA SI SI Si area 2 nssa no-summary
R8
router rip
version 2
network 8.0.0.0
network 172.16.0.0
no auto-summary
interface FastEthernet0/0
ip address 172.16.78.8 255.255.255.0
duplex full
no shut
R7
router rip
version 2
redistribute ospf 1 metric 2
network 172.16.0.0
no auto-summary
router ospf 1
redistribute rip subnets
interface FastEthernet0/0
ip address 172.16.78.7 255.255.255.0
duplex full
22
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
no shut
R7#sh ip route
Gateway of last resort is not set
100.0.0.0/32 is subnetted, 10 subnets
O IA 100.4.4.4 [110/649] via 10.1.17.1, 00:02:48, GigabitEthernet1/0
O E2 100.5.5.5 [110/1] via 10.1.17.1, 00:02:48, GigabitEthernet1/0
O IA 100.6.6.6 [110/12] via 10.1.17.1, 00:02:48, GigabitEthernet1/0
C 100.7.7.7 is directly connected, Loopback0
O IA 100.1.1.1 [110/2] via 10.1.17.1, 00:02:48, GigabitEthernet1/0
O IA 100.2.2.2 [110/649] via 10.1.17.1, 00:02:48, GigabitEthernet1/0
O IA 100.3.3.3 [110/649] via 10.1.17.1, 00:02:48, GigabitEthernet1/0
O IA 100.9.9.9 [110/12] via 10.1.17.1, 00:02:48, GigabitEthernet1/0
O IA 100.10.10.10 [110/12] via 10.1.17.1, 00:02:48, GigabitEthernet1/0
O IA 100.11.11.11 [110/12] via 10.1.17.1, 00:02:48, GigabitEthernet1/0
5.0.0.0/24 is subnetted, 1 subnets
O E1 5.5.5.0 [110/649] via 10.1.17.1, 00:02:48, GigabitEthernet1/0
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.78.0 is directly connected, FastEthernet0/0
8.0.0.0/32 is subnetted, 1 subnets
R 8.8.8.8 [120/1] via 172.16.78.8, 00:00:03, FastEthernet0/0
10.0.0.0/24 is subnetted, 5 subnets
O IA 10.1.1.0 [110/648] via 10.1.17.1, 00:02:48, GigabitEthernet1/0
O IA 10.1.26.0 [110/21] via 10.1.17.1, 00:02:48, GigabitEthernet1/0
C 10.1.17.0 is directly connected, GigabitEthernet1/0
O IA 10.1.16.0 [110/11] via 10.1.17.1, 00:02:48, GigabitEthernet1/0
O IA 10.1.119.0 [110/11] via 10.1.17.1, 00:02:48, GigabitEthernet1/0
Area 7 NSSA
Area Type Bloquea LSA5 Bloquea LSA3 Permite LSA7 Comando router
Stubb SI NO NO area 2 stub
Totally Stubby SI SI NO area 2 stub no-summary
Not-So-Stubby SI NO SI area 2 nssa
Totally NSSA SI SI Si area 2 nssa no-summary
R1
router ospf 1
area 7 nssa
R7
router ospf 1
area 7 nssa
23
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R1
router ospf 1
area 6 stub no-summary
R2
router ospf 1
area 6 stub no-summary
R7
access-list 10 permit 10.1.0.0 0.0.255.255
router ospf 1
distribute-list 10 in GigabitEthernet1/0
R7 también pertenece al dominio OSPF, y necesitamos bloquear solo para RIP, es decir, para R8. Esto nos sugiere que la primera
configuración de ENTRADA IN, no nos sirve. Debemos filtrar en RIP de salida.
Usamos la misma ACL.
R7
access-list 10 permit 10.1.0.0 0.0.255.255
!
route-map FILTRO deny 10
match ip address 10
!
route-map FILTRO permit 20
router rip
redistribute ospf 1 metric 2 route-map FILTRO
Totally Stubby
Area Type Bloquea LSA5 Bloquea LSA3 Permite LSA7 Comando router
Stubb SI NO NO area 2 stub
Totally Stubby SI SI NO area 2 stub no-summary
Not-So-Stubby SI NO SI area 2 nssa
Totally NSSA SI SI Si area 2 nssa no-summary
R1
router ospf 1
area 7 nssa no-summary
R7
router ospf 1
router-id 100.7.7.7
area 7 nssa no-summary
redistribute eigrp 1 subnets
Virtual-Link (Opcional)
Conecte Area11 BB.
R1
router ospf 1
router-id 100.1.1.1
area 10 virtual-link 100.11.11.11
27
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R11
router ospf 1
router-id 100.11.11.11
area 10 virtual-link 100.1.1.1
28
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
29
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Sección LDP
Pre LAB
Construir el laboratorio mostrado en el diagrama.
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
§ Configurar IS-IS Level-2 y publicar loopback 0 de todos los LSRs usando la NET con la siguiente disposición:
R1 Net 49.0001.0000.0000.0001.00
R2 Net 49.0001.0000.0000.0002.00
R3 Net 49.0001.0000.0000.0003.00
R4 Net 49.0001.0000.0000.0004.00
R5 Net 49.0001.0000.0000.0005.00
R6 Net 49.0001.0000.0000.0006.00
R7 Net 49.0001.0000.0000.0007.00
§ Crear conectividad completa en dominio IS-IS
§ Habilitar LDP en todos los LSRs de la figura
§ Utilizar la loopback 0 como ID LDP
§ Definir un rango característico de etiquetas (labels) en cada LSR.
Implementación IS-IS.
R1
router isis
net 49.0001.0000.0000.0001.00
is-type level-2-only
log-adjacency-changes
passive-interface Loopback0
interface FastEthernet0/0
ip router isis
30
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
router isis
net 49.0001.0000.0000.0002.00
is-type level-2-only
log-adjacency-changes
passive-interface Loopback0
interface FastEthernet0/0
ip router isis
interface FastEthernet0/1
ip router isis
interface FastEthernet1/0
ip router isis
interface FastEthernet2/0
ip router isis
interface FastEthernet3/0
ip router isis
R3
router isis
net 49.0001.0000.0000.0003.00
is-type level-2-only
log-adjacency-changes
passive-interface Loopback0
interface FastEthernet0/0
ip router isis
interface FastEthernet0/1
ip router isis
interface FastEthernet1/0
ip router isis
R4
router isis
net 49.0001.0000.0000.0004.00
is-type level-2-only
log-adjacency-changes
passive-interface Loopback0
interface FastEthernet0/0
ip router isis
interface FastEthernet0/1
ip router isis
interface FastEthernet1/0
ip router isis
31
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet2/0
ip router isis
R5
router isis
net 49.0001.0000.0000.0005.00
is-type level-2-only
log-adjacency-changes
passive-interface Loopback0
interface FastEthernet0/0
ip router isis
R6
router isis
net 49.0001.0000.0000.0006.00
is-type level-2-only
log-adjacency-changes
passive-interface Loopback0
interface FastEthernet0/0
ip router isis
interface FastEthernet0/1
ip router isis
R7
router isis
net 49.0001.0000.0000.0007.00
is-type level-2-only
log-adjacency-changes
passive-interface Loopback0
interface FastEthernet0/0
ip router isis
interface FastEthernet0/1
ip router isis
32
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R1#tclsh
R1(tcl)#foreach IGP {
+>(tcl)#10.0.0.2
+>(tcl)#10.0.0.3
+>(tcl)#10.0.0.4
+>(tcl)#10.0.0.5
+>(tcl)#10.0.0.6
+>(tcl)#10.0.0.7
+>(tcl)#} { ping $IGP source Loopback0 repeat 4 timeout 1 }
Type escape sequence to abort.
Sending 4, 100-byte ICMP Echos to 10.0.0.2, timeout is 1 seconds:
Packet sent with a source address of 10.0.0.1
!!!!
Success rate is 75 percent (3/4), round-trip min/avg/max = 24/62/92 ms
Type escape sequence to abort.
Sending 4, 100-byte ICMP Echos to 10.0.0.3, timeout is 1 seconds:
Packet sent with a source address of 10.0.0.1
!!!!
Success rate is 100 percent (4/4), round-trip min/avg/max = 40/99/128 ms
Type escape sequence to abort.
Sending 4, 100-byte ICMP Echos to 10.0.0.4, timeout is 1 seconds:
Packet sent with a source address of 10.0.0.1
!!!!
Success rate is 100 percent (4/4), round-trip min/avg/max = 64/108/144 ms
Type escape sequence to abort.
Sending 4, 100-byte ICMP Echos to 10.0.0.5, timeout is 1 seconds:
Packet sent with a source address of 10.0.0.1
!!!!
Success rate is 100 percent (4/4), round-trip min/avg/max = 128/159/196 ms
Type escape sequence to abort.
Sending 4, 100-byte ICMP Echos to 10.0.0.6, timeout is 1 seconds:
Packet sent with a source address of 10.0.0.1
!!!!
33
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
El IGP subyacente (IS-IS) nos entrega conexión entre IDs LSRs (loopbacka0 de cada router en el dominio). Para establecer el
dominio MPLS necesitamos:
§ Habilitar CEF (modo global)
§ Habilitar LDP (modo global)
§ Definir protocolo intercambio de labels (modo global)
§ Definir interface para sesión MPLS (modo global)
§ Definir rango de etiquetas (modo global)
§ Usar la loopback0 del LSR para formar sesión LDP (modo global)
§ Habilitar LDP (modo interface)
El primer paso antes de configurar MPLS es habilitar CEF con el comando ip cef. Este es el único modo que reconoce MPLS.
Para habilitar LDP en modo global usamos el comando mpls ip (LDP es el protocolo por defecto).
Si queremos utilizar un protocolo distinto de LDP (la alternativa es TDP) usamos el comando:
R1(config)#mpls label protocol ?
ldp Use LDP (default)
tdp Use TDP
Definir el rango de labels no es obligatorio, pero muy recomendable cuando debemos detectar y resolver problemas
(Troubleshooting).
Nota: Definir el rango de etiquetas antes que habilitar LDP en la interface, o deberemos rebootear el router. Lo mismo es cierto
para MP-BGP.
Para formar una sesion LDP usamos la loopback0 que sirve como ID. Por eso es importante tener un IGP que de conexión entre
LSRs. Usamos el comando mpls ldp router-id loopback 0 force. La palabra force obliga a que proceso LDP no debe
reiniciarse para usar la loopback como ID (en caso que el proceso escogiera otra interface para la sesión)
R1(config)#mpls ldp router-id loopback 0 force
R1
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 100 199
interface FastEthernet0/0
mpls ip
34
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 200 299
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
interface FastEthernet1/0
mpls ip
interface FastEthernet2/0
mpls ip
interface FastEthernet3/0
mpls ip
R3
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 300 399
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
interface FastEthernet1/0
mpls ip
R4
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 400 499
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
interface FastEthernet1/0
mpls ip
35
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 500 599
interface FastEthernet0/0
mpls ip
R6
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 600 699
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
R7
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 700 799
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
El paso siguiente a configurar MPLS/LDP es comprobar que las interfaces estén activas con LDP. Es importante subrayar este
paso ya que es común olvidar configurar una interface con mpls ip. El estado Yes en la columna Operational nos indica que hemos
configurado mpls en la interface y que está funcionando, además podemos ver cual protocolo de intercambio de etiquetas se está
usando (LDP para este escenario). Adicionalmente podemos hacer un show runn int y comprobar que mpls ip aparece bajo la
interface.
36
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
La palabra detail es una extension de show mpls interfaces y es útil cuando queremos comprobar ciertos parámetros como la
MTU, el estado de la interface, el modo de configuracion (manual, LDP Autoconfig).
LDP requiere que los vecinos formen adyacencia. Como recordamos, al momento de configurar MPLS/LDP determinamos que
el ID de cada peer LDP correspondería a su loopback 0. Esto nos debe dar una idea de porque configuramos antes un protocolo
de enrutamiento. Sencillamente LDP no formará adyacencia con un vecino si no sabe como alcanzar su ID (en caso de haberlo
especificado). Para comprobar si los vecinos logran comunicación bidireccional debemos usar show mpls ldp discovery.
En la mayoría de los casos un resultado distinto de xmit/recv es un problema de conectividad. Por lo general el problema aparece
cuando omitimos la publicación de un ID en IGP.
37
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Podemos ver que R7 no tiene comunicación con R4 a traves de la interface FastEthernet0/1. Solo existe envío de hellos desde R7
a R4.
Para comprobarlo usamos debug mpls ldp transport events. El debug nos muestra que los paquetes hello son enviados por R7
pero no recibe ack.
R7#show debugging
MPLS ldp:
LDP transport events debugging is on for peer ACL 10
38
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4
interface FastEthernet2/0
mpls ip
R7#
ldp: Send ldp hello; FastEthernet0/0, src/dst 10.1.27.7/224.0.0.2, inst_id 0
ldp: Send ldp hello; FastEthernet0/1, src/dst 10.1.47.7/224.0.0.2, inst_id 0
ldp: Rcvd ldp hello; FastEthernet0/1, from 10.1.47.4 (10.0.0.4:0), intf_id 0, opt 0xC
R7#
ldp: Send ldp hello; FastEthernet0/0, src/dst 10.1.27.7/224.0.0.2, inst_id 0
ldp: Send ldp hello; FastEthernet0/1, src/dst 10.1.47.7/224.0.0.2, inst_id 0
R7#
ldp: Rcvd ldp hello; FastEthernet0/1, from 10.1.47.4 (10.0.0.4:0), intf_id 0, opt 0xC
R7#
ldp: Send ldp hello; FastEthernet0/1, src/dst 10.1.47.7/224.0.0.2, inst_id 0
ldp: Send ldp hello; FastEthernet0/0, src/dst 10.1.27.7/224.0.0.2, inst_id 0
Sabemos ya que la comunicación entre vecinos LDP está activa, el siguiente paso es comprobar el dominio completo esté
etiquetado, esto implica conocer el Control Plane y el Data Plane.
La tabla Data Plane (LFIB) contiene los siguiente campos:
Local Label : Etiqueta publicada a los peers LDP para un prefijo
Outgoing Label or VC: Etiqueta recibida desde un peer LDP para un prefijo
Prefix or Tunnel Id: Prefijo etiquetado
Next Hop: próximo salto para alcanzar el prefijo etiquetado
39
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Usamos el comando show mpls forwarding-table para ver la LFIB. En caso que un prefijo tenga “NO LABEL” en el campo
Outgoing Label se debe a un error (en MPLS IP, como veremos en capitulos posteriores, en MPLS VPN no necesariamente es un
error).
La tabla FIB (Control Plane) almacena los prefijos con información adicional. El siguiente ejemplo muestra la tabla FIB en R3
(R3#show mpls ldp bindings 10.0.0.4 32) para el prefijo 10.0.0.4/32. R2 publica el prefijo 10.0.0.4 con la etiqueta
asociada 202. R2 publica el prefijo 10.0.0.4 con la etiqueta asociada imp-null. En caso de un quiebre de sesión entre vecinos
LDP conectados directamente, R3 tiene un LSP alternativo a traves de R2 para el prefijo 10.0.0.4/32. El comando show mpls ip
binding 10.0.0.4 32 tiene similares caracteristicas que show mpls ldp binding, pero es un hibrido entre LFIB y FIB. Instala el
prefijo y que peers lo publican, y cual está siendo usado. En resumen la tabla FIB almacena todos los posibles path para un prefijo,
y entrega el que tiene mejores caracteristicas a la tabla LFIB (Data Plane).
40
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
§ OSPF y LDP deben estar sincronizados. Si en un minuto los LSRs no logran establecer una sesión LDP completa, OSPF
podrá converger.
§ Si la adyacencia IS-IS R3/4 cae (estado DOWN), la sesión LDP entre estos routers no debe perderse hasta alcanzar los 69
segundos.
§ En caso de que la sesión LDP no se pueda formar por incompatibilidad de parámetros, los routers deben volver a
intentarlo a los 30 segundos. Si no es posible establecer una sesión los routers LDP finalizarán la negociación cuando se
cumpla el tiempo máximo de 240 segundos.
41
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Normalmente un IS-IS (el mismo caso para OSPF) se activa antes que LDP. Si LDP e IS-IS no están sincronizados, IS-IS publica
enlaces antes que LDP pueda converger, por lo tanto si un LSR recibe un paquete sin etiquetar lo descarta. IS-IS está sincronizado
con LDP si establece un tiempo determinado para que LDP pueda descubrir vecinos, formar sesión LDP, e intercambiar
etiquetas.
R1
router isis
mpls ldp sync
R2
router isis
mpls ldp sync
R3
router isis
mpls ldp sync
R4
router isis
mpls ldp sync
R5
router isis
mpls ldp sync
R7
router isis
mpls ldp sync
R6(config)#router isis
R6(config-router)# mpls ldp sync
§ Si la adyacencia IS-IS R3/4 cae (estado DOWN), la sesión LDP entre estos routers no debe perderse hasta alcanzar los 69
segundos.
Una red inestable produce flapings continuos, en estas circuntancias las sesiones entre peer LDP tambien fluctua UP/DOWN. El
mayor problema es que la sesion debe volver a establecerse lo que provoca trafico adicional idenseado. Si queremos mantener una
adyacencia entre vecinos estable tenemos que habilitar Mpls Ldp Session Protection. Si el IGP es inestable, MPLS/LDP lo es
tambien. Con LDP Protection la sesion se mantiene activa durante un tiempo que definimos manualmente, si la conexión IGP que
se ha perdido vuelve a estar UP, la sesion LDP no sufre cambios, sencillamente “siempre estuvo UP”, esto evita que tega que crear
una nueva sesion e intercambio de etiquetas (label bindings).
R4#show access-lists
43
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5#show access-lists
R3
access-list 10 permit 10.0.0.4
mpls ldp session protection for 10 duration 69
R4
access-list 10 permit 10.0.0.3
mpls ldp session protection for 10 duration 69
Hemos configurado LDP Protection en ambos LSRs, y comprobamos que el estado es ready. Ahora veremos LDP Protection en
acción. Deshabilitamos ISIS en la interface de R5 que conecta a R4. El proceso IS-IS envia un log indicando qe la sesion ha
finalizado. Durante los proximos 69 segundos la sesion LDP R4/R5 se mantendrá UP a pesar que el IGP no este activo. Al
momento de expirar el timers de proteccion LDP, el estado de la sesion cambia a DOWN.
R4#show debugging
MPLS ldp:
LDP session protection events debugging is on
LDP-IGP Synchronization debugging is on
R4#show debugging
MPLS ldp:
LDP session protection events debugging is on
R4#
LDP SP: 10.0.0.3:0: last primary adj lost; starting session protection holdup timer
LDP SP: 10.0.0.3:0: LDP session protection holdup timer started, 69 seconds
LDP SP: 10.0.0.3:0: state change (Ready -> Protecting)
§ En caso de que la sesión LDP no se pueda formar por incompatibilidad de parámetros, los routers deben volver a
intentarlo a los 30 segundos. Si no es posible establecer una sesión los routers LDP finalizarán la negociación cuando se
cumpla el tiempo máximo de 240 segundos.
En el proceso de negociación LDP los peer acuerdan ciertos parámetros que deben coincidir en cada extremo. En caso de que no
exista esa coincidencia el proceso LDP cierra la sesion y espera para volver a intentarlo. Este tiempo de espera se llama backoff. El
formato es:
mpls ldp backoff initial-backoff maximu-backoff.
R1
mpls ldp backoff 30 240
R2
mpls ldp backoff 30 240
R3
mpls ldp backoff 30 240
R4
mpls ldp backoff 30 240
R5
mpls ldp backoff 30 240
45
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R6
mpls ldp backoff 30 240
R7
mpls ldp backoff 30 240
46
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en el diagrama.
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
§ Configurar OSPF 1 Area 0 como muestra la figura. Habilitar redes usando nuevo metodo de configuración.
§ Habilitar LDP Autoconfig.
§ Habilitar MPLS Traffic Engineering globalmente.
§ Habilitar MPLS Traffic Engineering en el proceso IGP.
§ Reservar 25000 kbps para TE para el LSP (Usar RSVP).
§ Crear Tunnel 24 en Head-End R2. Especificar path Head-End/Tail-END R2->R7->R3->R6->R4
§ Crear Tunnel 24 en Head-End R4. Especificar path Head-End/Tail-END R4->R7->R3->R6->R2
IGP
R2
interface Loopback0
ip address 10.0.0.2 255.255.255.255
ip ospf 1 area 0
interface FastEthernet0/1
ip address 10.1.26.2 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet1/0
ip address 10.1.23.2 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet2/0
47
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
router ospf 1
router-id 10.0.0.2
R3
interface Loopback0
ip address 10.0.0.3 255.255.255.255
ip ospf 1 area 0
interface FastEthernet0/0
ip address 10.1.23.3 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet0/1
ip address 10.1.34.3 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet1/0
ip address 10.1.36.3 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet2/0
ip address 10.1.37.3 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
router ospf 1
router-id 10.0.0.3
R4
interface Loopback0
ip address 10.0.0.4 255.255.255.255
ip ospf 1 area 0
interface FastEthernet0/1
ip address 10.1.47.4 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet1/0
ip address 10.1.34.4 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet2/0
ip address 10.1.46.4 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
router ospf 1
router-id 10.0.0.4
48
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R6
interface Loopback0
ip address 10.0.0.6 255.255.255.255
ip ospf 1 area 0
interface FastEthernet0/0
ip address 10.1.46.6 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet0/1
ip address 10.1.26.6 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet1/0
ip address 10.1.36.6 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
router ospf 1
router-id 10.0.0.6
R7
interface Loopback0
ip address 10.0.0.7 255.255.255.255
ip ospf 1 area 0
interface FastEthernet0/0
ip address 10.1.27.7 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet0/1
ip address 10.1.47.7 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet1/0
ip address 10.1.37.7 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
router ospf 1
router-id 10.0.0.7
R2#tclsh
R2(tcl)#foreach OSPF {
+>(tcl)#10.0.0.3
+>(tcl)#10.0.0.4
+>(tcl)#10.0.0.6
+>(tcl)#10.0.0.7
+>(tcl)#} {ping $OSPF source loopback0 repeat 6 timeout 1}
50
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
LDP Autoconfig
R2
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 210 299 static 200 209
router ospf 1
mpls ldp autoconfig area 0
R3
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 310 399 static 300 309
router ospf 1
mpls ldp autoconfig area 0
R4
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 410 499 static 400 409
router ospf 1
mpls ldp autoconfig area 0
R6
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 610 699 static 600 609
router ospf 1
mpls ldp autoconfig area 0
R7
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 710 799 static 700 709
router ospf 1
mpls ldp autoconfig area 0
Comprobamos que LDP Autoconfig esté configurado en las interfaces (IGP config).
10.0.0.3:0
Discovery Sources:
Interfaces:
FastEthernet0/0 (ldp): xmit/recv
LDP Id: 10.0.0.2:0
FastEthernet0/1 (ldp): xmit/recv
LDP Id: 10.0.0.4:0
FastEthernet1/0 (ldp): xmit/recv
LDP Id: 10.0.0.6:0
FastEthernet2/0 (ldp): xmit/recv
LDP Id: 10.0.0.7:0
R2
ip cef
mpls traffic-eng tunnels
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
interface FastEthernet0/1
mpls traffic-eng tunnels
ip rsvp bandwidth 25000
interface FastEthernet1/0
mpls traffic-eng tunnels
ip rsvp bandwidth 25000
interface FastEthernet2/0
mpls traffic-eng tunnels
53
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R3
ip cef
mpls traffic-eng tunnels
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
interface FastEthernet0/0
mpls traffic-eng tunnels
ip rsvp bandwidth 25000
interface FastEthernet0/1
mpls traffic-eng tunnels
ip rsvp bandwidth 25000
interface FastEthernet1/0
mpls traffic-eng tunnels
ip rsvp bandwidth 25000
interface FastEthernet2/0
mpls traffic-eng tunnels
ip rsvp bandwidth 25000
R4
ip cef
mpls traffic-eng tunnels
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
interface FastEthernet0/1
mpls traffic-eng tunnels
ip rsvp bandwidth 25000
interface FastEthernet1/0
mpls traffic-eng tunnels
ip rsvp bandwidth 25000
interface FastEthernet2/0
mpls traffic-eng tunnels
ip rsvp bandwidth 25000
R6
ip cef
mpls traffic-eng tunnels
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
interface FastEthernet0/0
mpls traffic-eng tunnels
ip rsvp bandwidth 25000
54
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/1
mpls traffic-eng tunnels
ip rsvp bandwidth 25000
interface FastEthernet1/0
mpls traffic-eng tunnels
ip rsvp bandwidth 25000
R7
ip cef
mpls traffic-eng tunnels
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
interface FastEthernet0/0
mpls traffic-eng tunnels
ip rsvp bandwidth 25000
interface FastEthernet0/1
mpls traffic-eng tunnels
ip rsvp bandwidth 25000
interface FastEthernet1/0
mpls traffic-eng tunnels
ip rsvp bandwidth 25000
55
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
ip explicit-path identifier 24 enable
next-address 10.1.27.7
next-address 10.1.37.3
next-address 10.1.36.6
next-address 10.1.46.4
interface Tunnel24
description *R2->R7->R3->R6->R4*
ip unnumbered Loopback0
tunnel mode mpls traffic-eng
tunnel destination 10.0.0.4
tunnel mpls traffic-eng priority 7 7
tunnel mpls traffic-eng bandwidth 10000
tunnel mpls traffic-eng path-option 10 explicit identifier 24
tunnel mpls traffic-eng record-route
Status:
Admin: up Oper: up Path: valid Signalling: connected
path option 10, type explicit 24 (Basis for Setup, path weight 4)
Config Parameters:
Bandwidth: 10000 kbps (Global) Priority: 7 7 Affinity: 0x0/0xFFFF
Metric Type: TE (default)
AutoRoute: disabled LockDown: disabled Loadshare: 10000 bw-based
auto-bw: disabled
Active Path Option Parameters:
State: explicit path option 10 is active
BandwidthOverride: disabled LockDown: disabled Verbatim: disabled
InLabel : -
OutLabel : FastEthernet2/0, 715
RSVP Signalling Info:
Src 10.0.0.2, Dst 10.0.0.4, Tun_Id 24, Tun_Instance 1
RSVP Path Info:
My Address: 10.1.27.2
Explicit Route: 10.1.27.7 10.1.37.3 10.1.36.6 10.1.46.4
10.0.0.4
Record Route:
Tspec: ave rate=10000 kbits, burst=1000 bytes, peak rate=10000 kbits
RSVP Resv Info:
Record Route: 10.1.37.7 10.1.36.3 10.1.46.6 10.1.46.4
Fspec: ave rate=10000 kbits, burst=1000 bytes, peak rate=10000 kbits
Shortest Unconstrained Path Info:
Path Weight: 2 (TE)
Explicit Route: 10.1.27.7 10.1.47.4 10.0.0.4
History:
Tunnel:
Time since created: 7 minutes, 26 seconds
Time since path change: 6 minutes, 38 seconds
Number of LSP IDs (Tun_Instances) used: 1
Current LSP:
Uptime: 5 minutes, 30 seconds
R4
ip explicit-path identifier 24 enable
next-address 10.1.47.7
next-address 10.1.37.3
next-address 10.1.36.6
next-address 10.1.26.2
interface Tunnel24
description *R4->R7->R3->R6->R2*
ip unnumbered Loopback0
tunnel mode mpls traffic-eng
tunnel destination 10.0.0.2
tunnel mpls traffic-eng priority 7 7
tunnel mpls traffic-eng bandwidth 10000
tunnel mpls traffic-eng path-option 10 explicit identifier 24
tunnel mpls traffic-eng record-route
57
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Config Parameters:
Bandwidth: 10000 kbps (Global) Priority: 7 7 Affinity: 0x0/0xFFFF
Metric Type: TE (default)
AutoRoute: disabled LockDown: disabled Loadshare: 10000 bw-based
auto-bw: disabled
Active Path Option Parameters:
State: explicit path option 10 is active
BandwidthOverride: disabled LockDown: disabled Verbatim: disabled
InLabel : -
OutLabel : FastEthernet0/1, 717
RSVP Signalling Info:
Src 10.0.0.4, Dst 10.0.0.2, Tun_Id 24, Tun_Instance 1
RSVP Path Info:
My Address: 10.1.47.4
Explicit Route: 10.1.47.7 10.1.37.3 10.1.36.6 10.1.26.2
10.0.0.2
Record Route:
Tspec: ave rate=10000 kbits, burst=1000 bytes, peak rate=10000 kbits
RSVP Resv Info:
Record Route: 10.1.37.7 10.1.36.3 10.1.26.6 10.1.26.2
Fspec: ave rate=10000 kbits, burst=1000 bytes, peak rate=10000 kbits
Shortest Unconstrained Path Info:
Path Weight: 2 (TE)
Explicit Route: 10.1.47.7 10.1.27.2 10.0.0.2
History:
Tunnel:
Time since created: 1 minutes, 56 seconds
Time since path change: 1 minutes, 52 seconds
Number of LSP IDs (Tun_Instances) used: 1
Current LSP:
Uptime: 1 minutes, 52 seconds
MP-iBGP
R2
router bgp 1
bgp router-id 10.0.0.2
no bgp default ipv4-unicast
neighbor 10.0.0.4 remote-as 1
neighbor 10.0.0.4 update-source Loopback0
58
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
address-family vpnv4
neighbor 10.0.0.4 activate
neighbor 10.0.0.4 send-community extended
R4
router bgp 1
bgp router-id 10.0.0.4
no bgp default ipv4-unicast
neighbor 10.0.0.2 remote-as 1
neighbor 10.0.0.2 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.2 activate
neighbor 10.0.0.2 send-community extended
VPNA Sitio1
R2
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:2
interface FastEthernet0/0
ip vrf forwarding A
ip address 172.16.12.2 255.255.255.0
ip ospf network point-to-point
ip ospf 10 area 0
duplex full
router bgp 1
address-family ipv4 vrf A
redistribute ospf 10 vrf A match internal external 1 external 2
R1
interface Loopback0
ip address 100.0.0.1 255.255.255.255
ip ospf 10 area 0
interface FastEthernet0/0
59
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
VPNA Sitio2
R4
ip vrf A
rd 1:2
route-target export 1:2
route-target import 1:1
interface FastEthernet0/0
ip vrf forwarding A
ip address 172.16.45.4 255.255.255.0
ip ospf network point-to-point
ip ospf 10 area 0
router bgp 1
address-family ipv4 vrf A
redistribute ospf 10 vrf A match internal external 1 external 2
R5
interface Loopback0
ip address 100.0.0.5 255.255.255.255
ip ospf 10 area 0
interface FastEthernet0/0
ip address 172.16.45.5 255.255.255.0
ip ospf network point-to-point
ip ospf 10 area 0
router ospf 10
router-id 100.0.0.5
61
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
62
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
63
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
§ IGP
§ LDP
Este laboratorio nos permitirá comprender el uso de las etiquetas en tres distintos escenarios.
R2
router ospf 1
network 10.1.23.2 0.0.0.0 area 0
network 10.2.2.2 0.0.0.0 area 0
ip cef
mpls ip
mpls label protocol ldp
mpls label range 200 299
mpls ldp router-id loopback 0 force
interface FastEthernet0/1
ip ospf network point-to-point
mpls ip
R3
router ospf 1
network 10.1.23.3 0.0.0.0 area 0
network 10.3.3.3 0.0.0.0 area 0
network 10.1.34.3 0.0.0.0 area 0
network 10.1.37.3 0.0.0.0 area 0
ip cef
mpls ip
mpls label protocol ldp
mpls label range 300 399
mpls ldp router-id loopback 0 force
interface FastEthernet0/0
ip ospf network point-to-point
mpls ip
interface FastEthernet0/1
ip ospf network point-to-point
64
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
mpls ip
interface FastEthernet1/0
ip ospf network point-to-point
mpls ip
R4
router ospf 1
network 10.1.45.4 0.0.0.0 area 0
network 10.4.4.4 0.0.0.0 area 0
network 10.1.34.4 0.0.0.0 area 0
network 10.1.47.4 0.0.0.0 area 0
ip cef
mpls ip
mpls label protocol ldp
mpls label range 400 499
mpls ldp router-id loopback 0 force
interface FastEthernet0/0
ip ospf network point-to-point
mpls ip
interface FastEthernet0/1
ip ospf network point-to-point
mpls ip
interface FastEthernet1/0
ip ospf network point-to-point
mpls ip
R5
router ospf 1
network 10.1.45.5 0.0.0.0 area 0
network 10.5.5.5 0.0.0.0 area 0
ip cef
mpls ip
mpls label protocol ldp
mpls label range 500 599
mpls ldp router-id loopback 0 force
interface FastEthernet0/1
ip ospf network point-to-point
mpls ip
R7
router ospf 1
network 10.1.37.7 0.0.0.0 area 0
network 10.7.7.7 0.0.0.0 area 0
network 10.1.47.7 0.0.0.0 area 0
ip cef
mpls ip
mpls label protocol ldp
mpls label range 700 799
mpls ldp router-id loopback 0 force
65
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/0
ip ospf network point-to-point
mpls ip
interface FastEthernet0/1
ip ospf network point-to-point
mpls ip
El numero de etiquetas dependerá del tipo de implementación. Por ejemplo MPLS VPN usa dos labels, la superior corresponde al
next-hop del PE extremo y bajo esta la que representa el prefijo de la vpn. Si usamos MPLS TE a secas se agrega una etiqueta. Si
por ejemplo usamos un tunnel TE entre router Provider (P) a partir de una implementación con MPLS VPN entonces tenemos
tres etiquetas:
TE label
IGP label
VPN label
Paquete IP
R2 R3 R4 R5
304 404 pop
10.5.5.5 10.5.5.5 10.5.5.5 10.5.5.5
R5 publica su ID 10.5.5.5 enviando una etiqueta imp-null a R4 . Este mensaje intstruye a R4 para que realice un POP para el
prefijo 10.5.5.5/32. R4 publica este prefijo a R3 con la etiqueta de Local 404, R3 publica el prefijo a R2 con la etiqueta Local
304.
R1
router eigrp 100
network 1.1.1.1 0.0.0.0
network 172.16.12.1 0.0.0.0
no auto-summary
R6
router eigrp 100
network 6.6.6.6 0.0.0.0
network 172.16.56.6 0.0.0.0
no auto-summary
R2
vrf definition A
rd 1:100
!
66
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
address-family ipv4
route-target export 1:1
route-target import 1:1
exit-address-family
!
interface FastEthernet0/0
vrf forwarding A
ip address 172.16.12.2 255.255.255.0
!
router eigrp 2
auto-summary
!
address-family ipv4 vrf A
redistribute bgp 1 metric 1 1 1 1 1
network 172.16.12.2 0.0.0.0
auto-summary
autonomous-system 100
exit-address-family
router bgp 1
bgp router-id 10.2.2.2
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.5.5.5 remote-as 1
neighbor 10.5.5.5 update-source Loopback0
!
address-family vpnv4
neighbor 10.5.5.5 activate
neighbor 10.5.5.5 send-community extended
exit-address-family
!
address-family ipv4 vrf A
redistribute eigrp 100
no synchronization
exit-address-family
R5
vrf definition A
rd 1:200
!
address-family ipv4
route-target export 1:1
route-target import 1:1
exit-address-family
!
interface FastEthernet0/0
vrf forwarding A
ip address 172.16.56.5 255.255.255.0
!
router eigrp 5
auto-summary
!
address-family ipv4 vrf A
redistribute bgp 1 metric 1 1 1 1 1
network 172.16.56.5 0.0.0.0
auto-summary
autonomous-system 100
exit-address-family
67
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
router bgp 1
bgp router-id 10.5.5.5
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.2.2.2 remote-as 1
neighbor 10.2.2.2 update-source Loopback0
!
address-family vpnv4
neighbor 10.2.2.2 activate
neighbor 10.2.2.2 send-community extended
exit-address-family
!
address-family ipv4 vrf A
redistribute eigrp 100
no synchronization
exit-address-family
R1 R2 R3 R4 R5 R6
MPLS/LDP Label 304 404 POP
IGP Label 508 508 508 508
Dest. 6.6.6.6 6.6.6.6 6.6.6.6 6.6.6.6 6.6.6.6 6.6.6.6
Para este segundo caso (MPLS VPN) usamos un ping exendido que envie paquetes con el bit DF establecido, y que haga un
barrido desde la MTU 1485 hasta la MTU 1500.
R1#ping
Protocol [ip]:
Target IP address: 6.6.6.6
Repeat count [5]: 1
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 1.1.1.1
Type of service [0]:
Set DF bit in IP header? [no]: y
Validate reply data? [no]:
Data pattern [0xABCD]:
68
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Cuando el barrido alcanza los 1493 bytes los paquetes son descartados. Esto se debe a que el paquete es MPLS VPN y necesita
utilizar 8 bytes para dos etiquetas. La etiqueta superior corresponde LSP que usa R2 para alcanzar a R5. La etiqueta bajo esta
representa al prefijo destino 6.6.6.6.
R3
mpls traffic-eng tunnels
interface FastEthernet1/0
mpls traffic-eng tunnels
ip rsvp bandwidth 20000
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
R4
mpls traffic-eng tunnels
interface FastEthernet1/0
mpls traffic-eng tunnels
ip rsvp bandwidth 20000
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
R7
mpls traffic-eng tunnels
interface FastEthernet0/0
mpls traffic-eng tunnels
ip rsvp bandwidth 20000
interface FastEthernet0/1
mpls traffic-eng tunnels
ip rsvp bandwidth 20000
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
69
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R3
ip explicit-path identifier 1 enable
next-address 10.1.37.7
next-address 10.1.47.4
interface Tunnel1
ip unnumbered Loopback0
tunnel destination 10.4.4.4
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng path-option 10 explicit identifier 1
mpls ip
R4
ip explicit-path identifier 1 enable
next-address 10.1.47.7
next-address 10.1.37.3
interface Tunnel1
ip unnumbered Loopback0
tunnel destination 10.3.3.3
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng path-option 10 explicit identifier 1
mpls ip
El traceroute desde el cliente R1 a R6 muestra las tres operaciones MPLS (pop, push y swap) en tres niveles distintos.
La MTU del LSP es siempre 1500 , lo podemos comprobar con el comando show mpls interfaces detail en cualquier router
en el LSP. En el ejemplo usamos un ping extendido desde R1 a R6 con el bit DF establecido y con un barrido de 1485 bytes a
1500 bytes (MTU). A partir del valor 1489 los paquetes comienzan a ser descartados (M.M Could not fragment).
Los 12 bytes restantes corresponden a labels MPLS (1 Tunnel + 1 MPLS/LDP + Prefijo IP destino).
70
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R1#ping
Protocol [ip]:
Target IP address: 6.6.6.6
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface:
Type of service [0]:
Set DF bit in IP header? [no]: yes
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]: yes
Sweep min size [36]: 1485
Sweep max size [18024]: 1500
Sweep interval [1]:
Type escape sequence to abort.
Sending 80, [1485..1500]-byte ICMP Echos to 6.6.6.6, timeout is 2 seconds:
Packet sent with the DF bit set
!!!!M.M.M.M.
Success rate is 20 percent (5/24), round-trip min/avg/max = 224/255/272 ms
71
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
El sigueinte laboratorio está deseñado para comprender el comportamiento de MPLS TE con distintos tipos de tráficos y la
diferencia con el modo de enrutamiento IP que posee carácteristicas estáticas en lo que respecta al uso optimizado del BW.
Nota: Para obtener valores de costo OSPF consistentes debemos modificar el costo por referencia OSPF.
R1
router ospf 1
router-id 10.1.1.1
auto-cost reference-bandwidth 1000
interface Loopback0
ip ospf 1 area 0
interface FastEthernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet0/1
ip ospf network point-to-point
ip ospf 1 area 0
72
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
router ospf 1
router-id 10.1.1.2
auto-cost reference-bandwidth 1000
interface Loopback0
ip ospf 1 area 0
interface FastEthernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet0/1
ip ospf network point-to-point
ip ospf 1 area 1
interface POS1/0
ip ospf 1 area 0
R3
router ospf 1
router-id 10.1.1.3
auto-cost reference-bandwidth 1000
interface Loopback0
ip ospf 1 area 0
interface FastEthernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet0/1
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet1/0
ip ospf network point-to-point
ip ospf 1 area 0
R4
router ospf 1
router-id 10.1.1.4
auto-cost reference-bandwidth 1000
interface Loopback0
ip ospf 1 area 0
interface FastEthernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet0/1
ip ospf network point-to-point
ip ospf 1 area 0
interface POS1/0
ip ospf 1 area 0
73
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5
router ospf 1
router-id 10.1.1.5
auto-cost reference-bandwidth 1000
interface Loopback0
ip ospf 1 area 0
interface FastEthernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet0/1
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet1/0
ip ospf network point-to-point
ip ospf 1 area 0
R6
router ospf 1
router-id 10.1.1.6
auto-cost reference-bandwidth 1000
interface Loopback0
ip ospf 1 area 0
interface FastEthernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet0/1
ip ospf network point-to-point
ip ospf 1 area 2
R7
router ospf 1
router-id 100.1.1.7
auto-cost reference-bandwidth 1000
interface Loopback0
ip ospf 1 area 0
interface FastEthernet0/1
ip ospf network point-to-point
ip ospf 1 area 1
74
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R8
router ospf 1
router-id 100.1.1.8
auto-cost reference-bandwidth 1000
interface Loopback0
ip ospf 1 area 2
interface FastEthernet0/1
ip ospf network point-to-point
ip ospf 1 area 2
R1
router ospf 1
area 1 stub no-summary
R7
router ospf 1
area 1 stub
R6
router ospf 1
area 2 stub no-summary
R8
router ospf 1
area 2 stub
R1
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 100 199
interface FastEthernet0/0
mpls ip
R2
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 200 299
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
interface POS1/0
mpls ip
R3
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 300 399
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
interface FastEthernet1/0
mpls ip
R4
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 400 499
interface FastEthernet0/0
76
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
mpls ip
interface FastEthernet0/1
mpls ip
interface POS1/0
mpls ip
R5
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 500 599
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
interface FastEthernet1/0
mpls ip
R6
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 600 699
interface FastEthernet0/0
mpls ip
77
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R1
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
ip cef
mpls traffic-eng tunnels
interface FastEthernet0/0
mpls traffic-eng tunnels
ip rsvp bandwidth 30000
R2
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
ip cef
mpls traffic-eng tunnels
interface FastEthernet0/0
mpls traffic-eng tunnels
ip rsvp bandwidth 30000
interface FastEthernet0/1
mpls traffic-eng tunnels
ip rsvp bandwidth 30000
78
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface POS1/0
mpls traffic-eng tunnels
ip rsvp bandwidth 30000
R3
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
ip cef
mpls traffic-eng tunnels
interface FastEthernet0/0
mpls traffic-eng tunnels
ip rsvp bandwidth 30000
interface FastEthernet0/1
mpls traffic-eng tunnels
ip rsvp bandwidth 30000
interface FastEthernet1/0
mpls traffic-eng tunnels
ip rsvp bandwidth 30000
R4
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
ip cef
mpls traffic-eng tunnels
interface FastEthernet0/0
mpls traffic-eng tunnels
ip rsvp bandwidth 30000
interface FastEthernet0/1
mpls traffic-eng tunnels
ip rsvp bandwidth 30000
interface POS1/0
mpls traffic-eng tunnels
ip rsvp bandwidth 30000
R5
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
ip cef
mpls traffic-eng tunnels
interface FastEthernet0/0
mpls traffic-eng tunnels
ip rsvp bandwidth 30000
interface FastEthernet0/1
mpls traffic-eng tunnels
79
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet1/0
mpls traffic-eng tunnels
ip rsvp bandwidth 30000
R6
router ospf 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
ip cef
mpls traffic-eng tunnels
interface FastEthernet0/0
mpls traffic-eng tunnels
ip rsvp bandwidth 30000
80
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
§ R1:Tunnel 1 R1-R2-R3-R4-R5-R6
§ R6:Tunnel 1 R6-R5-R4-R3-R2-R1
§ R1:Tunnel 2 R1-R2-R3-R5-R6
§ R6:Tunnel 2 R1-R2-R3-R5-R6
§ R1 y R6 :Tunnel 3 Dinámico (el LSP se formará considerando el menor costo en este caso R1-R2-R4-R5-R6) .
R1
ip explicit-path name R7-R8-LOOPBACK0 enable
next-address 10.1.12.2
next-address 10.1.23.3
next-address 10.1.34.4
next-address 10.1.45.5
next-address 10.1.56.6
interface Tunnel1
ip unnumbered Loopback0
tunnel destination 10.1.1.6
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng path-option 10 explicit name R7-R8-LOOPBACK0
interface Tunnel2
ip unnumbered Loopback0
tunnel destination 10.1.1.6
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng path-option 10 explicit name R7-R8-LOOPBACK1
interface Tunnel3
ip unnumbered Loopback0
tunnel destination 10.1.1.6
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng path-option 10 dynamic
R6
ip explicit-path name R8-R7-LOOPBACK0 enable
next-address 10.1.56.5
next-address 10.1.45.4
next-address 10.1.34.3
next-address 10.1.23.2
next-address 10.1.12.1
interface Tunnel1
ip unnumbered Loopback0
tunnel destination 10.1.1.1
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng path-option 10 explicit name R8-R7-LOOPBACK0
interface Tunnel2
ip unnumbered Loopback0
tunnel destination 10.1.1.1
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng path-option 10 explicit name R8-R7-LOOPBACK1
interface Tunnel3
ip unnumbered Loopback0
tunnel destination 10.1.1.1
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng path-option 10 dynamic
El tráfico que tenga un origen 100.1.1.7/32 (loopback0 R7) y destino 100.1.1.8/32 (loopback0 R8) usa el LSP1 y se le asigna un
valor IPP de 5 (este valor luego se copia en el campo EXP de MPLS), el trafico que tenga origen 7.7.7.7/32 (loopback1 R7) y
destino 8.8.8.8/32 (loopback1 R8) usa el LSP2 y el resto el LSP3 (este puede cambiar según el rendimiento de la red).
Podemos usar PBR estableciendo la salida a traves de la interface tunnel (el LSP).
R1
access-list 100 permit ip host 100.1.1.7 host 100.1.1.8 //Trafico para el LSP1
access-list 101 permit ip host 7.7.7.7 host 8.8.8.8 //Trafico para el LSP2
interface FastEthernet0/1
ip policy route-map TRAFICO //Aplicamos PBR en la interface de entrada
Comprobación
Origen Loopback0 R7 -> Destino Loopack0 R8 usa LSP1 (la traza muestra que el paquete requiere un tratamiento especial por
su valor EXP 5, por ej trafico de voz)
1 10.1.17.1 80 msec
2 10.1.12.2 [MPLS: Label 213 Exp 5] 304 msec
3 10.1.23.3 [MPLS: Label 313 Exp 5] 420 msec
4 10.1.34.4 [MPLS: Label 413 Exp 5] 252 msec
5 10.1.45.5 [MPLS: Label 513 Exp 5] 236 msec
6 10.1.56.6 332 msec
7 10.1.68.8 304 msec
R7
interface Loopback1
ip address 7.7.7.7 255.255.255.255
ip ospf 1 area 1
83
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R8
interface Loopback1
ip address 8.8.8.8 255.255.255.255
ip ospf 1 area 2
1 10.1.17.1 72 msec
2 10.1.12.2 [MPLS: Label 214 Exp 0] 204 msec
3 10.1.23.3 [MPLS: Label 314 Exp 0] 324 msec
4 10.1.35.5 [MPLS: Label 514 Exp 0] 504 msec
5 10.1.56.6 320 msec
6 10.1.68.8 320 msec
Tercer LSP
1 10.1.17.1 52 msec
2 10.1.12.2 [MPLS: Label 215 Exp 0] 300 msec
3 10.1.24.4 [MPLS: Label 414 Exp 0] 224 msec
4 10.1.45.5 [MPLS: Label 515 Exp 0] 308 msec
5 10.1.56.6 244 msec
6 10.1.68.8 480 msec
Si R4 cae, entonces todo el trafico de los tres tunneles seguirá el LSP R1-R2-R3-R5-R6
1 10.1.17.1 36 msec
2 10.1.12.2 [MPLS: Label 212 Exp 5] 288 msec
84
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
1 10.1.17.1 44 msec
2 10.1.12.2 [MPLS: Label 214 Exp 0] 248 msec
3 10.1.23.3 [MPLS: Label 314 Exp 0] 188 msec
4 10.1.35.5 [MPLS: Label 514 Exp 0] 368 msec
5 10.1.56.6 224 msec
6 10.1.68.8 264 msec
1 10.1.17.1 76 msec
2 10.1.12.2 [MPLS: Label 222 Exp 0] 260 msec
3 10.1.23.3 [MPLS: Label 319 Exp 0] 168 msec
4 10.1.35.5 [MPLS: Label 521 Exp 0] 248 msec
5 10.1.56.6 320 msec
6 10.1.68.8 228 msec
85
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
86
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
§ Construir el laboratorio mostrado en la figura..
§ Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
§ Configurar OSPF en los enlaces R2-R3,R2-R4, R3-R4 y R4-R5 y publicar loopbacks 0.
§ Configurar MPLS LDP en los R2-R3,R2-R4, R3-R4 y R4-R5. El LDP ID debe ser la interface loopback0. Utilice LDP
Autoconfig.
Nota: Esta primera sección incluye la configuración IGP y LDP . En laboratorios posteriores éstas serán parte de las
configuraciones iniciales.
Antes de poder formar un LSP entre PEs necesitamos que exista un IGP que nos entregue conectividad dentro del AS1.
R2
interface FastEthernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet1/0
ip ospf network point-to-point
ip ospf 1 area 0
interface Loopback0
ip ospf 1 area 0
R3
interface FastEthernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet1/0
ip ospf network point-to-point
ip ospf 1 area 0
87
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface Loopback0
ip ospf 1 area 0
R4
interface FastEthernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet0/1
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet1/0
ip ospf network point-to-point
ip ospf 1 area 0
interface Loopback0
ip ospf 1 area 0
R5
interface FastEthernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
interface Loopback0
ip ospf 1 area 0
A continuación comprobamos que se ha formado adyacencia OSPF, y que los ID de cada LSR sean conocidos dentro del AS1.
88
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
§ Configurar MPLS LDP en los R2-R3,R2-R4, R3-R4 y R4-R5. El LDP ID debe ser la interface loopback0. Utilice LDP
Autoconfig.
R2
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 210 299 static 200 209
mpls static binding ipv4 10.0.0.3 255.255.255.255 203
mpls static binding ipv4 10.0.0.4 255.255.255.255 204
mpls static binding ipv4 10.0.0.5 255.255.255.255 205
router ospf 1
mpls ldp autoconfig area 0
R3
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 310 399 static 300 309
mpls static binding ipv4 10.0.0.2 255.255.255.255 302
mpls static binding ipv4 10.0.0.4 255.255.255.255 304
mpls static binding ipv4 10.0.0.5 255.255.255.255 305
router ospf 1
mpls ldp autoconfig area 0
R4
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 410 499 static 400 409
mpls static binding ipv4 10.0.0.2 255.255.255.255 402
mpls static binding ipv4 10.0.0.3 255.255.255.255 403
mpls static binding ipv4 10.0.0.5 255.255.255.255 405
router ospf 1
mpls ldp autoconfig area 0
R5
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
89
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
router ospf 1
mpls ldp autoconfig area 0
Comprobamos la comunicación entre vecinos LDP (comunicación a través de mensajes hellos) y el intercambio de etiquetas.
Configurar MP-iBGP entre R2 y R5 (los PEs) utilizando la loopback 0 para formar peering VPNv4.
MP-iBGP intercambia la dupla prefijo vpnv4 + label asociada. Como aun no creamos la VPN en los sitios, el comando show
bgp vpnv4 unicast all summary nos muestra el campo State/PfxRcd igual a cero, esto quiere decir que el proceso no ha
recibido prefijos desde su vecino MP-iBGP.
R2
router bgp 1
bgp router-id 10.0.0.2
no bgp default ipv4-unicast
neighbor 10.0.0.5 remote-as 1
neighbor 10.0.0.5 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.5 activate
neighbor 10.0.0.5 send-community extended
R5
router bgp 1
bgp router-id 10.0.0.5
no bgp default ipv4-unicast
neighbor 10.0.0.2 remote-as 1
neighbor 10.0.0.2 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.2 activate
neighbor 10.0.0.2 send-community extended
Sitio 1
91
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.12.2 255.255.255.0
R2#show vrf A
Name Default RD Protocols Interfaces
A 1:1 ipv4 Fa0/1
R1#ping 10.1.12.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.12.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 12/53/104 ms
R2
router rip
address-family ipv4 vrf A
redistribute bgp 1 metric 2
network 10.0.0.0
no auto-summary
version 2
router bgp 1
address-family ipv4 vrf A
no synchronization
redistribute rip
R1
router rip
version 2
92
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
network 10.0.0.0
network 100.0.0.0
no auto-summary
Sitio 2
§ Configurar VPN A en R5 -> RD/RT 1:1.
§ Activar la VRF A en la interface que conecta al CE R6.
§ Configurar RIPv2 PE-CE en Sitio2.
§ Redistribuir BGP dentro de RIPv2.
§ Redistribuir RIPv2 dentro de BGP.
R5
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.56.5 255.255.255.0
R5#show vrf A
Name Default RD Protocols Interfaces
A 1:1 ipv4 Fa0/1
R6#ping 10.1.56.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.56.5, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 20/60/92 ms
Como el RD/RT es el mismo, la configuración IGP RIPv2 en Sitio2 es idéntica a la configuración IGP de Sitio1.
R5
router rip
address-family ipv4 vrf A
redistribute bgp 1 metric 2
network 10.0.0.0
no auto-summary
93
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
version 2
router bgp 1
address-family ipv4 vrf A
no synchronization
redistribute rip
R6
router rip
version 2
network 10.0.0.0
network 100.0.0.0
no auto-summary
Recapitulemos. Para que Sitio1 y Sitio2 tengan comunicación el Service Provider debe implementar en líneas generales:
1. Un IGP en el Core que dé conectividad entre ID LSR.
2. Un protocolo para el intercambio de etiquetas (TDP,LDP o RSVP).
3. MP-iBGP para transportar los prefijos VPN y su etiqueta asociada.
4. Crear una VPN y activarla en la interface que conecta al CE
5. Establecer un IGP PE-CE.
6. Redistribuir mutuamente IGP/MP-iBGP
Estos pasos podemos pensarlos como bloques constructivos de la red subyacente que transportará información entre sitios.
Ya debemos tener conectividad extremo a extremo pero es importante comprobar que los PEs tienen los prefijos en sus tablas
BGP y VRF. El comando show bgp vpnv4 unicast rd 1:1
nos muestra todas los prefijos asociados al RD 1:1. Otro comando con idénticos resultados es
show bgp vpnv4 unicast vrf A, pero es válido cuando el RD es el mismo en ambos PEs.
El comando show ip bgp vpnv4 all labels nos permite ver el mapeo prefijo/etiqueta BGP, es decir, el prefijo que transporta
MP-iBGP más sus extensiones y su etiqueta (label) asociada. Por ejemplo, la etiqueta 514 está asociada al prefijo 100.0.0.6/32 de
R6. Después podremos observar en que lugar del paquete se ubica esta etiqueta.
Verificamos que la rutas hayan sido redistribuidas correctamente y que sean accesible desde los CEs. Probamos conectividad con
un traceroute entre CEs utilizando las loopbacks0 como interface de origen. El ejemplo muestra una traza de R1 a R6. Cuando el
paquete alcanza el AS1 R2 le agrega dos etiquetas, una para identificar el next-hop de BGP (top label 405) y abajo la etiqueta que
pertenece al prefijo vpnv4 100.0.0.6/32.
95
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
96
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
R2
router bgp 1
bgp router-id 10.0.0.2
no bgp default ipv4-unicast
neighbor 10.0.0.4 remote-as 1
neighbor 10.0.0.4 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.4 activate
neighbor 10.0.0.4 send-community extended
R3
router bgp 1
bgp router-id 10.0.0.3
no bgp default ipv4-unicast
neighbor 10.0.0.4 remote-as 1
neighbor 10.0.0.4 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.4 activate
neighbor 10.0.0.4 send-community extended
97
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5
router bgp 1
bgp router-id 10.0.0.5
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.0.0.4 remote-as 1
neighbor 10.0.0.4 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.4 activate
neighbor 10.0.0.4 send-community extended
R4
bgp router-id 10.0.0.4
no bgp default ipv4-unicast
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 description INTERNOS
neighbor AS1 update-source Loopback0
neighbor 10.0.0.2 peer-group AS1
neighbor 10.0.0.3 peer-group AS1
neighbor 10.0.0.5 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor AS1 route-reflector-client
neighbor 10.0.0.2 activate
neighbor 10.0.0.3 activate
neighbor 10.0.0.5 activate
R2
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.12.2 255.255.255.0
R2#show vrf A
Name Default RD Protocols Interfaces
A 1:1 ipv4 Fa0/1
R1#ping 10.1.12.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.12.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 12/53/104 ms
R3
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.13.3 255.255.255.0
R3#show vrf A
Name Default RD Protocols Interfaces
A 1:1 ipv4 Fa0/1
R1#ping 10.1.13.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.13.3, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 36/67/80 ms
99
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
BGP tiene la capacidad de transportar en las actualizaciones la mayoría de los atributos OSPF, esto permite resconstruir el
paquete OSPF casi en su totalidad en el PE de salida.
R1
router ospf 10
router-id 100.0.0.1
network 10.1.12.1 0.0.0.0 area 0
network 10.1.13.1 0.0.0.0 area 0
network 100.0.0.1 0.0.0.0 area 0
interface FastEthernet0/0
ip address 10.1.12.1 255.255.255.0
ip ospf network point-to-point
interface FastEthernet0/1
ip address 10.1.13.1 255.255.255.0
ip ospf network point-to-point
R2
interface FastEthernet0/1
ip ospf network point-to-point
router bgp 1
address-family ipv4 vrf A
no synchronization
redistribute ospf 10 vrf A match internal external 1 external 2
El ejemplo muestra la forma de configurar OSPF como IGP PE-CE, y la redistribucion en ambos sentidos.
R1
router ospf 10
network 10.1.13.1 0.0.0.0 area 0
interface FastEthernet0/1
ip address 10.1.13.1 255.255.255.0
ip ospf network point-to-point
R3
100
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/1
ip ospf network point-to-point
router bgp 1
address-family ipv4 vrf A
no synchronization
redistribute ospf 10 vrf A match internal external 1 external 2
R5
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.56.5 255.255.255.0
R6#ping 10.1.56.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.56.5, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 20/46/76 ms
R6
interface FastEthernet0/0
ip ospf network point-to-point
router ospf 10
router-id 100.0.0.6
network 10.1.56.6 0.0.0.0 area 0
network 100.0.0.6 0.0.0.0 area 0
101
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5
router ospf 10 vrf A
redistribute bgp 1 subnets
network 10.1.56.5 0.0.0.0 area 0
router bgp 1
address-family ipv4 vrf A
no synchronization
redistribute ospf 10 vrf A match internal external 1 external 2
Verificamos que los prefijos de ambos sitios estén instalados en la tabla BGP de los Provider Egdes R2, R3 y R5.
Finalemente debemos comprobar que ambos sitios tiene conectividad completa. Un Telnet prueba las 7 capas del modelo OSI.
R1#telnet 100.0.0.6
Trying 100.0.0.6 ... Open
User Access Verification
Password:
103
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Sitio 1 tiene una particularidad: Es un sitio dual-home y debemos tener presente algunas consideraciones de diseño. Por ejemplo
una actualización desde Sitio 2 es redistribuida por R2 hacia R1, este vuelve a publicar la actualización a R3. R3 a su vez comparte
la actualización con todos los PEs dentro del Backbone que acepten el RT 1:1, R2 acepta esta actualización desde R3 y la
redistribuye nuevamente a R1 (un loop de enrutamiento). Sin un mecanismo para prevenir esto la red tendrá problemas de
convergencia y/o lentitud de respuesta. El campo opción de la LSA 3 de OSPF tiene un campo (DOWN BIT) que se creó
exclusivamente para evitar este problema. El down bit es establecido por un Provider Edge cada vez que redistribuye una ruta
MP-iBGP dentro de OSPF.
En nuestro ejemplo R1, el Customer Edge, recibe la actualización desde un R2, R1 publica otra actualizacion para R3 sobre la
misma red con el down bit establecido, R3 ve el bit y no vuelve a publicar la red dentro del backbone. Este proceso es automático
y no requiere configuración adicional.
Para evitar loops para LSA tipo 5 usamos el comando domai-tag en el proceso OSPF.
R6
interface Loopback1
ip address 200.0.0.6 255.255.255.0
router ospf 10
redistribute connected subnets route-map LOOP
R2
router ospf 10 vrf A
domain-tag 69
104
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R3
router ospf 10 vrf A
domain-tag 69
105
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
R2
router bgp 1
bgp router-id 10.0.0.2
no bgp default ipv4-unicast
neighbor 10.0.0.5 remote-as 1
neighbor 10.0.0.5 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.5 activate
neighbor 10.0.0.5 send-community extended
R5
router bgp 1
bgp router-id 10.0.0.5
no bgp default ipv4-unicast
neighbor 10.0.0.2 remote-as 1
neighbor 10.0.0.2 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.2 activate
neighbor 10.0.0.2 send-community extended
106
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
vrf definition A
rd 1:1
address-family ipv4
route-target export 1:1
route-target import 1:1
exit-address-family
interface FastEthernet0/1
vrf forwarding A
ip address 10.1.12.2 255.255.255.0
R2#show vrf A
Name Default RD Protocols Interfaces
A 1:1 ipv4 Fa0/1
R1#ping 10.1.12.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.12.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 28/38/52 ms
R1
router ospf 10
router-id 100.0.0.1
network 10.1.12.1 0.0.0.0 area 0
network 100.0.0.1 0.0.0.0 area 0
interface FastEthernet0/0
ip address 10.1.12.1 255.255.255.0
ip ospf network point-to-point
107
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
interface FastEthernet0/1
ip ospf network point-to-point
router bgp 1
address-family ipv4 vrf A
no synchronization
redistribute ospf 10 vrf A match internal external 1 external 2
R5
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.56.5 255.255.255.0
R6#ping 10.1.56.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.56.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/59/124 ms
108
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R6
interface FastEthernet0/0
ip ospf network point-to-point
router ospf 10
router-id 100.0.0.6
network 10.1.56.6 0.0.0.0 area 0
network 100.0.0.6 0.0.0.0 area 0
R5
interface FastEthernet0/1
ip ospf network point-to-point
router bgp 1
address-family ipv4 vrf A
no synchronization
redistribute ospf 10 vrf A match internal external 1 external 2
Los CEs R1 y R6 instalan las rutas de los sitios remotos como del tipo LSA 3 (Inter-Area).
109
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
BackUp
§ Configurar enlace de respaldo mostrado en la figura (OSPF 10 area 0 en).
§ Los CEs deben tener comunicación a través del Backbone y el enlace de respaldo será alternativa en caso que la red del
Proveedor falle.
Puesto que el enlace de respaldo será interno será la primera opción para la comunicación entre sitios. El proceso OSPF prefiere
las rutas Intrarea por sobre las Inter-Area.
R1
interface FastEthernet0/1
ip ospf network point-to-point
router ospf 10
network 172.16.16.0 0.0.0.255 area 0
R6
interface FastEthernet0/1
ip ospf network point-to-point
router ospf 10
network 172.16.16.0 0.0.0.255 area 0
Como dijimos anterioremente, OSPF prefiere rutas Internas (LSA 1 y LSA 2 = O), en lugar de las Intra-Area (LSA 3 = IA).
R1 se comunica con R6 directamente, y los servicios del Backbone se consideran un mero respaldo.
Aquí la importancia de Sham-Link
110
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
interface Loopback1
vrf forwarding A
ip address 10.2.2.2 255.255.255.255
router bgp 1
address-family ipv4 vrf A
network 10.2.2.2 mask 255.255.255.255
R5
interface Loopback1
ip vrf forwarding A
ip address 10.5.5.5 255.255.255.255
router bgp 1
address-family ipv4 vrf A
network 10.5.5.5 mask 255.255.255.255
111
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
La Pregunta es: Si hemos configurado Sham-Link entre PEs, ¿Por qué R1 y R6 aún aprenden las rutas directamente y no a través
del backbone? Sencillamente porque el costo entre CEs es menor que a tavés del Backbone. Una solución es subir el costo en la
interface del enlace de respaldo, esto permite que los CEs utilicen el Backbone, poner atención al next-hop. Notar tambien que
las rutas no son LSA 3.
R1
interface FastEthernet0/1
ip ospf cost 69
R6
interface FastEthernet0/1
ip ospf cost 69
112
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R1
access-list 10 deny 10.2.2.2
access-list 10 deny 10.5.5.5
access-list 10 permit any
router ospf 10
distribute-list 10 in
R6
access-list 10 deny 10.2.2.2
access-list 10 deny 10.5.5.5
access-list 10 permit any
router ospf 10
distribute-list 10 in
113
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
MP-iBGP
R2
router bgp 1
bgp router-id 10.0.0.2
no bgp default ipv4-unicast
neighbor 10.0.0.5 remote-as 1
neighbor 10.0.0.5 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.5 activate
neighbor 10.0.0.5 send-community extended
R5
router bgp 1
bgp router-id 10.0.0.5
no bgp default ipv4-unicast
neighbor 10.0.0.2 remote-as 1
neighbor 10.0.0.2 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.2 activate
neighbor 10.0.0.2 send-community extended
114
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
VRF-Lite
CE-R1
R1
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface Loopback0
ip vrf forwarding A
ip address 100.0.0.1 255.255.255.255
interface FastEthernet0/0
ip vrf forwarding A
ip address 10.1.12.1 255.255.255.0
ip ospf network point-to-point
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.13.1 255.255.255.0
ip ospf network point-to-point
R2
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.12.2 255.255.255.0
ip ospf network point-to-point
router bgp 1
address-family ipv4 vrf A
no synchronization
redistribute ospf 10 vrf A match internal external 1 external 2
R3
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.13.3 255.255.255.0
ip ospf network point-to-point
router bgp 1
address-family ipv4 vrf A
no synchronization
redistribute ospf 10 vrf A match internal external 1 external 2
Sitio2
R5
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.56.5 255.255.255.0
ip ospf network point-to-point
router bgp 1
address-family ipv4 vrf A
116
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
no synchronization
redistribute ospf 10 vrf A match internal external 1 external 2
R6
interface FastEthernet0/0
ip address 10.1.56.6 255.255.255.0
ip ospf network point-to-point
ip ospf 10 area 0
router ospf 10
router-id 100.0.0.1
R6#ping 100.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.0.0.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
La tabla OSPF de R6 muestra varias redes que en teoría son alcansablez, sin embargo un ping revela un problema. Sitio 1 consta
de un CE que utiliza VRF, esto no es el comportamiento “habitual” y es lo que se conoce como VRF-LITE. Puesto que Sitio1 es
mutlihome, los mismos mecanismos para evitar loops aparecen aquí (chequeo de Down Bit, o Tag), claro que estos son validos
para Provider Edge , y R1 es un Customer Edge. Si queremos que se sobrescriba el chequeo, en R1 debemos instruir a proceso
que se trata de un router VRF-LITE con el comando capability vrf-lite.
R1
router ospf 10 vrf A
capability vrf-lite
R6#ping 100.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 100.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 124/187/244 ms
R6
interface Loopback2
ip address 60.0.0.6 255.255.255.255
router ospf 10
router-id 100.0.0.1
redistribute connected subnets route-map CONN
CE Management
R6 publica los prefijos 100.1.0.0/24 – 100.7.0.0/24
R5 debe filtrar los prefijos pares usando el RT 1:69
Si queremos los prefijos pares en Sitio 1 debemos importarlos en la VRF.
R6
interface Loopback1
ip address 100.2.0.6 255.255.255.0 secondary
ip address 100.3.0.6 255.255.255.0 secondary
ip address 100.4.0.6 255.255.255.0 secondary
ip address 100.5.0.6 255.255.255.0 secondary
ip address 100.6.0.6 255.255.255.0 secondary
118
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5
access-list 10 permit 100.0.0.0 0.254.0.0
rd 1:1
export map VRF-MAP
120
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
R2
router bgp 1
bgp router-id 10.0.0.2
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.3 peer-group AS1
neighbor 10.0.0.5 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor 10.0.0.3 activate
neighbor 10.0.0.5 activate
R3
router bgp 1
bgp router-id 10.0.0.3
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
121
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
address-family vpnv4
neighbor AS1 send-community extended
neighbor 10.0.0.2 activate
neighbor 10.0.0.5 activate
R5
router bgp 1
bgp router-id 10.0.0.5
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.2 peer-group AS1
neighbor 10.0.0.3 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor 10.0.0.2 activate
neighbor 10.0.0.3 activate
122
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.12.2 255.255.255.0
R2#show ip vrf A
Name Default RD Interfaces
A 1:1 Fa0/1
R1#ping 10.1.12.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.12.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 16/47/72 ms
R3
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.13.3 255.255.255.0
R1#ping 10.1.13.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.13.3, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 24/49/96 ms
123
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R1
router eigrp 1
network 10.0.0.0
network 100.0.0.0
no auto-summary
R2
router eigrp 2
address-family ipv4 vrf A
default-metric 10000 100 255 1 1500
redistribute bgp 1
network 10.0.0.0
autonomous-system 1
no auto-summary
router bgp 1
address-family ipv4 vrf A
no synchronization
redistribute eigrp 1
exit-address-family
R3
router eigrp 3
address-family ipv4 vrf A
default-metric 10000 100 255 1 1500
redistribute bgp 1
network 10.0.0.0
124
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
autonomous-system 1
no auto-summary
router bgp 1
address-family ipv4 vrf A
no synchronization
redistribute eigrp 1
R5
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.56.5 255.255.255.0
R5#show ip vrf A
Name Default RD Interfaces
A 1:1 Fa0/1
R6#ping 10.1.56.5
Sending 5, 100-byte ICMP Echos to 10.1.56.5, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 40/58/88 ms
125
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Para que las rutas en los sitios sean internas, el AS debe ser el mismo, o los prefijos se publicaran como rutas externas. Este
escenario busca que las rutas sean externas. Como podemos ver en el ejemplo, la coicidencia de AS se especifíca en la familia
VRF.
R5
router eigrp 5
address-family ipv4 vrf A
default-metric 10000 100 255 1 1500
redistribute bgp 1
network 10.0.0.0
autonomous-system 2
no auto-summary
router bgp 1
address-family ipv4 vrf A
no synchronization
redistribute eigrp 2
R6
router eigrp 2
network 10.0.0.0
network 100.0.0.0
no auto-summary
Como podemos ver en el ejemplo, la metrica EIGRP se copia en las extensiones BGP. El comando en R2 show bgp vpnv4
unicast rd 1:1 100.0.0.6 muestra las extensiones que utilza BGP para transportar un paquete EIGRP completo.
10.1.13.3 56 msec
2 10.1.24.4 [MPLS: Labels 405/515 Exp 0] 292 msec
10.1.34.4 [MPLS: Labels 405/515 Exp 0] 192 msec
3 10.1.56.5 [MPLS: Label 515 Exp 0] 292 msec 132 msec
4 10.1.56.6 228 msec *
R6#traceroute 100.0.0.1
1 10.1.56.5 92 msec 92 msec 12 msec
2 10.1.45.4 [MPLS: Labels 402/214 Exp 0] 148 msec 172 msec 260 msec
3 10.1.12.2 [MPLS: Label 214 Exp 0] 172 msec 168 msec 108 msec
4 10.1.12.1 200 msec * 184 msec
Modificación AS EIGRP
Si hacemos coincidir el AS EIGRP en ambos sitios, las rutas que instalan los CEs son EIGRP Internas.
R5
router eigrp 5
address-family ipv4 vrf A
default-metric 10000 100 255 1 1500
redistribute bgp 1
network 10.0.0.0
autonomous-system 1
no auto-summary
router bgp 1
address-family ipv4 vrf A
no synchronization
redistribute eigrp 1
R6
router eigrp 1
network 10.0.0.0
network 100.0.0.0
no auto-summary
129
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en el diagrama.
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
R2
router bgp 1
bgp router-id 10.0.0.2
no bgp default ipv4-unicast
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.3 peer-group AS1
neighbor 10.0.0.4 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor 10.0.0.3 activate
neighbor 10.0.0.4 activate
R3
router bgp 1
bgp router-id 10.0.0.3
no bgp default ipv4-unicast
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.2 peer-group AS1
130
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
address-family vpnv4
neighbor AS1 send-community extended
neighbor 10.0.0.2 activate
neighbor 10.0.0.4 activate
R4
router bgp 1
bgp router-id 10.0.0.4
no bgp default ipv4-unicast
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.2 peer-group AS1
neighbor 10.0.0.3 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor 10.0.0.2 activate
neighbor 10.0.0.3 activate
131
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.12.2 255.255.255.0
R2#show ip vrf A
Name Default RD Interfaces
A 1:1 Fa0/1
R1#ping 10.1.12.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.12.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 16/47/72 ms
R3
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.13.3 255.255.255.0
R3#show ip vrf
Name Default RD Interfaces
A 1:1 Fa0/1
R1#ping 10.1.13.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.13.3, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 24/49/96 ms
132
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R1
router eigrp 1
network 10.0.0.0
network 100.0.0.0
no auto-summary
R2
router eigrp 2
address-family ipv4 vrf A
redistribute bgp 1 metric 10000 255 255 1 1500
network 10.0.0.0
autonomous-system 1
no auto-summary
router bgp 1
address-family ipv4 vrf A
redistribute eigrp 1
R3
router eigrp 3
address-family ipv4 vrf A
default-metric 10000 100 255 1 1500
redistribute bgp 1 metric 10000 255 255 1 1500
network 10.0.0.0
autonomous-system 1
no auto-summary
router bgp 1
address-family ipv4 vrf A
redistribute eigrp 1
133
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4
ip vrf A
rd 1:2
route-target export 1:2
route-target import 1:1
interface FastEthernet1/0
ip vrf forwarding A
ip address 10.1.45.4 255.255.255.0
R4#show ip vrf
Name Default RD Interfaces
A 1:2 Fa1/0
§ R5 debe establecer sesion OSPF 69 con R4. Publicar los prefijos 100.1.0.0/32 – 100.4.0.0/32
§ PE-R4 crea distribucion mutua (BGP<->IGP)
134
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Notar que las IP secundarias se publican por defecto en OSPF. Podemos publicar la IP primaria unicamente usando el comando
de la interface ip ospf 69 area 0 secondaries none.
R5
interface Loopback0
ip address 100.0.0.5 255.255.255.255
ip address 100.1.0.5 255.255.255.255 secondary
ip address 100.2.0.5 255.255.255.255 secondary
ip address 100.3.0.5 255.255.255.255 secondary
ip address 100.4.0.5 255.255.255.255 secondary
ip ospf 69 area 0
interface FastEthernet0/0
ip address 10.1.45.5 255.255.255.0
ip ospf network point-to-point
ip ospf 69 area 0
router ospf 69
router-id 100.0.0.5
R4
interface FastEthernet1/0
ip vrf forwarding A
ip address 10.1.45.4 255.255.255.0
ip ospf network point-to-point
ip ospf 69 area 0
router bgp 1
address-family ipv4 vrf A
redistribute ospf 69 vrf A match internal external 1 external 2
Site of Origin
R2
ip vrf A
route-target import 1:2
R2
ip vrf A
135
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
route-map SOO permit 10
136
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/1
ip vrf sitemap SOO
R3
route-map SOO permit 10
set extcommunity soo 69:69
interface FastEthernet0/1
ip vrf sitemap SOO
137
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
MP-iBGP
Para el intercambio de etiquetas vpnv4 usamos MP-iBGP en AS1. R4 es el Route-Reflector y sus clientes son R2, R3, y R5. Para
minimizar la configuración y los recursos usaremos peer-group en el RR.
R2
router bgp 1
bgp router-id 10.0.0.2
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.0.0.4 remote-as 1
neighbor 10.0.0.4 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.4 activate
neighbor 10.0.0.4 send-community extended
exit-address-family
R3
router bgp 1
bgp router-id 10.0.0.3
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.0.0.4 remote-as 1
neighbor 10.0.0.4 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.4 activate
neighbor 10.0.0.4 send-community extended
exit-address-family
138
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5
router bgp 1
bgp router-id 10.0.0.5
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.0.0.4 remote-as 1
neighbor 10.0.0.4 update-source Loopback0
!
address-family vpnv4
neighbor 10.0.0.4 activate
neighbor 10.0.0.4 send-community extended
exit-address-family
R4
router bgp 1
bgp router-id 10.0.0.4
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 description INTERNOS
neighbor AS1 update-source Loopback0
neighbor 10.0.0.2 peer-group AS1
neighbor 10.0.0.3 peer-group AS1
neighbor 10.0.0.5 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor AS1 route-reflector-client
neighbor 10.0.0.2 activate
neighbor 10.0.0.3 activate
neighbor 10.0.0.5 activate
exit-address-family
139
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
vrf definition A
rd 1:1
address-family ipv4
route-target export 1:1
route-target import 1:1
exit-address-family
router isis A
vrf A
net 49.0001.0000.0000.0002.00
is-type level-2-only
log-adjacency-changes
redistribute bgp 1
interface FastEthernet0/1
vrf forwarding A
ip address 10.1.12.2 255.255.255.0
ip router isis A
isis circuit-type level-2-only
router bgp 1
address-family ipv4 vrf A
no synchronization
redistribute isis A level-2
exit-address-family
R3
vrf definition A
rd 1:1
address-family ipv4
route-target export 1:1
route-target import 1:1
router isis A
vrf A
net 49.0001.0000.0000.0003.00
is-type level-2-only
redistribute bgp 1
140
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/1
vrf forwarding A
ip address 10.1.13.3 255.255.255.0
ip router isis A
isis circuit-type level-2-only
router bgp 1
address-family ipv4 vrf A
no synchronization
redistribute isis A level-2
R1
interface FastEthernet0/0
ip address 10.1.12.1 255.255.255.0
ip router isis
isis circuit-type level-2-only
interface FastEthernet0/1
ip address 10.1.13.1 255.255.255.0
ip router isis
isis circuit-type level-2-only
router isis
net 49.0001.0000.0000.0001.00
passive-interface Loopback0
141
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Sitio 2
R5
vrf definition A
rd 1:1
address-family ipv4
route-target export 1:1
route-target import 1:1
exit-address-family
router isis A
vrf A
net 49.0001.0000.0000.0005.00
is-type level-2-only
log-adjacency-changes
redistribute bgp 1
interface FastEthernet0/1
vrf forwarding A
ip address 10.1.56.5 255.255.255.0
ip router isis A
isis circuit-type level-2-only
router bgp 1
address-family ipv4 vrf A
no synchronization
redistribute isis A level-2
exit-address-family
R6
interface FastEthernet0/0
ip address 10.1.56.6 255.255.255.0
ip router isis
isis circuit-type level-2-only
router isis
net 49.0001.0000.0000.0006.00
passive-interface Loopback0
Nota: Sitio 1 es dual home (dos salidas), para este escenario el bit UP/Down debe estar establecido por los PEs o las rutas
redistribuidas de BGP a IS-IS volverán a ser redistribuidas de IS-IS a BGP. El siguiente ejemplo nos muestra un paquete dirección
origen 100.0.0.1 con direccion destino 100.0.0.6 en un loop infinito (poner atencion al muñequeo entre CE-R1 y PE-R3). El
proceso ISIS se encarga de establecer el bit y evita este problema.
144
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
R2
router bgp 1
bgp router-id 10.0.0.2
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.3 peer-group AS1
neighbor 10.0.0.5 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor 10.0.0.3 activate
neighbor 10.0.0.5 activate
R3
router bgp 1
bgp router-id 10.0.0.3
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
145
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
address-family vpnv4
neighbor AS1 send-community extended
neighbor 10.0.0.2 activate
neighbor 10.0.0.5 activate
R5
router bgp 1
bgp router-id 10.0.0.5
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.2 peer-group AS1
neighbor 10.0.0.3 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor 10.0.0.2 activate
neighbor 10.0.0.3 activate
146
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.12.2 255.255.255.0
R2#show ip vrf A
Name Default RD Interfaces
A 1:1 Fa0/1
R1#ping 10.1.12.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.12.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 16/47/72 ms
R3
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.13.3 255.255.255.0
R1#ping 10.1.13.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.13.3, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 24/49/96 ms
Es recomendable chequear en la tabla BGP los prefijos que publicamos, es un error común insertar una máscara incorrecta y el
sistema no advierte el error. Para activar BGP VRF debemos estar en el modo de configuración router bgp, y acceder al la familia
VRF, luego usamos el comamando neighbor ip_vecino remote-as as. Normalmente el proceso activa de inmediato la sesión BGP.
R1
router bgp 10
bgp router-id 100.0.0.1
no bgp default ipv4-unicast
neighbor 10.1.12.2 remote-as 1
neighbor 10.1.13.3 remote-as 1
address-family ipv4
network 10.1.12.0 mask 255.255.255.0
network 100.0.0.1 mask 255.255.255.255
neighbor 10.1.12.2 activate
neighbor 10.1.13.3 activate
R1#show ip bgp
BGP table version is 3, local router ID is 100.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.1.12.0/24 0.0.0.0 0 32768 i
*> 100.0.0.1/32 0.0.0.0 0 32768 i
R2
router bgp 1
address-family ipv4 vrf A
no synchronization
neighbor 10.1.12.1 remote-as 10
neighbor 10.1.12.1 activate
R3
router bgp 1
address-family ipv4 vrf A
no synchronization
neighbor 10.1.13.1 remote-as 10
neighbor 10.1.13.1 activate
R5
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.56.5 255.255.255.0
R5#show ip vrf A
Name Default RD Interfaces
A 1:1 Fa0/1
R6#ping 10.1.56.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.12.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 16/47/72 ms
En ambos sitios es necesario publicar el/los enlaces PE-CE con el comando network X.X.X.X mask X.X.X.X si queremos tener
conectividad extremo a extremo. Otra alternatva es usar en el PE el comando distribute connected en la familia vrf de BGP.
R6
router bgp 20
bgp router-id 100.0.0.6
149
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
address-family ipv4
network 10.1.56.0 mask 255.255.255.0
network 100.0.0.6 mask 255.255.255.255
neighbor 10.1.56.5 activate
R6#show ip bgp
BGP table version is 3, local router ID is 100.0.0.6
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.1.56.0/24 0.0.0.0 0 32768 i
*> 100.0.0.6/32 0.0.0.0 0 32768 i
R5
router bgp 1
address-family ipv4 vrf A
no synchronization
neighbor 10.1.56.6 remote-as 20
neighbor 10.1.56.6 activate
exit-address-family
R2 puede alcanzar el prefijo 100.0.0.1/32 directamente por R1 y/o a través de R3. Pero surge un problema ya que las Distancias
Administrativas son distintas, y el proceso siempre escoje AD menor (eBGP AD = 20, iBGP AD = 200). EL IOS cuenta con el
comando maximum-paths eibgp que permite instalar rutas hacia un mismo destino pero conocidas con distintas ADs.
R2
router bgp 1
address-family ipv4 vrf A
maximum-paths eibgp 2
151
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
R2
router bgp 1
bgp router-id 10.0.0.2
no bgp default ipv4-unicast
neighbor 10.0.0.5 remote-as 1
neighbor 10.0.0.5 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.5 activate
neighbor 10.0.0.5 send-community extended
R5
router bgp 1
bgp router-id 10.0.0.5
no bgp default ipv4-unicast
neighbor 10.0.0.2 remote-as 1
neighbor 10.0.0.2 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.2 activate
neighbor 10.0.0.2 send-community extended
152
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.12.2 255.255.255.0
R2#show ip vrf A
Name Default RD Interfaces
A 1:1 Fa0/1
R1#ping 10.1.12.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.12.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 16/47/72 ms
R1
router bgp 10
bgp router-id 100.0.0.1
no bgp default ipv4-unicast
neighbor 10.1.12.2 remote-as 1
address-family ipv4
network 100.0.0.1 mask 255.255.255.255
neighbor 10.1.12.2 activate
R1#show ip bgp
BGP table version is 3, local router ID is 100.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.1.12.0/24 0.0.0.0 0 32768 i
*> 100.0.0.1/32 0.0.0.0 0 32768 i
153
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
router bgp 1
address-family ipv4 vrf A
no synchronization
neighbor 10.1.12.1 remote-as 10
neighbor 10.1.12.1 activate
redistribute connected
R5
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/1
154
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
ip vrf forwarding A
ip address 10.1.56.5 255.255.255.0
R5#show ip vrf A
Name Default RD Interfaces
A 1:1 Fa0/1
R6#ping 10.1.56.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.12.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 16/47/72 ms
R6
router bgp 10
bgp router-id 100.0.0.6
no bgp default ipv4-unicast
neighbor 10.1.56.5 remote-as 1
address-family ipv4
network 100.0.0.6 mask 255.255.255.255
neighbor 10.1.56.5 activate
R6#show ip bgp
BGP table version is 5, local router ID is 100.0.0.6
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
R5
router bgp 1
address-family ipv4 vrf A
no synchronization
neighbor 10.1.56.6 remote-as 10
neighbor 10.1.56.6 activate
redistribute connected
El ejemplo muestra que el prefijo 100.0.0.6/32 no puede ser instalado en la tabla BGP R1 porque la actualización contiene el
AS10 (our own AS), metodo que usa BGP para evitar loops. Usamos debug ip bgp ipv4 unicast updates, y comprobamos el
comportamiento.
R1#show debugging
155
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
IP routing:
BGP updates debugging is on for address family: IPv4 Unicast
R2
router bgp 1
address-family ipv4 vrf A
neighbor 10.1.12.1 as-override
R1#show ip bgp
BGP table version is 7, local router ID is 100.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
R6#show ip bgp
BGP table version is 5, local router ID is 100.0.0.6
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
R5
router bgp 1
address-family ipv4 vrf A
neighbor 10.1.56.6 as-override
BGP(0): 10.1.56.5 rcvd UPDATE w/ attr: nexthop 10.1.56.5, origin i, merged path 1 1, AS_PATH
BGP(0): 10.1.56.5 rcvd 100.0.0.1/32
BGP: TX IPv4 Unicast Net global 100.0.0.1/32 Changed.
BGP(0): 10.1.56.5 rcv UPDATE about 100.0.0.6/32 -- withdrawn
BGP(0): 10.1.56.5 rcvd UPDATE w/ attr: nexthop 10.1.56.5, origin ?, merged path 1, AS_PATH
BGP(0): 10.1.56.5 rcvd 10.1.12.0/24...duplicate ignored
BGP(0): 10.1.56.5 rcvd UPDATE w/ attr: nexthop 10.1.56.5, origin ?, metric 0, merged path 1, AS_PATH
BGP(0): 10.1.56.5 rcvd 10.1.56.0/24...duplicate ignored
BGP(0): Revise route installing 1 of 1 routes for 100.0.0.1/32 -> 10.1.56.5(global) to main IP table
R6#show ip bgp
BGP table version is 6, local router ID is 100.0.0.6
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.1.12.0/24 10.1.56.5 0 1?
r> 10.1.56.0/24 10.1.56.5 0 0 1?
*> 100.0.0.1/32 10.1.56.5 0 11i
*> 100.0.0.6/32 0.0.0.0 0 32768 i
158
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
Es necesario:
- 2 RT distintas
- Diferentes RD
R6 y R1 tienen dos enlaces, uno es usado para enviar información de ruteo para la vrf spoke (172.16.16.0/24) y el otro para la
vrf hub (172.16.61.0/24). En R6 la VRF spoke recibe actualizaciones para rutas desde los sitios 2, 3 y 4. La VRF hub se encarga
de recibir las actualizaciones desde R1 y enviarlas a cada spoke.
159
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Nota: Se ha tenido cuidado de no publicar el enlace CE/PE, (evitando usar redistributed conected o publicando directamente
cada enlace en el proceso BGP) para mantener claridad cuando tengamos que comprobar las configuraciones (menos rutas en la
tabla de enrutamiento). En consecuencia para pruebas de conectividad entre sitios los pings o traceroutes se usará la loopback 0
como source.
Paso 1: Configuración Backbone. MP-iBGP
Los Spokes forman sesiones BGP VPN con el router HUB.
R6
router bgp 1
bgp router-id 10.0.0.6
no bgp default ipv4-unicast
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor 10.0.0.7 peer-group AS1
neighbor 10.0.0.8 peer-group AS1
neighbor 10.0.0.9 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor 10.0.0.7 activate
neighbor 10.0.0.8 activate
neighbor 10.0.0.9 activate
R7
router bgp 1
bgp router-id 10.0.0.7
no bgp default ipv4-unicast
neighbor 10.0.0.6 remote-as 1
neighbor 10.0.0.6 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.6 activate
neighbor 10.0.0.6 send-community extended
R8
router bgp 1
bgp router-id 10.0.0.8
no bgp default ipv4-unicast
neighbor 10.0.0.6 remote-as 1
neighbor 10.0.0.6 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.6 activate
neighbor 10.0.0.6 send-community extended
R9
router bgp 1
bgp router-id 10.0.0.9
no bgp default ipv4-unicast
neighbor 10.0.0.6 remote-as 1
neighbor 10.0.0.6 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.6 activate
neighbor 10.0.0.6 send-community extended
Sitio 1
Formamos peering CE/PE (R1/R6). Notar que los vecinos BGP crearan dos sesiones distintas para el mismo AS.
Publicar loopback 0 del CE.
R1
router bgp 10
bgp router-id 100.0.0.1
no bgp default ipv4-unicast
neighbor 172.16.16.6 remote-as 1
neighbor 172.16.61.6 remote-as 1
address-family ipv4
neighbor 172.16.16.6 activate
neighbor 172.16.61.6 activate
network 100.0.0.1 mask 255.255.255.255
R6
ip vrf hub
rd 1:11
route-target export 1:10
ip vrf spoke
rd 1:10
route-target import 1:20
route-target import 1:30
route-target import 1:40
interface FastEthernet0/0
ip vrf forwarding spoke
ip address 172.16.16.6 255.255.255.0
interface FastEthernet0/1
ip vrf forwarding hub
ip address 172.16.61.6 255.255.255.0
router bgp 1
address-family ipv4 vrf spoke
neighbor 172.16.16.1 remote-as 10
neighbor 172.16.16.1 activate
Sitio 2
R2
router bgp 20
no bgp default ipv4-unicast
neighbor 172.16.27.7 remote-as 1
address-family ipv4
neighbor 172.16.27.7 activate
network 100.0.0.2 mask 255.255.255.255
R7
ip vrf spoke
rd 1:20
route-target export 1:20
route-target import 1:10
interface FastEthernet0/0
ip vrf forwarding spoke
ip address 172.16.27.7 255.255.255.0
router bgp 1
address-family ipv4 vrf spoke
neighbor 172.16.27.2 remote-as 20
neighbor 172.16.27.2 activate
162
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Sitio 3
R3
router bgp 30
no bgp default ipv4-unicast
neighbor 172.16.38.8 remote-as 1
address-family ipv4
neighbor 172.16.38.8 activate
network 100.0.0.3 mask 255.255.255.255
R8
ip vrf spoke
rd 1:30
route-target export 1:30
route-target import 1:10
interface FastEthernet0/0
ip vrf forwarding spoke
ip address 172.16.38.8 255.255.255.0
router bgp 1
address-family ipv4 vrf spoke
neighbor 172.16.38.3 remote-as 30
neighbor 172.16.38.3 activate
Sitio 4
R4
router bgp 40
no bgp default ipv4-unicast
neighbor 172.16.49.9 remote-as 1
address-family ipv4
neighbor 172.16.49.9 activate
network 100.0.0.4 mask 255.255.255.255
R9
ip vrf spoke
rd 1:40
route-target export 1:40
route-target import 1:10
interface FastEthernet0/0
ip vrf forwarding spoke
ip address 172.16.49.9 255.255.255.0
router bgp 1
address-family ipv4 vrf spoke
neighbor 172.16.49.4 remote-as 40
neighbor 172.16.49.4 activate
Como comentamos al comenzar, R6 es el Hub para la VPN, y R1 para IP. Analizaremos el proceso Hub & Spoke MPLS VPN para
un prefijo particular.
163
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Actualización desde R3 a R1
Tomemos como ejemplo el prefijo 100.0.0.3/32 en R3 y como se propaga a R4.
1. La actualización para la ruta 100.0.0.3/32 es publicada por R3 a R8 como una ruta IPv4.
2. R8 convierte la ruta IPv4 a VPNv4 (RT:prefijo = 1:30:100.0.0.3/32) agregando el RT 1:30 y se publica como next-hop
(100.0.0.3) a R6.
3. La actualización es recibida por R6 por medio de la VRF spoke importada con RT 1:30.
4. R6 convierte la ruta VPNv4 en IPv4 y la propaga a R1 (enlace 172.16.16.0/24).
5. R1 envía la actualización de 100.0.0.3/32 a R6 sobre el enlace 172.16.61.0/24 que está asociado a la VRF hub. R6 convierte
la ruta IPv4 a VPNv4 agregando el RT 1:10 y en lugar de publicar a R8 como next-hop, se publica el mismo como next-hop a R9.
6. R9 está configurado para aceptar RT 1:10 (VRF hub en PE1) y por lo tanto importa la ruta VPNv4.
7. Finalmente R9 convierte la ruta VPNv4 a IPv4 y publica la actualización a R4.
Puesto que la actualización incluye el atributo AS_PATH, en este punto del trayecto tenemos AS_PATH 30 1. Posteriormente,
como la actualizacion vuelve a ingresar a a PE1, este ve su propio AS y rechaza la actualización (comportamiento por defecto para
evitar loops). Sin hacer cambios en el AS_PATH no podremos comunicar los distintos sitios. Para anular este comportamiento
usamos el comando neighbor neighbor allowas-in. En la mayoría de los casos debemos evitar utilizar este comando.
El siguientee debug nos muestra el comportamiento (rechazar si AS_PATH contiene el propio AS) de PE1 cuando recibe
actualizaciones desde los distintos sitios desde R1 a través del enlace 172.16.61.0/24 asociado a la VRF hub.
BGP(0): 172.16.61.1 rcv UPDATE w/ attr: nexthop 172.16.61.1, origin i, originator 0.0.0.0, merged path 10 1 40, AS_PATH
, community , extended community , SSA attribute
BGPSSA ssacount is 0
BGP(0): 172.16.61.1 rcv UPDATE about 100.0.0.4/32 -- DENIED due to: AS-PATH contains our own AS;
BGP: 172.16.61.1 Modifying prefix 100.0.0.4/32 from 0 -> 4 address
BGP(0): 172.16.61.1 rcv UPDATE w/ attr: nexthop 172.16.61.1, origin i, originator 0.0.0.0, merged path 10 1 30, AS_PATH
, community , extended community , SSA attribute
BGPSSA ssacount is 0
BGP(0): 172.16.61.1 rcv UPDATE about 100.0.0.3/32 -- DENIED due to: AS-PATH contains our own AS;
BGP: 172.16.61.1 Modifying prefix 100.0.0.3/32 from 0 -> 4 address
BGP(0): 172.16.61.1 rcv UPDATE w/ attr: nexthop 172.16.61.1, origin i, originator 0.0.0.0, merged path 10 1 20, AS_PATH
, community , extended community , SSA attribute
BGPSSA ssacount is 0
BGP(0): 172.16.61.1 rcv UPDATE about 100.0.0.2/32 -- DENIED due to: AS-PATH contains our own AS;
BGP: 172.16.61.1 Modifying prefix 100.0.0.2/32 from 0 -> 4 address
165
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
MP-iBGP AS1
R4 y R5 son RR para el cluster 69 (AS1)
R2
router bgp 1
bgp router-id 10.0.0.2
no bgp default ipv4-unicast
neighbor RR peer-group
neighbor RR remote-as 1
neighbor RR update-source Loopback0
neighbor 10.0.0.4 peer-group RR
neighbor 10.0.0.5 peer-group RR
address-family vpnv4
neighbor RR send-community extended
neighbor 10.0.0.4 activate
neighbor 10.0.0.5 activate
R3
router bgp 1
bgp router-id 10.0.0.3
no bgp default ipv4-unicast
neighbor RR peer-group
neighbor RR remote-as 1
neighbor RR update-source Loopback0
neighbor 10.0.0.4 peer-group RR
neighbor 10.0.0.5 peer-group RR
address-family vpnv4
neighbor RR send-community extended
neighbor 10.0.0.4 activate
166
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4
router bgp 1
bgp router-id 10.0.0.4
no bgp default ipv4-unicast
bgp cluster-id 69
bgp log-neighbor-changes
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.2 peer-group AS1
neighbor 10.0.0.3 peer-group AS1
neighbor 10.0.0.5 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor AS1 route-reflector-client
neighbor 10.0.0.2 activate
neighbor 10.0.0.3 activate
neighbor 10.0.0.5 activate
R5
router bgp 1
bgp router-id 10.0.0.5
no bgp default ipv4-unicast
bgp cluster-id 69
bgp log-neighbor-changes
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.2 peer-group AS1
neighbor 10.0.0.3 peer-group AS1
neighbor 10.0.0.4 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor AS1 route-reflector-client
neighbor 10.0.0.2 activate
neighbor 10.0.0.3 activate
neighbor 10.0.0.4 activate
167
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
MP-iBGP AS2
R6
router bgp 2
bgp router-id 10.0.0.6
no bgp default ipv4-unicast
neighbor 10.0.0.7 remote-as 2
neighbor 10.0.0.7 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.7 activate
neighbor 10.0.0.7 send-community extended
R7
router bgp 2
bgp router-id 10.0.0.7
no bgp default ipv4-unicast
neighbor 10.0.0.6 remote-as 2
neighbor 10.0.0.6 update-source Loopback0
address-family vpnv4
168
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
MP-eBGP AS1/AS2
R4
router bgp 1
neighbor 10.1.46.6 remote-as 2
address-family vpnv4
neighbor 10.1.46.6 activate
neighbor 10.1.46.6 send-community extended
R6
router bgp 2
neighbor 10.1.46.4 remote-as 1
address-family vpnv4
neighbor 10.1.46.4 activate
neighbor 10.1.46.4 send-community extended
R5
router bgp 1
neighbor 10.1.57.7 remote-as 2
address-family vpnv4
neighbor 10.1.57.7 activate
neighbor 10.1.57.7 send-community extended
R7
router bgp 2
neighbor 10.1.57.5 remote-as 1
address-family vpnv4
neighbor 10.1.57.5 activate
neighbor 10.1.57.5 send-community extended
10.0.0.4 4 1 18 19 1 0 0 00:15:02 0
10.1.57.7 4 2 4 4 1 0 0 00:00:04 0
VPN Sitio 1
La VRF A debe usar RD/RT 1:1
R3
ip vrf A
rd 1:1
route-target export 1:1
route-target import 2:1
ip vrf B
rd 1:2
route-target export 1:2
route-target import 2:2
interface FastEthernet0/0
no shutdown
interface FastEthernet0/0.150
encapsulation dot1Q 150
ip vrf forwarding A
ip address 150.1.13.3 255.255.255.0
interface FastEthernet0/0.160
encapsulation dot1Q 160
ip vrf forwarding B
ip address 160.1.13.3 255.255.255.0
R1
interface FastEthernet0/0
no shutdown
interface FastEthernet0/0.150
encapsulation dot1Q 150
ip address 150.1.13.1 255.255.255.0
!
interface FastEthernet0/0.160
encapsulation dot1Q 160
ip address 160.1.13.1 255.255.255.0
R1#ping 150.1.13.3
Sending 5, 100-byte ICMP Echos to 150.1.12.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 20/59/108 ms
R1#ping 160.1.13.3
Sending 5, 100-byte ICMP Echos to 160.1.12.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 72/97/108 ms
170
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R1
interface FastEthernet0/0.150
ip ospf network point-to-point
ip ospf 10 area 0
interface Loopback0
ip address 10.1.1.1 255.255.255.255
ip ospf 10 area 0
R3
interface FastEthernet0/0.150
ip ospf network point-to-point
ip ospf 10 area 0
router bgp 1
address-family ipv4 vrf A
redistribute ospf 10 vrf A match internal external 1 external 2
R1
router eigrp 1
network 160.1.13.1 0.0.0.0
network 100.0.0.0
171
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
passive-interface FastEthernet0/0.150
no auto-summary
R3
router eigrp 3
address-family ipv4 vrf B
default-metric 10000 1000 255 1 1500
redistribute bgp 1
network 160.1.13.3 0.0.0.0
autonomous-system 1
no auto-summary
router bgp 1
address-family ipv4 vrf B
redistribute eigrp 1
VPN Sitio 2
Esta configuracion define peering R8/R6, R8/R7 MP-eBGP
La VRF B debe usar RD/RT 2:1 OSPF 10, RD/RT 2:2 EIGRP 1
R6
router bgp 2
no bgp default route-target filter
neighbor 10.1.68.8 remote-as 3
address-family vpnv4
neighbor 10.1.68.8 activate
neighbor 10.1.68.8 send-community extended
R7
router bgp 2
no bgp default route-target filter
neighbor 10.1.78.8 remote-as 3
address-family vpnv4
neighbor 10.1.78.8 activate
neighbor 10.1.78.8 send-community extended
172
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R8
router bgp 3
no bgp default route-target filter
bgp router-id 10.0.0.8
no bgp default ipv4-unicast
neighbor 10.1.68.6 remote-as 2
neighbor 10.1.78.7 remote-as 2
address-family vpnv4
neighbor 10.1.68.6 activate
neighbor 10.1.68.6 send-community extended
neighbor 10.1.78.7 activate
neighbor 10.1.78.7 send-community extended
R8
ip vrf A
rd 2:1
route-target export 2:1
route-target import 1:1
ip vrf B
rd 2:2
route-target export 2:2
route-target import 1:2
interface FastEthernet0/0
no shutdown
interface FastEthernet0/0.150
encapsulation dot1Q 150
ip vrf forwarding A
ip address 150.1.89.8 255.255.255.0
interface FastEthernet0/0.160
encapsulation dot1Q 160
ip vrf forwarding B
ip address 160.1.89.8 255.255.255.0
R9
interface FastEthernet0/0
no shutdown
interface FastEthernet0/0.150
encapsulation dot1Q 150
ip address 150.1.89.9 255.255.255.0
173
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/0.160
encapsulation dot1Q 160
ip address 160.1.89.9 255.255.255.0
R9#ping 150.1.89.8
Sending 5, 100-byte ICMP Echos to 150.1.89.8, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 32/97/136 ms
R9#ping 160.1.89.8
Sending 5, 100-byte ICMP Echos to 160.1.89.8, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 72/81/88 ms
R9
interface FastEthernet0/0.150
ip ospf network point-to-point
ip ospf 10 area 0
interface Loopback0
ip address 10.1.1.9 255.255.255.255
ip ospf 10 area 0
router ospf 10
router-id 10.1.1.9
R8
interface FastEthernet0/0.150
ip ospf network point-to-point
ip ospf 10 area 0
router bgp 3
address-family ipv4 vrf A
redistribute ospf 10 vrf A match internal external 1 external 2
R9
router eigrp 1
network 100.0.0.0
network 160.1.89.9 0.0.0.0
passive-interface FastEthernet0/0.150
no auto-summary
R8
address-family ipv4 vrf B
default-metric 10000 100 255 1 1500
redistribute bgp 3
network 160.1.89.8 0.0.0.0
autonomous-system 1
exit-address-family
router bgp 3
address-family ipv4 vrf B
redistribute eigrp 1
Comprobamos el LABEL SWITCHED PATH (LSP) esté completo desde los PEs de ambos sitios. Podemos ver lo que mas me
temia, el next hop MP-iBGP es desconocido para R2 y R3. Modificamos el next-hop en AS1 y AS2.
R4
router bgp 1
address-family vpnv4
neighbor AS1 next-hop-self
R5
router bgp 1
address-family vpnv4
neighbor AS1 next-hop-self
R6
router bgp 2
address-family vpnv4
neighbor 10.0.0.7 next-hop-self
R7
router bgp 2
address-family vpnv4
neighbor 10.0.0.6 next-hop-self
Nuestro estudio ha determinado que el trafico desde Sitio1 a Sitio2 utiliza el path MP-eBGP R4/R6, y el trafico desde Sitio2 a
Sitio1 utiliza el path MP-eBGP R5/R7.
178
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
La VPN A debe usar el path MP-eBGP R4/R6. La VPN B debe usar el path MP-eBGP R5/R7
La forma más efectiva de cumplir estas politicas es usar RR GROUP.
Permitimos en enlace R4/R6 los RTs 1:1 y 2:1. Permitimos en enlace R4/R6 los RTs 2:1 y 2:2
R4
ip extcommunity-list 10 permit rt 1:1
ip extcommunity-list 10 permit rt 2:1
router bgp 1
address-family vpnv4
bgp rr-group 10
R5
ip extcommunity-list 10 permit rt 1:2
ip extcommunity-list 10 permit rt 2:2
router bgp 1
address-family vpnv4
bgp rr-group 10
179
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
181
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Setup
Preload initial configurations
Building Blocks
§ IGP
§ MPLS/LDP
§ iBGP
§ MP-iBGP
§ eBGP
§ VPNs (VRFs)
§ Statics Routes
§ Test and Troubleshooting
§ IGP
Configure IS-IS Level 2 with de follow NETs:
- R3 Net 49.0001.0000.0000.0003.00
- R4 Net 49.0001.0000.0000.0004.00
- R5 Net 49.0001.0000.0000.0005.00
- R6 Net 49.0001.0000.0000.0006.00
R3
interface FastEthernet0/1
ip router isis
isis network point-to-point
interface FastEthernet1/0
ip router isis
isis network point-to-point
182
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
router isis
net 49.0001.0000.0000.0003.00
is-type level-2-only
metric-style wide level-2
log-adjacency-changes all
passive-interface Loopback0
R4
interface FastEthernet0/1
ip router isis
isis network point-to-point
interface FastEthernet1/0
ip router isis
isis network point-to-point
router isis
net 49.0001.0000.0000.0004.00
is-type level-2-only
metric-style wide level-2
log-adjacency-changes all
passive-interface Loopback0
R5
interface FastEthernet0/0
ip router isis
isis network point-to-point
interface FastEthernet0/1
ip router isis
isis network point-to-point
interface FastEthernet1/0
ip router isis
isis network point-to-point
router isis
net 49.0001.0000.0000.0005.00
is-type level-2-only
metric-style wide level-2
log-adjacency-changes all
passive-interface Loopback0
R6
interface FastEthernet0/0
ip router isis
isis network point-to-point
interface FastEthernet0/1
ip router isis
isis network point-to-point
interface FastEthernet1/0
ip router isis
isis network point-to-point
router isis
net 49.0001.0000.0000.0006.00
183
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
is-type level-2-only
metric-style wide level-2
log-adjacency-changes all
passive-interface Loopback0
§ MPLS/LDP
R3
ip cef
mpls ip
mpls label protocol ldp
mpls label range 310 399 static 300 309
interface FastEthernet0/1
mpls ip
interface FastEthernet1/0
mpls ip
R4
ip cef
mpls ip
mpls label protocol ldp
mpls label range 410 499 static 400 409
interface FastEthernet0/1
mpls ip
184
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet1/0
mpls ip
R5
ip cef
mpls ip
mpls label protocol ldp
mpls label range 510 599 static 500 509
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
interface FastEthernet1/0
mpls ip
R6
ip cef
mpls ip
mpls label protocol ldp
mpls label range 610 699 static 600 609
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
interface FastEthernet1/0
mpls ip
§ iBGP
§ MP-iBGP
R5/R6 ->RR
R3
router bgp 1
bgp router-id 10.0.0.3
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.5 peer-group AS1
neighbor 10.0.0.6 peer-group AS1
!
address-family ipv4
no synchronization
network 10.0.0.3 mask 255.255.255.255
neighbor 10.0.0.5 activate
neighbor 10.0.0.6 activate
no auto-summary
exit-address-family
!
address-family vpnv4
neighbor AS1 send-community extended
neighbor 10.0.0.5 activate
neighbor 10.0.0.6 activate
exit-address-family
R4
router bgp 1
bgp router-id 10.0.0.4
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.5 peer-group AS1
neighbor 10.0.0.6 peer-group AS1
!
address-family ipv4
no synchronization
186
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5
router bgp 1
bgp router-id 10.0.0.5
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.3 peer-group AS1
neighbor 10.0.0.4 peer-group AS1
neighbor 10.0.0.6 peer-group AS1
!
address-family ipv4
no synchronization
network 10.0.0.5 mask 255.255.255.255
neighbor AS1 route-reflector-client
neighbor 10.0.0.3 activate
neighbor 10.0.0.4 activate
neighbor 10.0.0.6 activate
no auto-summary
exit-address-family
!
address-family vpnv4
neighbor AS1 send-community extended
neighbor AS1 route-reflector-client
neighbor 10.0.0.3 activate
neighbor 10.0.0.4 activate
neighbor 10.0.0.6 activate
exit-address-family
R6
router bgp 1
bgp router-id 10.0.0.6
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.3 peer-group AS1
neighbor 10.0.0.4 peer-group AS1
neighbor 10.0.0.5 peer-group AS1
!
address-family ipv4
no synchronization
network 10.0.0.6 mask 255.255.255.255
neighbor AS1 route-reflector-client
187
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
MP-eBGP
Reachability Default GW 100.0.0.7
R5/R6
R5
router bgp 1
neighbor 197.1.1.2 remote-as 2
address-family ipv4
neighbor 197.1.1.2 activate
neighbor AS1 next-hop-self
R6
router bgp 1
neighbor 197.2.1.2 remote-as 2
address-family ipv4
neighbor 197.2.1.2 activate
188
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R7
router bgp 2
bgp router-id 100.0.0.7
bgp log-neighbor-changes
neighbor 197.1.1.1 remote-as 1
neighbor 197.2.1.1 remote-as 1
!
address-family ipv4
no synchronization
network 100.0.0.7 mask 255.255.255.255
neighbor 197.1.1.1 activate
neighbor 197.2.1.1 activate
R3#show ip bgp
BGP table version is 9, local router ID is 10.0.0.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.3/32 0.0.0.0 0 32768 i
r i10.0.0.4/32 10.0.0.4 0 100 0 i
r>i 10.0.0.4 0 100 0 i
r i10.0.0.5/32 10.0.0.5 0 100 0 i
r>i 10.0.0.5 0 100 0 i
r i10.0.0.6/32 10.0.0.6 0 100 0 i
r>i 10.0.0.6 0 100 0 i
*>i100.0.0.7/32 10.0.0.5 0 100 0 2i
*i 10.0.0.6 0 100 0 2i
189
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R3
router bgp 1
address-family ipv4
maximum-paths ibgp 2
R4
router bgp 1
address-family ipv4
maximum-paths ibgp 2
§ VPNs (VRFs)
§ Statics Routes
§ Test and Troubleshooting
R3
190
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
router bgp 1
address-family ipv4
redistribute static
R1
ip route 0.0.0.0 0.0.0.0 fastEthernet 0/0 172.16.13.3
191
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
For load sharing we can modify the default per destination to per packet
VPN A Site 2
We must repeat the same steps in Site 2.
R4
vrf definition A
rd 1:4
192
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
!
address-family ipv4
route-target export 1:4
route-target import 1:3
exit-address-family
!
interface FastEthernet0/0
vrf forwarding A
ip address 172.16.24.4 255.255.255.0
router bgp 1
address-family ipv4
redistribute static
R2
ip route 0.0.0.0 0.0.0.0 fastEthernet 0/0 172.16.24.4
R4
interface FastEthernet0/1
ip load-sharing per-packet
interface FastEthernet1/0
ip load-sharing per-packet
193
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R3
interface Tunnel13
description **Tunnel Site 1**
ip address 192.168.1.3 255.255.255.0
tunnel source 172.16.13.3
tunnel destination 172.16.13.1
tunnel vrf OAM
interface FastEthernet0/1
ip load-sharing per-packet
interface FastEthernet1/0
ip load-sharing per-packet
router bgp 1
address-family ipv4
redistribute static
R1
interface Tunnel13
description **Tunnel Site 1**
ip address 192.168.1.1 255.255.255.0
tunnel source 172.16.13.1
tunnel destination 172.16.13.3
R1
access-list 10 permit 200.0.0.1
R1#debug ip packet 10
IP packet debugging is on for access list 10
3
IP: s=200.0.0.1 (local), d=100.0.0.7 (Tunnel13), len 28, sending
IP: s=200.0.0.1 (local), d=100.0.0.7 (Tunnel13), len 28, sending full packet
IP: s=200.0.0.1 (local), d=100.0.0.7 (FastEthernet0/0), len 28, sending
IP: s=200.0.0.1 (local), d=100.0.0.7 (FastEthernet0/0), len 28, sending full packet *
197.2.1.2 212 msec
IP: s=200.0.0.1 (local), d=100.0.0.7 (Tunnel13), len 28, sending
IP: s=200.0.0.1 (local), d=100.0.0.7 (Tunnel13), len 28, sending full packet
IP: s=200.0.0.1 (local), d=100.0.0.7 (FastEthernet0/0), len 28, sending
IP: s=200.0.0.1 (local), d=100.0.0.7 (FastEthernet0/0), len 28, sending full packet *
R1#no debug ip packet 10
IP packet debugging is off for access list 10
195
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en el diagrama.
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio; incluyen IGP y LDP en AS1 y AS2.
AS1 MP-iBGP
R2
router bgp 1
bgp router-id 10.0.0.2
no bgp default ipv4-unicast
neighbor 10.0.0.3 remote-as 1
neighbor 10.0.0.3 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.3 activate
neighbor 10.0.0.3 send-community extended
196
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4
router bgp 1
bgp router-id 10.0.0.4
no bgp default ipv4-unicast
neighbor 10.0.0.3 remote-as 1
address-family vpnv4
neighbor 10.0.0.3 activate
R3
router bgp 1
bgp router-id 10.0.0.3
no bgp default ipv4-unicast
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.2 peer-group AS1
neighbor 10.0.0.4 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor AS1 route-reflector-client
neighbor 10.0.0.2 activate
neighbor 10.0.0.4 activate
Sitio2 MP-iBGP
R5
router bgp 1
bgp router-id 10.0.0.5
no bgp default ipv4-unicast
neighbor 10.0.0.6 remote-as 1
neighbor 10.0.0.6 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.6 activate
neighbor 10.0.0.6 send-community extended
R7
router bgp 1
bgp router-id 10.0.0.7
no bgp default ipv4-unicast
neighbor 10.0.0.6 remote-as 1
neighbor 10.0.0.6 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.6 activate
neighbor 10.0.0.6 send-community extended
197
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R6
router bgp 1
bgp router-id 10.0.0.6
no bgp default ipv4-unicast
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.5 peer-group AS1
neighbor 10.0.0.7 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor AS1 route-reflector-client
neighbor 10.0.0.5 activate
neighbor 10.0.0.7 activate
R9
router bgp 2
bgp router-id 10.0.0.9
no bgp default ipv4-unicast
neighbor 10.0.0.10 remote-as 2
neighbor 10.0.0.10 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.10 activate
neighbor 10.0.0.10 send-community extended
R10
router bgp 2
bgp router-id 10.0.0.10
no bgp default ipv4-unicast
neighbor 10.0.0.9 remote-as 2
neighbor 10.0.0.9 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.9 activate
neighbor 10.0.0.9 send-community extended
10.0.0.10 4 2 4 4 1 0 0 00:00:04 0
R9
ip vrf AA
rd 2:1
route-target export 2:1
route-target import 2:1
interface FastEthernet0/1
ip vrf forwarding AA
ip address 10.1.49.9 255.255.255.0
R10
ip vrf AA
rd 2:1
route-target export 2:1
route-target import 2:1
interface FastEthernet0/1
ip vrf forwarding AA
ip address 10.1.105.10 255.255.255.0
LSP PE-PE
R4
interface FastEthernet0/1
199
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
ip ospf 1 area 0
ip ospf network point-to-point
mpls ip
R9
interface Loopback1
ip vrf forwarding AA
ip address 10.1.1.9 255.255.255.255
ip ospf 1 area 0
interface FastEthernet0/1
ip ospf 1 area 0
ip ospf network point-to-point
mpls ip
R5
interface FastEthernet0/1
ip ospf 1 area 0
ip ospf network point-to-point
mpls ip
R10
interface Loopback1
ip vrf forwarding AA
ip address 10.1.1.10 255.255.255.255
ip ospf 1 area 0
interface FastEthernet0/1
ip ospf 1 area 0
ip ospf network point-to-point
mpls ip
200
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R9
router ospf 1 vrf AA
redistribute bgp 2 subnets
router bgp 2
address-family ipv4 vrf AA
redistribute ospf 1 vrf AA match internal external 1 external 2
R10
router ospf 1 vrf AA
redistribute bgp 2 subnets
router bgp 2
address-family ipv4 vrf AA
redistribute ospf 1 vrf AA match internal external 1 external 2
201
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:2
interface FastEthernet0/0
ip vrf forwarding A
ip address 172.16.12.2 255.255.255.0
R1
router bgp 3
bgp router-id 100.0.0.1
no bgp default ipv4-unicast
neighbor 172.16.12.2 remote-as 1
address-family ipv4
network 100.0.0.1 mask 255.255.255.255
203
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
router bgp 1
address-family ipv4 vrf A
neighbor 172.16.12.1 remote-as 3
neighbor 172.16.12.1 activate
R7
ip vrf A
rd 1:2
route-target export 1:2
route-target import 1:1
interface FastEthernet0/0
ip vrf forwarding A
ip address 172.16.78.7 255.255.255.0
204
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R8
router bgp 3
bgp router-id 100.0.0.8
no bgp default ipv4-unicast
neighbor 172.16.78.7 remote-as 1
address-family ipv4
network 100.0.0.8 mask 255.255.255.255
neighbor 172.16.78.7 activate
R7
router bgp 1
address-family ipv4 vrf A
neighbor 172.16.78.8 remote-as 3
neighbor 172.16.78.8 activate
RR
R4
router bgp 1
neighbor 10.0.0.5 remote-as 1
neighbor 10.0.0.5 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.5 route-reflector-client
neighbor 10.0.0.3 route-reflector-client
neighbor 10.0.0.5 activate
neighbor 10.0.0.5 send-community extended
205
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5
router bgp 1
neighbor 10.0.0.4 remote-as 1
neighbor 10.0.0.4 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.4 route-reflector-client
neighbor 10.0.0.6 route-reflector-client
neighbor 10.0.0.4 activate
neighbor 10.0.0.4 send-community extended
R2
router bgp 1
address-family ipv4 vrf A
redistribute connected
neighbor 172.16.12.1 as-override
R7
router bgp 1
address-family ipv4 vrf A
redistribute connected
neighbor 172.16.78.8 as-override
R1#show ip bgp
BGP table version is 6, local router ID is 100.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 100.0.0.1/32 0.0.0.0 0 32768 i
*> 100.0.0.8/32 172.16.12.2 011i
r> 172.16.12.0/24 172.16.12.2 0 01?
*> 172.16.78.0/24 172.16.12.2 01?
R8#show ip bgp
BGP table version is 6, local router ID is 100.0.0.8
Network Next Hop Metric LocPrf Weight Path
*> 100.0.0.1/32 172.16.78.7 011i
*> 100.0.0.8/32 0.0.0.0 0 32768 i
*> 172.16.12.0/24 172.16.78.7 01?
r> 172.16.78.0/24 172.16.78.7 0 01?
206
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
207
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
R2
router bgp 1
bgp router-id 10.0.0.2
no bgp default ipv4-unicast
neighbor 10.0.0.4 remote-as 1
neighbor 10.0.0.4 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.4 activate
neighbor 10.0.0.4 send-community extended
208
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R3
router bgp 1
bgp router-id 10.0.0.3
no bgp default ipv4-unicast
neighbor 10.0.0.4 remote-as 1
neighbor 10.0.0.4 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.4 activate
neighbor 10.0.0.4 send-community extended
R4
router bgp 1
bgp router-id 10.0.0.4
no bgp default ipv4-unicast
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.2 peer-group AS1
neighbor 10.0.0.3 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor AS1 route-reflector-client
neighbor 10.0.0.2 activate
neighbor 10.0.0.3 activate
R6
router bgp 1
bgp router-id 10.0.0.6
no bgp default ipv4-unicast
neighbor 10.0.0.5 remote-as 1
neighbor 10.0.0.5 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.5 activate
neighbor 10.0.0.5 send-community extended
R7
router bgp 1
bgp router-id 10.0.0.7
no bgp default ipv4-unicast
neighbor 10.0.0.5 remote-as 1
neighbor 10.0.0.5 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.5 activate
209
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5
router bgp 1
bgp router-id 10.0.0.5
no bgp default ipv4-unicast
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.6 peer-group AS1
neighbor 10.0.0.7 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor AS1 route-reflector-client
neighbor 10.0.0.6 activate
neighbor 10.0.0.7 activate
R9
router bgp 2
bgp router-id 10.0.0.9
no bgp default ipv4-unicast
neighbor AS2 peer-group
neighbor AS2 remote-as 2
neighbor AS2 update-source Loopback0
neighbor 10.0.0.11 peer-group AS2
neighbor 10.0.0.12 peer-group AS2
address-family vpnv4
neighbor AS2 send-community extended
neighbor AS2 next-hop-self
neighbor 10.0.0.11 activate
neighbor 10.0.0.12 activate
R10
router bgp 2
bgp router-id 10.0.0.10
no bgp default ipv4-unicast
neighbor AS2 peer-group
neighbor AS2 remote-as 2
neighbor AS2 update-source Loopback0
neighbor 10.0.0.11 peer-group AS2
neighbor 10.0.0.12 peer-group AS2
address-family vpnv4
neighbor AS2 send-community extended
210
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R11
router bgp 2
bgp router-id 10.0.0.11
no bgp default ipv4-unicast
bgp cluster-id 2
neighbor AS2 peer-group
neighbor AS2 remote-as 2
neighbor AS2 update-source Loopback0
neighbor 10.0.0.9 peer-group AS2
neighbor 10.0.0.10 peer-group AS2
neighbor 10.0.0.12 peer-group AS2
address-family vpnv4
neighbor AS2 send-community extended
neighbor AS2 route-reflector-client
neighbor 10.0.0.9 activate
neighbor 10.0.0.10 activate
neighbor 10.0.0.12 activate
R12
router bgp 2
bgp router-id 10.0.0.12
no bgp default ipv4-unicast
bgp cluster-id 2
neighbor AS2 peer-group
neighbor AS2 remote-as 2
neighbor AS2 update-source Loopback0
neighbor 10.0.0.9 peer-group AS2
neighbor 10.0.0.10 peer-group AS2
neighbor 10.0.0.11 peer-group AS2
address-family vpnv4
neighbor AS2 send-community extended
neighbor AS2 route-reflector-client
neighbor 10.0.0.9 activate
neighbor 10.0.0.10 activate
neighbor 10.0.0.11 activate
211
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R9
ip vrf A
rd 2:1
route-target export 2:1
route-target import 2:1
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.49.9 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
router bgp 2
address-family ipv4 vrf A
redistribute ospf 1 vrf A match internal external 1 external 2
R4
interface FastEthernet0/1
ip address 10.1.49.4 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
R10
ip vrf A
rd 2:1
route-target export 2:1
route-target import 2:1
212
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.105.10 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
router bgp 2
address-family ipv4 vrf A
redistribute ospf 1 vrf A match internal external 1 external 2
R5
interface FastEthernet0/1
ip address 10.1.105.5 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
Ejemplo LSP
R4
interface FastEthernet0/1
mpls ip
R9
mpls ldp router-id vrf A fastEthernet 0/1 force
interface FastEthernet0/1
mpls ip
R5
interface FastEthernet0/1
mpls ip
R10
mpls ldp router-id vrf A fastEthernet 0/1 force
interface FastEthernet0/1
mpls ip
Formar Cluster RR
Tener cuidado con el comando bgp cluster ID. Si en ambos RRs configuramos el mismo ID rechazará las rutas
214
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4
router bgp 1
bgp cluster-id 1
neighbor 10.0.0.5 remote-as 1
neighbor 10.0.0.5 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.5 activate
neighbor 10.0.0.5 send-community extended
R5
router bgp 2
bgp cluster-id 1
neighbor 10.0.0.4 remote-as 1
neighbor 10.0.0.4 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.4 activate
neighbor 10.0.0.4 send-community extended
BGP(4): 10.0.0.5 rcv UPDATE w/ attr: nexthop 10.0.0.7, origin ?, localpref 100, metric 156160, originator 10.0.0.7,
clusterlist 0.0.0.1, merged path , AS_PATH , community , extended community RT:1:1 Cost:pre-bestpath:128:156160
0x8800:32768:0 0x8801:1:130560 0x8802:65281:25600 0x8803:65281:1500 0x8806:0:1677721608, SSA attribute
BGPSSA ssacount is 0
BGP(4): 10.0.0.5 rcv UPDATE about 1:1:100.0.0.8/32 -- DENIED due to: reflected from the same cluster;, label 722
BGP: 10.0.0.5 RR in same cluster. Reflected update dropped
BGP(4): 10.0.0.5 rcv UPDATE w/ attr: nexthop 10.0.0.7, origin ?, localpref 100, metric 0, originator 10.0.0.7, clusterlist
0.0.0.1, merged path , AS_PATH , community , extended commun
R4#cibsity RT:1:1 Cost:pre-bestpath:128:28160 0x8800:32768:0 0x8801:1:2560 0x8802:65280:25600 0x8803:65281:1500
0x8806:0:2886749703, SSA attribute
BGPSSA ssacount is 0
BGP(4): 10.0.0.5 rcv UPDATE about 1:1:172.16.78.0/24 -- DENIED due to: reflected from the same cluster;, label 724
215
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
ip vrf AA
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/0
ip vrf forwarding AA
ip address 172.16.12.2 255.255.255.0
R1#ping 172.16.12.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.12.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 44/193/364 ms
R2
router bgp 1
address-family ipv4 vrf AA
neighbor 172.16.12.1 remote-as 3
neighbor 172.16.12.1 activate
neighbor 172.16.12.1 as-override
redistribute connected
R1
router bgp 3
bgp router-id 100.0.0.1
no bgp default ipv4-unicast
neighbor 172.16.12.2 remote-as 1
address-family ipv4
network 100.0.0.1 mask 255.255.255.255
neighbor 172.16.12.2 activate
R7
ip vrf AA
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/0
216
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
ip vrf forwarding AA
ip address 172.16.78.7 255.255.255.0
R8#ping 172.16.78.7
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.78.7, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 28/175/396 ms
R7
router bgp 1
address-family ipv4 vrf AA
neighbor 172.16.78.8 remote-as 3
neighbor 172.16.78.8 activate
neighbor 172.16.78.8 as-override
redistribute connected
R8
router bgp 3
bgp router-id 100.0.0.8
no bgp default ipv4-unicast
neighbor 172.16.78.7 remote-as 1
!
address-family ipv4
no synchronization
network 100.0.0.8 mask 255.255.255.255
neighbor 172.16.78.7 activate
R1#show ip bgp
BGP table version is 6, local router ID is 100.0.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
218
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R8#show ip bgp
BGP table version is 6, local router ID is 100.0.0.8
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
219
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
R5
interface Serial1/0
ip address 172.16.56.5 255.255.255.0
encapsulation frame-relay
serial restart-delay 0
frame-relay map ip 172.16.56.5 502
frame-relay map ip 172.16.56.6 502 broadcast
no frame-relay inverse-arp
no shut
R2
interface Serial2/0
description **AC Frame-Relay**
encapsulation frame-relay
no shut
frame-relay interface-dlci 205 switched
220
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
El estado del enlace FR en R2 aparece Inactivo, esto se debe a que aun no establecemos el pseudowire entre R2 y R3.
En caso que debamos comunicar a traves de un PW protocolos de capa 2 con distinta encapsulacion (PPP/HDLP, FR/Ethernet,
PPP/Ethenet,..) dentro del PW usamos el comando interworking ip.
status: Enable pseudowire status extensions in label advertisement and label notification messages. This is not advised unless
your peer router also supports this functionality as it may lead to premature enabling of the dataplane on that peer.
R2
pseudowire-class AToM
encapsulation mpls
interworking ip
status
R6
interface FastEthernet0/0
ip address 172.16.56.6 255.255.255.0
duplex full
no shut
R3
pseudowire-class AToM
encapsulation mpls
interworking ip
status
interface FastEthernet0/0
description **AC Ethernet**
no shutdown
xconnect 10.0.0.2 10 pw-class AToM
VC statistics:
packet totals: receive 39, send 29
byte totals: receive 3900, send 3654
packet drops: receive 0, seq error 0, send 0
R5#ping 172.16.56.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.56.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 136/176/216 ms
R6#ping 172.16.56.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.56.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 140/170/224 ms
223
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Si queremos configurar OSPF entre ambos CEs, no olvidar el comando ip ospf network point-to-point entre AC. Esto es válido
para Ethernet y FR.
R5
interface Serial1/0
ip address 172.16.56.5 255.255.255.0
ip ospf network point-to-point
R5
router ospf 1
router-id 100.0.0.5
log-adjacency-changes
network 100.0.0.5 0.0.0.0 area 0
network 172.16.56.0 0.0.0.255 area 0
R6
interface FastEthernet0/0
ip address 172.16.56.6 255.255.255.0
ip ospf network point-to-point
router ospf 1
router-id 100.0.0.6
log-adjacency-changes
network 100.0.0.6 0.0.0.0 area 0
network 172.16.56.0 0.0.0.255 area 0
225
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
Habilitar AToM entre Sitio1 y Sitio2. Usar modo Ethernet (EoMPLS) simple entre PEs R2 y R3.
Usar VC ID 10 entre PEs.
La configuración para este escenario es bastante sencilla. La encapsulación PE-CE es Ethernet, necesitamos usar el comando
xconnet en el PE de cara al CE.
El protocolo de selalización entre PEs es LDP, usamos show mpls ldp discovery para comprobar sesion PE-PE.
R2
interface FastEthernet0/0
full-duplex
no shut
no cdp enable
xconnect 10.0.0.3 10 encapsulation mpls
R3
interface FastEthernet0/0
duplex full
no shut
no cdp enable
xconnect 10.0.0.2 10 encapsulation mpls
226
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
228
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5#ping 172.16.56.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.56.6, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 136/150/176 ms
Version :
Cisco IOS Software, 7200 Software (C7200-SPSERVICESK9-M), Version 15.0(1)M, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2009 by Cisco Systems, Inc.
Compiled Wed 30-Sep-09 07:49 by prod_rel_team
advertisement version: 2
Duplex: full
229
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
• Formar sesion PW R2/R3 de manera que exista comunicación entre la VLAN 56 y la VLAN 65 entre ambos sitios.
R5
interface FastEthernet0/0
no ip address
no shut
interface FastEthernet0/0.56
encapsulation dot1Q 56
ip address 172.16.56.5 255.255.255.0
interface FastEthernet0/0.65
encapsulation dot1Q 65
ip address 172.16.65.5 255.255.255.0
R6
interface FastEthernet0/0
no ip address
no shut
interface FastEthernet0/0.56
encapsulation dot1Q 56
ip address 172.16.56.6 255.255.255.0
interface FastEthernet0/0.65
encapsulation dot1Q 65
ip address 172.16.65.6 255.255.255.0
230
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
interface FastEthernet0/0
no shut
xconnect 10.0.0.3 10 encapsulation mpls
R3
interface FastEthernet0/0
no shut
xconnect 10.0.0.2 10 encapsulation mpls
Comprobacion PW
231
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
232
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
§ Interconectar la VLAN 56 de Sitio 1 con el segmento PE-CE de Sitio 2 utilizando el PseudoWire PW1.
Como se trata de dos tipos distintos de encapsulación, la debemos crear un PseudoWire con algo de configuración.
R5
interface FastEthernet0/0
no ip address
no shut
interface FastEthernet0/0.56
encapsulation dot1Q 56
ip address 172.16.56.5 255.255.255.0
interface FastEthernet0/0.65
encapsulation dot1Q 65
ip address 172.16.65.5 255.255.255.0
R6
interface FastEthernet0/0
ip address 172.16.56.6 255.255.255.0
no shut
233
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Configuracion PseudWire
R2
pseudowire-class PW1
encapsulation mpls
interworking ethernet
interface FastEthernet0/0
no shut
interface FastEthernet0/0.56
encapsulation dot1Q 56
xconnect 10.0.0.3 10 pw-class PW1
R3
pseudowire-class PW1
encapsulation mpls
interworking ethernet
interface FastEthernet0/0
no shut
xconnect 10.0.0.2 10 pw-class PW1
236
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
Necesitamos crear y publicar dos loopback en cada PE, la loopback1 identifica al Path 1 y la loopback 2 identifica el path 2.
Asociar cada prefijo (loopback 1, loopback 2) con una interface de salida.
Crear un PseudoWire mpls que apunte al peer adecuado.
R2
interface Loopback1
ip address 20.1.1.2 255.255.255.255
interface Loopback2
ip address 20.2.2.2 255.255.255.255
router ospf 1
network 20.1.1.2 0.0.0.0 area 0
network 20.2.2.2 0.0.0.0 area 0
R3
interface Loopback1
ip address 30.1.1.3 255.255.255.255
237
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface Loopback2
ip address 30.2.2.3 255.255.255.255
router ospf 1
network 30.1.1.3 0.0.0.0 area 0
network 30.2.2.3 0.0.0.0 area 0
Configuracion PseudoWire
R2
pseudowire-class PW1
encapsulation mpls
preferred-path peer 30.1.1.3
pseudowire-class PW2
encapsulation mpls
preferred-path peer 30.2.2.3
interface FastEthernet0/0.10
encapsulation dot1Q 10
xconnect 10.0.0.3 10 pw-class PW1
238
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/0.20
encapsulation dot1Q 20
xconnect 10.0.0.3 20 pw-class PW2
interface FastEthernet0/0.30
encapsulation dot1Q 30
xconnect 10.0.0.3 30 pw-class PW1
interface FastEthernet0/0.40
encapsulation dot1Q 40
xconnect 10.0.0.3 40 pw-class PW2
R3
pseudowire-class PW1
encapsulation mpls
preferred-path peer 20.1.1.2
pseudowire-class PW2
encapsulation mpls
preferred-path peer 20.2.2.2
interface FastEthernet0/0.10
encapsulation dot1Q 10
xconnect 10.0.0.2 10 pw-class PW1
interface FastEthernet0/0.20
encapsulation dot1Q 20
xconnect 10.0.0.2 20 pw-class PW2
interface FastEthernet0/0.30
encapsulation dot1Q 30
xconnect 10.0.0.2 30 pw-class PW1
interface FastEthernet0/0.40
encapsulation dot1Q 40
xconnect 10.0.0.2 40 pw-class PW2
R5
interface fastEthernet 0/0
no shutdown
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 172.16.10.5 255.255.255.0
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 172.16.20.5 255.255.255.0
interface FastEthernet0/0.30
encapsulation dot1Q 30
239
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/0.40
encapsulation dot1Q 40
ip address 172.16.40.5 255.255.255.0
R6
interface fastEthernet 0/0
no shutdown
interface FastEthernet0/0.10
encapsulation dot1Q 10
ip address 172.16.10.6 255.255.255.0
interface FastEthernet0/0.20
encapsulation dot1Q 20
ip address 172.16.20.6 255.255.255.0
interface FastEthernet0/0.30
encapsulation dot1Q 30
ip address 172.16.30.6 255.255.255.0
interface FastEthernet0/0.40
encapsulation dot1Q 40
ip address 172.16.40.6 255.255.255.0
Verificacion PseudoWire
Pruebas Extremo/Extremo
242
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
R5
frame-relay switching
interface Serial1/0
no ip address
encapsulation frame-relay
frame-relay intf-type nni
no shutdown
R6
frame-relay switching
interface Serial1/0
no ip address
encapsulation frame-relay
frame-relay intf-type nni
no shutdown
243
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
interface Serial2/0
encapsulation hdlc
no shutdown
xconnect 10.0.0.3 100 encapsulation mpls
R3
interface Serial2/0
encapsulation hdlc
no shutdown
xconnect 10.0.0.2 100 encapsulation mpls
Ejemplo Verificacion PW
R5#ping 172.100.1.6
Sending 5, 100-byte ICMP Echos to 172.100.1.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 120/188/220 ms
R5#ping 172.200.1.6
Sending 5, 100-byte ICMP Echos to 172.200.1.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 132/178/216 ms
R6#ping 172.100.1.5
Sending 5, 100-byte ICMP Echos to 172.100.1.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 140/168/200 ms
R6#ping 172.200.1.5
Sending 5, 100-byte ICMP Echos to 172.200.1.5, timeout is 2 seconds:
!!!!!
247
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
248
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
IGP/LDP
Configurar IS-IS con el siguiente esquema de direccionamiento:
Net R2 : 49.0001.0000.0000.0002.00 L2
Net R3 : 49.0001.0000.0000.0003.00 L2
Net R4 : 49.0001.0000.0000.0004.00 L2
Net R5 : 49.0001.0000.0000.0005.00 L2
Normalmente una sesión LDP se creará si existe un LSP (label switched path) entre LSRs , esto quiere decir que debe haber un
camino MPLS completo de ida y vuelta entre vecinos LDP, pero en este escenario el LSP no es continuo ya que solo participan los
LSRs R2 y R5, aun asi es posible lograr comunicación LDP utilizando un tunnel GRE entre los extremos LDP. El trafico LDP
entonces irá encapsualdo en el tunnel GRE.
Para esto debemos tener comunicación entre LSR, a traves de enrutamiento dinamico o estático.
R2
interface FastEthernet0/1
ip router isis
isis network point-to-point
router isis
net 49.0001.0000.0000.0002.00
is-type level-2-only
passive-interface Loopback0
R3
interface FastEthernet0/0
ip router isis
isis network point-to-point
interface FastEthernet0/1
ip router isis
isis network point-to-point
249
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
router isis
net 49.0001.0000.0000.0003.00
is-type level-2-only
passive-interface Loopback0
R4
interface FastEthernet0/0
ip router isis
isis network point-to-point
interface FastEthernet0/1
ip router isis
isis network point-to-point
router isis
net 49.0001.0000.0000.0004.00
is-type level-2-only
passive-interface Loopback0
R5
interface FastEthernet0/1
ip router isis
isis network point-to-point
router isis
net 49.0001.0000.0000.0005.00
is-type level-2-only
passive-interface Loopback0
R2
interface Tunnel25
ip unnumbered Loopback0
tunnel source FastEthernet0/1
tunnel destination 10.1.45.5
R5
interface Tunnel25
ip unnumbered Loopback0
tunnel source FastEthernet0/1
tunnel destination 10.1.23.2
Interface IHQ IQD OHQ OQD RXBS RXPS TXBS TXPS TRTL
------------------------------------------------------------------------
* Tunnel25 0 0 0 0 0 0 0 0 0
Interface IHQ IQD OHQ OQD RXBS RXPS TXBS TXPS TRTL
------------------------------------------------------------------------
* Tunnel25 0 0 0 0 0 0 0 0 0
Sesion LDP
R2
ip cef
mpls ip
251
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface Tunnel25
mpls ip
R5
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 500 599
interface Tunnel25
mpls ip
252
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
La ruta estática es necesaria para que el trafico del PW sea redirigido dentro del tunel GRE.
R2
ip route 10.0.0.5 255.255.255.255 tunnel 25
R5
ip route 10.0.0.2 255.255.255.255 tunnel 25
R2
interface Serial1/0
encapsulation ppp
xconnect 10.0.0.5 10 encapsulation mpls
R5
interface Serial1/0
encapsulation ppp
xconnect 10.0.0.2 10 encapsulation mpls
El tunnel GRE trata al enlace como directamente conectado (back to back), R2 y R5 solo necesitan una etiqueta VC en la
conexión AToM (no hay tunnel label). El comando show mpls l2transport bindings nos muestra los campos de la CW.
VC statistics:
packet totals: receive 68, send 75
byte totals: receive 2913, send 5086
packet drops: receive 0, seq error 0, send 0
254
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R6#ping 172.16.16.1
Sending 5, 100-byte ICMP Echos to 172.16.16.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 160/203/252 ms
El comando show adjacency tunnel 25 detail muestra dos tipos de adyacencia: para MPLS (tráfico AToM PW), y para IP. El TAG
Tunnel1 tiene la cabecera IP y la cabecera GRE. La cabecera IP contiene en el campo protocol el tipo 47 (0x2F) correspondiente
a GRE.
Podemos apreciar las interfaces tunel origen y destino en formato hexadecimal (0A011702 y 0A012D05)
La cabecera GRE anuncia el protocolo MPLS con el tipo 0x8847 para el trafico unicast)
256
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Sección L2TPv3
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
Puesto que los tuneles L2TPv3 viajan sobre IPv4 no necesitamos intercambio de etiquetas, es decir MPLS/LDP.
R2
router bgp 1
bgp router-id 10.0.0.2
no bgp default ipv4-unicast
neighbor RR peer-group
neighbor RR remote-as 1
neighbor RR update-source Loopback0
neighbor 10.0.0.4 peer-group RR
neighbor 10.0.0.5 peer-group RR
address-family ipv4
neighbor 10.0.0.4 activate
neighbor 10.0.0.5 activate
network 10.0.0.2 mask 255.255.255.255
R3
router bgp 1
bgp router-id 10.0.0.3
no bgp default ipv4-unicast
neighbor RR peer-group
neighbor RR remote-as 1
neighbor RR update-source Loopback0
neighbor 10.0.0.4 peer-group RR
neighbor 10.0.0.5 peer-group RR
address-family ipv4
neighbor 10.0.0.4 activate
neighbor 10.0.0.5 activate
257
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
address-family ipv4
neighbor AS1 route-reflector-client
neighbor 10.0.0.2 activate
neighbor 10.0.0.3 activate
neighbor 10.0.0.5 activate
network 10.0.0.4 mask 255.255.255.255
R5
router bgp 1
bgp router-id 10.0.0.5
no bgp default ipv4-unicast
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.2 peer-group AS1
neighbor 10.0.0.3 peer-group AS1
neighbor 10.0.0.4 peer-group AS1
address-family ipv4
neighbor AS1 route-reflector-client
neighbor 10.0.0.2 activate
neighbor 10.0.0.3 activate
neighbor 10.0.0.4 activate
network 10.0.0.5 mask 255.255.255.255
R3#show ip bgp
BGP table version is 8, local router ID is 10.0.0.3
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
r i10.0.0.2/32 10.0.0.2 0 100 0 i
r>i 10.0.0.2 0 100 0 i
*> 10.0.0.3/32 0.0.0.0 0 32768 i
r i10.0.0.4/32 10.0.0.4 0 100 0 i
r>i 10.0.0.4 0 100 0 i
r i10.0.0.5/32 10.0.0.5 0 100 0 i
r>i 10.0.0.5 0 100 0 i
iBGP AS2
R6
router bgp 2
bgp router-id 10.0.0.6
no bgp default ipv4-unicast
neighbor 10.0.0.7 remote-as 2
neighbor 10.0.0.7 update-source Loopback0
address-family ipv4
network 10.0.0.6 mask 255.255.255.255
neighbor 10.0.0.7 activate
neighbor 10.0.0.7 next-hop-self
R7
router bgp 2
bgp router-id 10.0.0.7
no bgp default ipv4-unicast
neighbor 10.0.0.6 remote-as 2
neighbor 10.0.0.6 update-source Loopback0
address-family ipv4
network 10.0.0.7 mask 255.255.255.255
neighbor 10.0.0.6 activate
neighbor 10.0.0.6 next-hop-self
eBGP AS1/AS2/AS3
259
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4
router bgp 1
neighbor 10.1.46.6 remote-as 2
address-family ipv4
neighbor AS1 next-hop-self
neighbor 10.1.46.6 activate
R5
router bgp 1
neighbor 10.1.57.7 remote-as 2
address-family ipv4
neighbor AS1 next-hop-self
neighbor 10.1.57.7 activate
R6
router bgp 2
neighbor 10.1.46.4 remote-as 1
neighbor 10.1.68.8 remote-as 3
address-family ipv4
neighbor 10.1.46.4 activate
neighbor 10.1.68.8 activate
R7
router bgp 2
neighbor 10.1.57.5 remote-as 1
neighbor 10.1.78.8 remote-as 3
address-family ipv4
neighbor 10.1.57.5 activate
neighbor 10.1.78.8 activate
R8
router bgp 3
bgp router-id 10.0.0.8
no bgp default ipv4-unicast
neighbor 10.1.68.6 remote-as 2
neighbor 10.1.78.7 remote-as 2
address-family ipv4
network 10.0.0.8 mask 255.255.255.255
neighbor 10.1.68.6 activate
neighbor 10.1.78.7 activate
R2#show ip bgp
BGP table version is 12, local router ID is 10.0.0.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
R8#show ip bgp
BGP table version is 8, local router ID is 10.0.0.8
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
R1
interface FastEthernet0/0
ip address 172.16.19.1 255.255.255.0
duplex full
no shut
R9
interface FastEthernet0/0
ip address 172.16.19.9 255.255.255.0
duplex full
no shut
R3
pseudowire-class INTER-L2TPV3
encapsulation l2tpv3
ip local interface Loopback0
interface FastEthernet0/0
no ip address
duplex full
no shutdown
xconnect 10.0.0.8 10 pw-class INTER-L2TPV3
261
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R8
pseudowire-class INTER-L2TPV3
encapsulation l2tpv3
ip local interface Loopback0
interface FastEthernet0/0
no ip address
duplex full
no shut
xconnect 10.0.0.3 10 pw-class INTER-L2TPV3
R3
interface FastEthernet0/0
no keepalive
no cdp enable
R8
interface FastEthernet0/0
no keepalive
no cdp enable
R1#ping 172.16.19.9
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.19.9, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 108/205/280 ms
R3
l2tp-class CLASS
authentication
password cisco
pseudowire-class INTER-L2TPV3
protocol l2tpv3 CLASS
R8
l2tp-class CLASS
authentication
password cisco
pseudowire-class INTER-L2TPV3
protocol l2tpv3 CLASS
R8#show l2tp
L2TP Tunnel and Session Information Total tunnels 1 sessions 1
LocTunID RemTunID Remote Name State Remote Address Sessn L2TP Class/
Count VPDN Group
3719782486 327864145 R3 est 10.0.0.3 1 CLASS
LocID RemID TunID Username, Intf/ State Last Chg Uniq ID
Vcid, Circuit
2124853625 541008331 3719782486 10, Fa0/0 est 00:10:45 9
XC ST Segment 1 S1 Segment 2 S2
------+---------------------------------+--+---------------------------------+--
UP ac Fa0/0(Ethernet) UP l2tp 10.0.0.3:10 UP
264
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en la figura..
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
R2
router bgp 1
bgp router-id 10.0.0.2
no bgp default ipv4-unicast
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.3 peer-group AS1
neighbor 10.0.0.4 peer-group AS1
neighbor 10.0.0.5 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor 10.0.0.3 activate
neighbor 10.0.0.4 activate
neighbor 10.0.0.5 activate
265
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R3
router bgp 1
bgp router-id 10.0.0.3
no bgp default ipv4-unicast
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.2 peer-group AS1
neighbor 10.0.0.4 peer-group AS1
neighbor 10.0.0.5 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor 10.0.0.2 activate
neighbor 10.0.0.4 activate
neighbor 10.0.0.5 activate
R4
router bgp 1
bgp router-id 10.0.0.4
no bgp default ipv4-unicast
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.2 peer-group AS1
neighbor 10.0.0.3 peer-group AS1
neighbor 10.0.0.5 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor 10.0.0.2 activate
neighbor 10.0.0.3 activate
neighbor 10.0.0.5 activate
R5
router bgp 1
bgp router-id 10.0.0.5
no bgp default ipv4-unicast
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.2 peer-group AS1
neighbor 10.0.0.3 peer-group AS1
neighbor 10.0.0.4 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor 10.0.0.2 activate
neighbor 10.0.0.3 activate
neighbor 10.0.0.4 activate
10.0.0.5 4 1 2 2 1 0 0 00:00:29 0
R2
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/0
ip vrf forwarding A
ip address 172.16.28.2 255.255.255.0
router eigrp 1
address-family ipv4 vrf A
default-metric 10000 1000 255 1 1500
redistribute bgp 1
no auto-summary
network 172.16.0.0
autonomous-system 1
router bgp 1
address-family ipv4 vrf A
redistribute eigrp 1
R8
interface Loopback0
ip address 100.0.0.8 255.255.255.255
router eigrp 1
network 100.0.0.0
network 172.16.0.0
no auto-summary
R3
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:1
interface FastEthernet0/0
ip vrf forwarding A
ip address 172.16.39.3 255.255.255.0
router eigrp 1
address-family ipv4 vrf A
default-metric 10000 1000 255 1 1500
redistribute bgp 1
no auto-summary
network 172.16.0.0
autonomous-system 1
router bgp 1
address-family ipv4 vrf A
redistribute eigrp 1
R9
interface Loopback0
ip address 100.0.0.9 255.255.255.255
router eigrp 1
network 100.0.0.0
network 172.16.0.0
no auto-summary
R2
route-map SOO permit 10
268
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/0
ip vrf forwarding A
ip vrf sitemap SOO
R3
route-map SOO permit 10
set extcommunity soo 1:69
interface FastEthernet0/0
ip vrf forwarding A
ip vrf sitemap SOO
R4
ip vrf A
rd 1:2
route-target export 1:2
route-target import 1:1
interface FastEthernet0/0
ip vrf forwarding A
ip address 172.16.104.4 255.255.255.0
router eigrp 1
address-family ipv4 vrf A
default-metric 10000 1000 255 1 1500
redistribute bgp 1
no auto-summary
network 172.16.0.0
autonomous-system 1
router bgp 1
address-family ipv4 vrf A
redistribute eigrp 1
R10
interface Loopback0
ip address 100.0.0.10 255.255.255.255
router eigrp 1
network 100.0.0.0
network 172.16.0.0
no auto-summary
R2
ip vrf A
route-target import 1:2
R3
ip vrf A
270
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5
ip vrf B
rd 1:3
route-target export 1:3
route-target import 1:1
route-target import 1:2
interface FastEthernet0/0
ip vrf forwarding B
ip address 192.168.100.5 255.255.255.0
ip ospf 20 area 0
router bgp 1
address-family ipv4 vrf B
redistribute ospf 20 vrf B match internal external 1 external 2
R6
interface Loopback0
ip address 100.0.0.6 255.255.255.255
ip ospf 20 area 0
interface FastEthernet0/0
ip address 192.168.100.6 255.255.255.0
ip ospf 20 area 0
router ospf 20
271
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
router-id 100.0.0.6
R7
interface Loopback0
ip address 100.0.0.7 255.255.255.255
ip ospf 20 area 0
interface FastEthernet0/0
ip address 192.168.100.7 255.255.255.0
ip ospf 20 area 0
router ospf 20
router-id 100.0.0.7
R2
ip vrf A
route-target import 1:3
R3
ip vrf A
route-target import 1:3
R4
ip vrf A
route-target import 1:3
Multicast Core. Source Specific Multicast SSM. SSM previene DoS, y simplifica la configuracion. Por defecto SSM verifica el
origen del flujo multicast para el rango 232.0.0.0 - 232.255.255.255. Podemos reducir este rango con el comando ip pim ssm
range ACL. Configurar BSR en R1.
272
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R1
ip multicast-routing
access-list 10 permit 239.1.0.0 0.0.255.255
ip pim ssm range 10
interface loopback 0
ip pim sparse-mode
interface FastEthernet0/0
ip pim sparse-mode
interface FastEthernet0/1
ip pim sparse-mode
interface FastEthernet1/0
ip pim sparse-mode
interface FastEthernet2/0
ip pim sparse-mode
R2
ip multicast-routing
access-list 10 permit 239.1.0.0 0.0.255.255
ip pim ssm range 10
interface loopback 0
ip pim sparse-mode
interface FastEthernet0/1
ip pim sparse-mode
R3
ip multicast-routing
access-list 10 permit 239.1.0.0 0.0.255.255
ip pim ssm range 10
interface loopback 0
ip pim sparse-mode
interface FastEthernet0/1
ip pim sparse-mode
ip igmp join-group 231.0.0.3
R4
ip multicast-routing
access-list 10 permit 239.1.0.0 0.0.255.255
ip pim ssm range 10
interface loopback 0
ip pim sparse-mode
interface FastEthernet0/1
ip pim sparse-mode
273
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5
ip multicast-routing
access-list 10 permit 239.1.0.0 0.0.255.255
ip pim ssm range 10
interface loopback 0
ip pim sparse-mode
interface FastEthernet0/1
ip pim sparse-mode
R2#ping 231.0.0.3
Reply to request 0 from 10.1.13.3, 148 ms
Reply to request 0 from 10.1.13.3, 1128 ms
Reply to request 0 from 10.1.13.3, 672 ms
R2
ip multicast-routing vrf A
interface FastEthernet0/0
ip pim sparse-mode
ip vrf A
rd 1:1
mdt default 239.1.2.2
R8
ip multicast-routing
interface Loopback0
ip address 100.0.0.8 255.255.255.255
ip pim sparse-mode
274
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/0
ip address 172.16.28.8 255.255.255.0
ip pim sparse-mode
R3
ip multicast-routing vrf A
interface FastEthernet0/0
ip pim sparse-mode
ip vrf A
rd 1:1
mdt default 239.1.2.2
R9
ip multicast-routing
interface Loopback0
ip address 100.0.0.9 255.255.255.255
ip pim sparse-mode
interface FastEthernet0/0
ip address 172.16.39.9 255.255.255.0
ip pim sparse-mode
R4
ip multicast-routing vrf A
275
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/0
ip pim sparse-mode
ip vrf A
rd 1:2
mdt default 239.1.2.2
R10
ip multicast-routing
interface Loopback0
ip address 100.0.0.10 255.255.255.255
ip pim sparse-mode
interface FastEthernet0/0
ip address 172.16.104.10 255.255.255.0
ip pim sparse-mode
R2
ip pim vrf A rp-address 100.0.0.8
R3
ip pim vrf A rp-address 100.0.0.8
R4
ip pim vrf A rp-address 100.0.0.8
R8
ip pim rp-address 100.0.0.8
R9
ip pim rp-address 100.0.0.8
interface Loopback0
ip address 100.0.0.9 255.255.255.255
ip pim sparse-mode
ip igmp join-group 239.1.1.9
276
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R10
ip pim rp-address 100.0.0.8
R8#ping 239.1.1.9
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 239.1.1.9, timeout is 2 seconds:
Reply to request 0 from 172.16.89.9, 60 ms
Reply to request 0 from 172.16.89.9, 188 ms
Reply to request 0 from 172.16.89.9, 188 ms
Reply to request 0 from 172.16.89.9, 168 ms
Reply to request 0 from 172.16.89.9, 124 ms
R9#show ip pim rp
Group: 239.1.1.9, RP: 100.0.0.8, v2, uptime 00:44:11, expires never
Group: 224.0.1.40, RP: 100.0.0.8, v2, uptime 00:52:39, expires never
277
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pre LAB
Construir el laboratorio mostrado en el diagrama.
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
MP-iBGP Sitio 1
R3
router bgp 1
bgp router-id 10.0.0.3
no bgp default ipv4-unicast
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.2 peer-group AS1
neighbor 10.0.0.4 peer-group AS1
address-family vpnv4
neighbor AS1 send-community extended
neighbor AS1 route-reflector-client
neighbor 10.0.0.2 activate
neighbor 10.0.0.4 activate
278
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
router bgp 1
bgp router-id 10.0.0.2
no bgp default ipv4-unicast
neighbor 10.0.0.3 remote-as 1
neighbor 10.0.0.3 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.3 activate
neighbor 10.0.0.3 send-community extended
R4
router bgp 1
bgp router-id 10.0.0.4
no bgp default ipv4-unicast
neighbor 10.0.0.3 remote-as 1
neighbor 10.0.0.3 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.3 activate
neighbor 10.0.0.3 send-community extended
MP-iBGP Sitio 1
R6
router bgp 2
bgp router-id 10.0.0.6
no bgp default ipv4-unicast
neighbor AS2 peer-group
neighbor AS2 remote-as 2
neighbor AS2 update-source Loopback0
neighbor 10.0.0.5 peer-group AS2
neighbor 10.0.0.7 peer-group AS2
address-family vpnv4
neighbor AS2 send-community extended
neighbor AS2 route-reflector-client
neighbor 10.0.0.5 activate
neighbor 10.0.0.7 activate
R5
router bgp 2
bgp router-id 10.0.0.5
no bgp default ipv4-unicast
279
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
address-family vpnv4
neighbor 10.0.0.6 activate
neighbor 10.0.0.6 send-community extended
R7
router bgp 2
bgp router-id 10.0.0.7
no bgp default ipv4-unicast
neighbor 10.0.0.6 remote-as 2
neighbor 10.0.0.6 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.6 activate
neighbor 10.0.0.6 send-community extended
LSP
MP-eBGP
la configuracion de MP-eBGP es directa pero debemos considerar que:
Los ASBRs rechazaran cualquier VPN que no tengan configurada, a menos que sean un RR.
Puesto que se trata de intercambio de prefijos vpnv4 entre sitios, el ASBR debe redistribuir el next-hop del AS vecino o
publicarse como next-hop.
Nota: El proceso BGP habilitará automaticamente la interface entre AS para MPLS
R4
router bgp 1
neighbor 10.1.45.5 remote-as 2
address-family vpnv4
neighbor 10.1.45.5 activate
neighbor 10.1.45.5 send-community extended
R5
router bgp 2
neighbor 10.1.45.4 remote-as 1
address-family vpnv4
neighbor 10.1.45.4 activate
neighbor 10.1.45.4 send-community extended
%BGP_LMM-6-AUTOGEN1: The mpls bgp forwarding command has been configured on interface: FastEthernet0/1
280
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
VPN A Sitio 1
R2
ip vrf A
rd 1:1
route-target export 1:1
route-target import 1:2
interface FastEthernet0/0
ip vrf forwarding A
ip address 172.16.12.2 255.255.255.0
R2
router bgp 1
address-family ipv4 vrf A
redistribute connected
neighbor 172.16.12.1 remote-as 3
neighbor 172.16.12.1 activate
R1
router bgp 3
bgp router-id 100.0.0.1
no bgp default ipv4-unicast
neighbor 172.16.12.2 remote-as 1
address-family ipv4
network 100.0.0.1 mask 255.255.255.255
neighbor 172.16.12.2 activate
281
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
VPN A Sitio 2
R7
ip vrf A
rd 1:2
route-target export 1:2
route-target import 1:1
interface FastEthernet0/0
ip vrf forwarding A
ip address 172.16.78.7 255.255.255.0
R7
router bgp 2
address-family ipv4 vrf A
redistribute connected
neighbor 172.16.78.8 remote-as 4
neighbor 172.16.78.8 activate
R8
router bgp 4
bgp router-id 100.0.0.8
no bgp default ipv4-unicast
neighbor 172.16.78.7 remote-as 2
address-family ipv4
network 100.0.0.8 mask 255.255.255.255
neighbor 172.16.78.7 activate
Las rutas de cada se instalarán en los PEs, los RR, pero no en los ASBRs
283
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Para que exista comunicacion entre sitios debemos deshabilitar en los ASBRs el filtro RT por defecto con el comando no bgp
default route-target filter.
BGP(4): 10.0.0.6 rcvd UPDATE w/ attr: nexthop 10.0.0.7, origin i, localpref 100, metric 0, originator 10.0.0.7, clusterlist
10.0.0.6, merged path 4, AS_PATH , extended community RT:1:2
BGP(4): 10.0.0.6 rcvd 1:2:100.0.0.8/32, label 718 -- DENIED due to: extended community not supported;
BGP(4): 10.0.0.6 rcvd UPDATE w/ attr: nexthop 10.0.0.7, origin ?, localpref 100, metric 0, originator 10.0.0.7, clusterlist
10.0.0.6, extended community RT:1:2
BGP(4): 10.0.0.6 rcvd 1:2:172.16.78.0/24, label 717 -- DENIED due to: extended community not supported;
R4
router bgp 1
no bgp default route-target filter
R5
router bgp 2
no bgp default route-target filter
BGP(4): 10.0.0.6 NEXT_HOP is on same subnet as the bgp peer and set to 10.1.45.4 for net 1:1:100.0.0.1/32, flags 0, sb: 0,
mask: 0
BGP(4): 10.0.0.6 NEXT_HOP is on same subnet as the bgp peer and set to 10.1.45.4 for net 1:1:172.16.12.0/24, flags 0, sb: 0,
mask: 0
BGP(4): 10.0.0.6 rcvd UPDATE w/ attr: nexthop 10.0.0.7, origin i, localpref 100, metric 0, originator 10.0.0.7, clusterlist
10.0.0.6, merged path 4, AS_PATH , extended community RT:1:2
BGP(4): 10.0.0.6 rcvd 1:2:100.0.0.8/32, label 718...duplicate ignored
BGP(4): 10.0.0.6 rcvd UPDATE w/ attr: nexthop 10.0.0.7, origin ?, localpref 100, metric 0, originator 10.0.0.7, clusterlist
10.0.0.6, extended community RT:1:2
R5#
BGP(4): 10.0.0.6 rcvd 1:2:172.16.78.0/24, label 717...duplicate ignored
BGP(4): 10.1.45.4 rcvd UPDATE w/ attr: nexthop 10.1.45.4, origin i, merged path 1 3, AS_PATH , extended community
RT:1:1
BGP(4): 10.1.45.4 rcvd 1:1:100.0.0.1/32, label 418...duplicate ignored
BGP(4): 10.1.45.4 rcvd UPDATE w/ attr: nexthop 10.1.45.4, origin ?, merged path 1, AS_PATH , extended community
RT:1:1
BGP(4): 10.1.45.4 rcvd 1:1:172.16.12.0/24, label 419...duplicate ignored
R3 (el Route-Reflector) instala las rutas recibidas desde R4 (ASBR), pero R4 no cambia el next-hop como indicamos
anteriormente. Esto impide que R3 refleje las rutas a R2.
En R4 y R5 usamos el comando next-hop-self para la familia VPNv4.
R4
router bgp 1
address-family vpnv4
neighbor 10.0.0.3 next-hop-self
R5
router bgp 2
address-family vpnv4
neighbor 10.0.0.6 next-hop-self
Pruebas VPNA
286
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Cualquier VPN que creemos establecerse sin problemas porque hemos configurado un LSP desde los Provider Edge R2 y R7.
VPN B Sitio 1
RT/RD 2:1
R2
ip vrf B
rd 2:1
route-target export 2:1
route-target import 2:2
interface FastEthernet1/0
ip vrf forwarding B
ip address 172.16.29.2 255.255.255.0
R2
router bgp 1
address-family ipv4 vrf B
redistribute connected
neighbor 172.16.29.9 remote-as 100
neighbor 172.16.29.9 activate
neighbor 172.16.29.9 as-override
R9
router bgp 100
bgp router-id 200.0.0.9
no bgp default ipv4-unicast
neighbor 172.16.29.2 remote-as 1
address-family ipv4
network 200.0.0.9 mask 255.255.255.255
neighbor 172.16.29.2 activate
VPN B Sitio 12
RT/RD 2:2
R7
ip vrf B
rd 2:2
route-target export 2:2
route-target import 2:1
interface FastEthernet1/0
ip vrf forwarding B
ip address 172.16.107.7 255.255.255.0
R7
router bgp 2
address-family ipv4 vrf B
redistribute connected
neighbor 172.16.107.10 remote-as 100
neighbor 172.16.107.10 activate
neighbor 172.16.107.10 as-override
R8
router bgp 100
bgp router-id 200.0.0.10
no bgp default ipv4-unicast
neighbor 172.16.107.7 remote-as 2
address-family ipv4
network 200.0.0.10 mask 255.255.255.255
288
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
291
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
AS1 y AS2 deben entregar servicios VPN L3 entre sitio 1 y sitio 2. Sin embargo no existe comunicación directa entre AS1 y AS2.
El desafío es poder comunicar AS1 y AS2 utilizando un AS intermedio (AS100) sin que este deba formar sesión MP-eBGP con
AS1 y AS2.
Para lograr el objetivo se deben cumplir dos cosas:
1.Debe existir un Label Switching Path (LSP) entre los Provider Edges R2 y R7.
2.Los ID de R2 y R7 deben ser publicados en todos los ASs con sus etiquetas asociadas (transportados por iBGP o por IGP).
1ª IGP/MPLS
IGP AS1
R2
interface Loopback0
ip address 10.0.0.2 255.255.255.255
ip ospf 1 area 0
interface FastEthernet0/1
ip address 10.1.23.2 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
router ospf 1
router-id 10.0.0.2
log-adjacency-changes
passive-interface Loopback0
R3
interface Loopback0
ip address 10.0.0.3 255.255.255.255
ip ospf 1 area 0
292
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/0
ip address 10.1.34.3 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet0/1
ip address 10.1.23.3 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
router ospf 1
router-id 10.0.0.3
log-adjacency-changes
passive-interface Loopback0
R4
interface Loopback0
ip address 10.0.0.4 255.255.255.255
ip ospf 1 area 0
interface FastEthernet0/0
ip address 10.1.34.4 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
router ospf 1
router-id 10.0.0.4
log-adjacency-changes
passive-interface Loopback0
293
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
MPLS AS1
Asignaremos estáticamente las etiquetas MPLS. Para esto debemos mapear los router ID a labels. Por ejemplo en R2 usamos el
comando
mpls label range 215 299 static 200 214: El rango de de etiquetas (labels) 215 a 299 es asignado aleatoriamente por el proceso
LDP, el rango 200 a 214 es para el mapeo ID-> label que haremos nosotros. Establecer mapeo estático nos ayudará a entender
como trabaja MPLS a través del Label Switching Path (LSP).
R2
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 215 299 static 200 214
mpls static binding ipv4 10.0.0.3 255.255.255.255 203
mpls static binding ipv4 10.0.0.4 255.255.255.255 204
mpls static binding ipv4 10.0.0.5 255.255.255.255 205
mpls static binding ipv4 10.0.0.6 255.255.255.255 206
mpls static binding ipv4 10.0.0.7 255.255.255.255 207
mpls static binding ipv4 10.0.0.9 255.255.255.255 209
mpls static binding ipv4 10.0.0.10 255.255.255.255 210
mpls static binding ipv4 10.0.0.11 255.255.255.255 211
mpls static binding ipv4 10.0.0.12 255.255.255.255 212
interface FastEthernet0/1
mpls ip
R3
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 315 399 static 300 314
mpls static binding ipv4 10.0.0.2 255.255.255.255 302
mpls static binding ipv4 10.0.0.4 255.255.255.255 304
mpls static binding ipv4 10.0.0.5 255.255.255.255 305
mpls static binding ipv4 10.0.0.6 255.255.255.255 306
mpls static binding ipv4 10.0.0.7 255.255.255.255 307
mpls static binding ipv4 10.0.0.9 255.255.255.255 309
mpls static binding ipv4 10.0.0.10 255.255.255.255 310
mpls static binding ipv4 10.0.0.11 255.255.255.255 311
mpls static binding ipv4 10.0.0.12 255.255.255.255 312
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
R4
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
294
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/0
mpls ip
295
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 515 599 static 500 514
mpls static binding ipv4 10.0.0.2 255.255.255.255 502
mpls static binding ipv4 10.0.0.3 255.255.255.255 503
mpls static binding ipv4 10.0.0.4 255.255.255.255 504
mpls static binding ipv4 10.0.0.6 255.255.255.255 506
mpls static binding ipv4 10.0.0.7 255.255.255.255 507
mpls static binding ipv4 10.0.0.9 255.255.255.255 509
mpls static binding ipv4 10.0.0.10 255.255.255.255 510
mpls static binding ipv4 10.0.0.11 255.255.255.255 511
mpls static binding ipv4 10.0.0.12 255.255.255.255 512
router ospf 2
router-id 10.0.0.5
log-adjacency-changes
passive-interface Loopback0
interface Loopback0
ip address 10.0.0.5 255.255.255.255
ip ospf 2 area 0
interface FastEthernet0/0
ip address 10.1.56.5 255.255.255.0
ip ospf network point-to-point
ip ospf 2 area 0
mpls ip
R6
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 615 699 static 600 614
mpls static binding ipv4 10.0.0.2 255.255.255.255 602
mpls static binding ipv4 10.0.0.3 255.255.255.255 603
mpls static binding ipv4 10.0.0.4 255.255.255.255 604
mpls static binding ipv4 10.0.0.5 255.255.255.255 605
mpls static binding ipv4 10.0.0.7 255.255.255.255 607
mpls static binding ipv4 10.0.0.9 255.255.255.255 609
mpls static binding ipv4 10.0.0.10 255.255.255.255 610
mpls static binding ipv4 10.0.0.11 255.255.255.255 611
mpls static binding ipv4 10.0.0.12 255.255.255.255 612
router ospf 2
router-id 10.0.0.6
log-adjacency-changes
passive-interface Loopback0
interface Loopback0
ip address 10.0.0.6 255.255.255.255
ip ospf 2 area 0
296
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/0
ip address 10.1.56.6 255.255.255.0
ip ospf network point-to-point
ip ospf 2 area 0
mpls ip
interface FastEthernet0/1
ip address 10.1.67.6 255.255.255.0
ip ospf network point-to-point
ip ospf 2 area 0
mpls ip
R7
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 715 799 static 700 714
mpls static binding ipv4 10.0.0.2 255.255.255.255 702
mpls static binding ipv4 10.0.0.3 255.255.255.255 703
mpls static binding ipv4 10.0.0.4 255.255.255.255 704
mpls static binding ipv4 10.0.0.5 255.255.255.255 705
mpls static binding ipv4 10.0.0.6 255.255.255.255 706
mpls static binding ipv4 10.0.0.9 255.255.255.255 709
mpls static binding ipv4 10.0.0.10 255.255.255.255 710
mpls static binding ipv4 10.0.0.11 255.255.255.255 711
mpls static binding ipv4 10.0.0.12 255.255.255.255 712
router ospf 2
router-id 10.0.0.7
log-adjacency-changes
passive-interface Loopback0
interface Loopback0
ip address 10.0.0.7 255.255.255.255
ip ospf 2 area 0
interface FastEthernet0/1
ip address 10.1.67.7 255.255.255.0
ip ospf network point-to-point
ip ospf 2 area 0
mpls ip
297
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Nota: Podemos utilizar cualquier IGP (EIGRP, RIPv2, OSPF, IS-IS), salvo que implementemos MPLS TE, en cuyo caso IS-IS y
OSPF son las únicas posibilidades (Extensiones TE). Hemos elegido IS-IS por estabilidad, escalabilidad, tiempos de respuesta, no
propietario, etc.…)
R9
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 915 999 static 900 914
mpls static binding ipv4 10.0.0.2 255.255.255.255 902
mpls static binding ipv4 10.0.0.3 255.255.255.255 903
mpls static binding ipv4 10.0.0.4 255.255.255.255 904
mpls static binding ipv4 10.0.0.5 255.255.255.255 905
mpls static binding ipv4 10.0.0.6 255.255.255.255 906
mpls static binding ipv4 10.0.0.7 255.255.255.255 907
mpls static binding ipv4 10.0.0.10 255.255.255.255 910
mpls static binding ipv4 10.0.0.11 255.255.255.255 911
mpls static binding ipv4 10.0.0.12 255.255.255.255 912
interface FastEthernet0/0
ip router isis
isis network point-to-point
mpls ip
interface FastEthernet1/0
ip router isis
isis network point-to-point
mpls ip
router isis
mpls ldp autoconfig level-2
net 47.0100.0000.0000.0009.00
is-type level-2-only
metric-style wide
passive-interface Loopback0
R10
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 1015 1099 static 1000 1014
mpls static binding ipv4 10.0.0.2 255.255.255.255 1002
mpls static binding ipv4 10.0.0.3 255.255.255.255 1003
mpls static binding ipv4 10.0.0.4 255.255.255.255 1004
mpls static binding ipv4 10.0.0.5 255.255.255.255 1005
mpls static binding ipv4 10.0.0.6 255.255.255.255 1006
mpls static binding ipv4 10.0.0.7 255.255.255.255 1007
mpls static binding ipv4 10.0.0.9 255.255.255.255 1009
mpls static binding ipv4 10.0.0.11 255.255.255.255 1011
mpls static binding ipv4 10.0.0.12 255.255.255.255 1012
interface FastEthernet0/0
ip router isis
isis network point-to-point
298
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
mpls ip
interface FastEthernet1/0
ip router isis
isis network point-to-point
mpls ip
router isis
mpls ldp autoconfig level-2
net 47.0100.0000.0000.0010.00
is-type level-2-only
metric-style wide
passive-interface Loopback0
R11
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 1115 1199 static 1100 1114
mpls static binding ipv4 10.0.0.2 255.255.255.255 1102
mpls static binding ipv4 10.0.0.3 255.255.255.255 1103
mpls static binding ipv4 10.0.0.4 255.255.255.255 1104
mpls static binding ipv4 10.0.0.5 255.255.255.255 1105
mpls static binding ipv4 10.0.0.6 255.255.255.255 1106
mpls static binding ipv4 10.0.0.7 255.255.255.255 1107
mpls static binding ipv4 10.0.0.9 255.255.255.255 1109
mpls static binding ipv4 10.0.0.10 255.255.255.255 1110
mpls static binding ipv4 10.0.0.12 255.255.255.255 1112
interface FastEthernet0/0
ip router isis
isis network point-to-point
mpls ip
interface FastEthernet0/1
ip router isis
isis network point-to-point
mpls ip
interface FastEthernet1/0
ip router isis
isis network point-to-point
mpls ip
router isis
mpls ldp autoconfig level-2
net 47.0100.0000.0000.0011.00
is-type level-2-only
metric-style wide
passive-interface Loopback0
R12
ip cef
mpls ip
mpls label protocol ldp
299
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/0
ip router isis
isis network point-to-point
mpls ip
interface FastEthernet0/1
ip router isis
isis network point-to-point
mpls ip
interface FastEthernet1/0
ip router isis
isis network point-to-point
mpls ip
router isis
mpls ldp autoconfig level-2
net 47.0100.0000.0000.0012.00
is-type level-2-only
metric-style wide
passive-interface Loopback0
300
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
2ª iBGP
Esta sección comprende el establecimiento de sesiones BGP dentro de los ASs, y publicación de las loopbacks 0. La disposición de
los router bgp se muestra a continuación:
R2
router bgp 1
bgp router-id 10.0.0.2
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.0.0.3 remote-as 1
neighbor 10.0.0.3 update-source Loopback0
!
address-family ipv4
no synchronization
network 10.0.0.2 mask 255.255.255.255
301
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R3
router bgp 1
bgp router-id 10.0.0.3
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS1 peer-group
neighbor AS1 remote-as 1
neighbor AS1 description INTERNOS-AS1
neighbor AS1 update-source Loopback0
neighbor 10.0.0.2 peer-group AS1
neighbor 10.0.0.4 peer-group AS1
!
address-family ipv4
no synchronization
network 10.0.0.3 mask 255.255.255.255
neighbor AS1 route-reflector-client
neighbor 10.0.0.2 activate
neighbor 10.0.0.4 activate
no auto-summary
exit-address-family
R4
router bgp 1
bgp router-id 10.0.0.4
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.0.0.3 remote-as 1
neighbor 10.0.0.3 update-source Loopback0
!
address-family ipv4
no synchronization
network 10.0.0.4 mask 255.255.255.255
neighbor 10.0.0.3 activate
no auto-summary
exit-address-family
302
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5
router bgp 2
bgp router-id 10.0.0.5
no bgp default ipv4-unicast
neighbor 10.0.0.6 remote-as 2
neighbor 10.0.0.6 update-source Loopback0
!
address-family ipv4
no synchronization
network 10.0.0.5 mask 255.255.255.255
neighbor 10.0.0.6 activate
no auto-summary
exit-address-family
R6
router bgp 2
bgp router-id 10.0.0.6
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS2 peer-group
neighbor AS2 remote-as 2
neighbor AS2 description INTERNOS-AS2
neighbor AS2 update-source Loopback0
neighbor 10.0.0.5 peer-group AS2
neighbor 10.0.0.7 peer-group AS2
!
address-family ipv4
no synchronization
network 10.0.0.6 mask 255.255.255.255
neighbor AS2 route-reflector-client
neighbor 10.0.0.5 activate
neighbor 10.0.0.7 activate
no auto-summary
exit-address-family
R7
router bgp 2
bgp router-id 10.0.0.7
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.0.0.6 remote-as 2
neighbor 10.0.0.6 update-source Loopback0
!
address-family ipv4
no synchronization
network 10.0.0.7 mask 255.255.255.255
neighbor 10.0.0.6 activate
no auto-summary
exit-address-family
R9
router bgp 100
bgp router-id 10.0.0.9
no bgp default ipv4-unicast
neighbor AS100 peer-group
neighbor AS100 remote-as 100
neighbor AS100 description INTERNOS-AS100
neighbor AS100 update-source Loopback0
neighbor 10.0.0.11 peer-group AS100
neighbor 10.0.0.12 peer-group AS100
!
address-family ipv4
no synchronization
neighbor AS100 next-hop-self
network 10.0.0.9 mask 255.255.255.255
neighbor 10.0.0.11 activate
neighbor 10.0.0.12 activate
no auto-summary
exit-address-family
R10
router bgp 100
bgp router-id 10.0.0.10
no bgp default ipv4-unicast
neighbor AS100 peer-group
neighbor AS100 remote-as 100
neighbor AS100 description INTERNOS-AS100
neighbor AS100 update-source Loopback0
neighbor 10.0.0.11 peer-group AS100
neighbor 10.0.0.12 peer-group AS100
!
address-family ipv4
no synchronization
neighbor AS100 next-hop-self
network 10.0.0.10 mask 255.255.255.255
neighbor 10.0.0.11 activate
neighbor 10.0.0.12 activate
no auto-summary
exit-address-family
R11
router bgp 100
bgp router-id 10.0.0.11
no bgp default ipv4-unicast
304
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
address-family ipv4
no synchronization
neighbor AS100 route-reflector-client
network 10.0.0.11 mask 255.255.255.255
neighbor 10.0.0.9 activate
neighbor 10.0.0.10 activate
neighbor 10.0.0.12 activate
no auto-summary
exit-address-family
R12
router bgp 100
bgp router-id 10.0.0.12
no bgp default ipv4-unicast
neighbor AS100 peer-group
neighbor AS100 remote-as 100
neighbor AS100 description INTERNOS-AS100
neighbor AS100 update-source Loopback0
neighbor 10.0.0.9 peer-group AS100
neighbor 10.0.0.10 peer-group AS100
neighbor 10.0.0.11 peer-group AS100
address-family ipv4
no synchronization
neighbor AS100 route-reflector-client
network 10.0.0.12 mask 255.255.255.255
neighbor 10.0.0.9 activate
neighbor 10.0.0.10 activate
neighbor 10.0.0.11 activate
no auto-summary
exit-address-family
306
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
3ª eBGP y MP-BGP
Implementamos MP-iBGP en AS1 y AS2.
AS100 no necesita MP-iBGP porque actúa como AS intermedio (solo tráfico IPv4)
R2
router bgp 1
address-family vpnv4
neighbor 10.0.0.3 activate
neighbor 10.0.0.3 send-community extended
exit-address-family
R3
router bgp 1
address-family vpnv4
neighbor AS1 send-community extended
neighbor AS1 route-reflector-client
neighbor 10.0.0.2 activate
neighbor 10.0.0.4 activate
R4
router bgp 1
address-family vpnv4
neighbor 10.0.0.3 activate
neighbor 10.0.0.3 send-community extended
exit-address-family
R5
router bgp 2
address-family vpnv4
neighbor 10.0.0.6 activate
neighbor 10.0.0.6 send-community extended
307
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
exit-address-family
R6
router bgp 2
address-family vpnv4
neighbor AS2 send-community extended
neighbor AS2 route-reflector-client
neighbor 10.0.0.5 activate
neighbor 10.0.0.7 activate
exit-address-family
R7
router bgp 2
address-family vpnv4
neighbor 10.0.0.6 activate
neighbor 10.0.0.6 send-community extended
exit-address-family
- Debe existir Label Switching Path (LSP) entre los Provider Edges R2 y R7.
Ahora podemos formar el LSP extremo-extremo entre los Provider Edge R2 y R7. AS100 es intermedio y no participa en BGP
VPN, pero si en IPv4 BGP.
En R4 especificamos los prefijos que serán parte del LSP. Como AS100 es un AS de tránsito envía prefijos y etiquetas asociadas a
prefijos de ambos AS, en otras palabras, no usamos un route-map para limitar prefijos + label.
Es importante que el envío de labels a través en BGP se especifique en todo el trayecto, de otra forma el LSP quedará
particionado.
Nota: Cuando se forma una sesión eBGP entre vecinos directamente conectados que intercambias prefijos IPv4 + labels, el
proceso crea automáticamente el comando mpls bgp forwarding en la interface. Si usamos ebgp-multihop, por ejemplo al
hacer load sharing eBGP debemos configurar manualmente el comando en la interface.
R2
router bgp 1
address-family ipv4
neighbor 10.0.0.3 send-label
R3
router bgp 1
address-family ipv4
neighbor AS1 send-label
R4
ip prefix-list AS1 seq 5 permit 10.0.0.2/32
ip prefix-list AS1 seq 10 permit 10.0.0.3/32
ip prefix-list AS1 seq 15 permit 10.0.0.4/32
!
route-map LABELS permit 10
308
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
router bgp 1
neighbor 10.1.49.9 remote-as 100
!
address-family ipv4
neighbor 10.1.49.9 activate
neighbor 10.1.49.9 route-map LABELS out
neighbor 10.1.49.9 send-label
neighbor 10.0.0.3 send-label
neighbor 10.0.0.3 next-hop-self
%BGP_LMM-6-AUTOGEN1: The mpls bgp forwarding command has been configured on interface: FastEthernet0/1
R9
router bgp 100
neighbor 10.1.49.4 remote-as 1
!
address-family ipv4
neighbor 10.1.49.4 activate
neighbor 10.1.49.4 send-label
R7
router bgp 2
address-family ipv4
neighbor 10.0.0.6 send-label
R6
router bgp 2
address-family ipv4
neighbor AS2 send-label
R5
ip prefix-list AS2 seq 5 permit 10.0.0.5/32
ip prefix-list AS2 seq 10 permit 10.0.0.6/32
ip prefix-list AS2 seq 15 permit 10.0.0.7/32
!
route-map LABELS permit 10
match ip address prefix-list AS2
set mpls-label
router bgp 2
neighbor 10.1.105.10 remote-as 100
!
address-family ipv4
neighbor 10.1.105.10 activate
neighbor 10.1.105.10 route-map LABELS out
neighbor 10.1.105.10 send-label
neighbor 10.0.0.6 send-label
neighbor 10.0.0.6 next-hop-self
R10
router bgp 100
neighbor 10.1.105.5 remote-as 2
!
address-family ipv4
neighbor 10.1.105.5 activate
309
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Comprobamos que el LSP esté creado entre los PEs utilizando traceroute desde el PE R2 al PE R7.
Tenemos conectividad IP end-to-end pero el LSP se rompe en el AS100. Para resolver este problema los LSRs del AS100 deben
enviar labels BGP en AS100.
R9
router bgp 100
address-family ipv4
neighbor AS100 send-label
R10
router bgp 100
address-family ipv4
neighbor AS100 send-label
R11
router bgp 100
address-family ipv4
neighbor AS100 send-label
R12
router bgp 100
address-family ipv4
neighbor AS100 send-label
Comprobamos nuevamente el LSP entre los PEs R2 y R7. Como el LSP es unidireccional las pruebas debemos hacerlas desde cada
extremo.
Nota: En la tabla LFIB un campo label indicando No Label es un problema con los prefijos IPv4.
Está formado el LSP, sin embargo queda un paso más: Establecer las sesiones EBGP-MULTIHOP entre RRs.
Podemos o no cambiar el next-hop de los prefijos vpnv4 que publiquen los RRs porque tenemos conectividad completa entre
LSRs.
R3
router bgp 1
neighbor 10.0.0.6 remote-as 2
neighbor 10.0.0.6 ebgp-multihop 255
neighbor 10.0.0.6 update-source Loopback0
address-family vpnv4
neighbor 10.0.0.6 activate
neighbor 10.0.0.6 send-community extended
neighbor 10.0.0.6 next-hop-unchanged
R6
router bgp 2
neighbor 10.0.0.3 remote-as 1
neighbor 10.0.0.3 ebgp-multihop 255
311
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
address-family vpnv4
neighbor 10.0.0.3 activate
neighbor 10.0.0.3 send-community extended
neighbor 10.0.0.3 next-hop-unchanged
AS1 solo acepta RT 1:1, pero AS2 exporta los prefios vpnv4 con el RT 1:2. Como el prefijo debe viajar desde el PE de AS2 (R7)
al PE de AS1 (R2), en algun lugar del trayecto debemos reemplazar el RT 2:1 a 1:1 o el prefijo vpnv4 no se instalará el la tabla del
Provider Edge R2.
De acuerdo, la sintaxis de la vrf es distinta, pero tiene sentido si queremos usar la misma VRF-RD para IPv4 e IPv6.
R2
vrf definition A
rd 1:1
!
address-family ipv4
route-target export 1:1
312
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/0
vrf forwarding A
ip address 172.16.12.2 255.255.255.0
ip ospf network point-to-point
ip ospf 100 area 0
router bgp 1
address-family ipv4 vrf A
no synchronization
redistribute ospf 100 vrf A match internal external 1 external 2
exit-address-family
R1
interface Loopback0
ip address 100.0.0.1 255.255.255.255
ip ospf 100 area 0
interface FastEthernet0/0
ip address 172.16.12.1 255.255.255.0
ip ospf 100 area 0
ip ospf network point-to-point
R7
vrf definition A
rd 2:1
!
address-family ipv4
route-target export 2:1
route-target import 1:1
exit-address-family
interface FastEthernet0/0
vrf forwarding A
ip address 172.16.78.7 255.255.255.0
ip ospf network point-to-point
ip ospf 100 area 0
log-adjacency-changes
redistribute bgp 2 subnets
router bgp 2
address-family ipv4 vrf A
redistribute ospf 100 vrf A match internal external 1 external 2
R8
interface FastEthernet0/0
ip address 172.16.78.8 255.255.255.0
ip ospf network point-to-point
ip ospf 100 area 0
interface Loopback0
ip address 100.0.0.8 255.255.255.255
ip ospf 100 area 0
Como podemos apreciar, R3 es el RR del AS1 y está publicando los prefijos del Sitio 2 a R2. R2 no es capaz de instalarlos porque
no coincide el route-target import configurado en la vrf A.
R3 publica los prefijos desde AS2, pero R2 no lo instala porque no reconoce las actualizaciones que tengan un RT distinto de 1:1.
La solución es reemplazar o reescribir (RT ReWrite)) el valor del RT publicado por R7 de 2:1 a 1:1. El lugar que escojamos
dependerá de las políticas que tengan los ISP. Por ejemplo se ha establecido que el RT 2:1 solo puedas ser visible entre el RR y el
PE de AS2.
R6
ip extcommunity-list 10 permit rt 2:1
router bgp 2
address-family vpnv4
neighbor 10.0.0.3 route-map FILTRADO-RT out
R6 recibe el prefijo vpnv4 con el valor RT 2:1, y publica a R6 el mismo prefijo pero cambiando el RT de 2:1 a 1:1. R3 refleja el
prefijo y lo publica a R2, este ve en la actualización el RT 1:1 e instala el prefijo en su tabla.
Advertised to update-groups:
4
2
10.0.0.7 (metric 2) from 10.0.0.6 (10.0.0.6)
Origin incomplete, localpref 100, valid, external, best
Extended Community: RT:1:1 OSPF DOMAIN ID:0x0005:0x000000640200
OSPF RT:0.0.0.0:2:0 OSPF ROUTER ID:172.16.78.7:0
mpls labels in/out nolabel/717
Dos cosas antes de finalzar este laboratorio. Normalmente los prefijos MPLS VPN llevan dos etiquetas; la superior identifica el
prefijo y IGP del LSR y la bottom label que corresponde al prefijo vpnv4. Al utilizar el comando traceroute notamos que
cualquiera de los PEs (R2 o R7) agregan una tercera etiqueta. No es un error, esta es una etiqueta IGP asociada al AS.
Tambien es notar que la etiquetas de la vpnv4 (716) no cambia en todo el LSP.
R1 R2 R3 R4 R9 R11 R10 R5 R6 R7 R8
Por último como tema de diseño, es recomendable que la red del Serice Provider no sea conocida por el cliente. El comando no
mpls ip propagate-ttl permite esconder la red del SP. Pero tiene la gran desventaja de ocultarla al propio SP. (Es recomendable
además deshabilitar CDP entre la red del Customer y el Provider Edge.
El comando no mpls ip propagate-ttl forwarded solo esconde el LSP al cliente y las pruebas de troubleshooting del SP pueden
hacerse sin restricciones.
318
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
319
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
§ IS-IS
§ LDP
§ Los PEs deben ser vrf-aware (interface CE-PE).
LDP para IPv6 no está disponible. MPLS no solo puede transportar paquetes IPv4. Un router P puede perfectamente manejar
paquetes IPv6 sin enterarse.
R2
interface FastEthernet0/0
isis network point-to-point
ip router isis
router isis
net 47.0001.0000.0000.0002.00
passive-interface loopback 0
is-type level-2-only
ip cef
mpls ip
mpls label range 200 299
mpls label protocol ldp
mpls ldp router-id Loopback0 force
interface FastEthernet0/0
mpls ip
R3
interface FastEthernet0/0
isis network point-to-point
ip router isis
interface FastEthernet0/1
isis network point-to-point
ip router isis
router isis
net 47.0001.0000.0000.0003.00
passive-interface loopback 0
is-type level-2-only
ip cef
320
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
mpls ip
mpls label range 300 399
mpls label protocol ldp
mpls ldp router-id Loopback0 force
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
R4
interface FastEthernet0/1
isis network point-to-point
ip router isis
router isis
net 47.0001.0000.0000.0004.00
passive-interface loopback 0
is-type level-2-only
ip cef
mpls ip
mpls label range 400 499
mpls label protocol ldp
mpls ldp router-id Loopback0 force
interface FastEthernet0/1
mpls ip
R2
router bgp 1
bgp router-id 10.1.1.2
no bgp default ipv4-unicast
neighbor 10.1.1.4 remote-as 1
neighbor 10.1.1.4 update-source loopback 0
address-family vpnv6
neighbor 10.1.1.4 activate
neighbor 10.1.1.4 send-community extended
neighbor 10.1.1.4 next-hop-self
exit-address-family
R4
router bgp 1
bgp router-id 10.1.1.4
no bgp default ipv4-unicast
neighbor 10.1.1.2 remote-as 1
neighbor 10.1.1.2 update-source loopback 0
!
address-family vpnv6
neighbor 10.1.1.2 activate
neighbor 10.1.1.2 send-community extended
neighbor 10.1.1.2 next-hop-self
exit-address-family
322
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
§ Crear VRF A en PE interface hacia red del cliente. El comando vrf definition es usado para crear la VRF IPv6 (tambien
para la familia IPv4), este comando tiene la ventaja de poder configurar ambas familias (IPv4 /IPv6)
R2
vrf definition A
rd 1:1
address-family ipv6
route-target export 1:100
route-target import 1:100
exit-address-family
interface Serial1/0
vrf forwarding A
no ip address
ipv6 address 2001:1::2/124
R1#ping 2001:1::2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:1::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/39/92 ms
R4
vrf definition A
rd 1:1
address-family ipv6
route-target export 1:100
route-target import 1:100
exit-address-family
interface Serial1/0
vrf forwarding A
no ip address
ipv6 address 2001:2::2/124
R1
router bgp 65001
bgp router-id 1.1.1.1
no bgp default ipv4-unicast
neighbor 2001:1::2 remote-as 1
address-family ipv6
neighbor 2001:1::2 activate
323
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
network ABCD::1/128
exit-address-family
R2
router bgp 1
address-family ipv6 vrf A
neighbor 2001:1::1 remote-as 65001
neighbor 2001:1::1 activate
exit-address-family
R1#
*Feb 7 16:50:55.555: BGP: 2001:1::2 open active, local address 2001:1::1
*Feb 7 16:50:55.631: BGP: 2001:1::2 read request no-op
*Feb 7 16:50:55.643: BGP: 2001:1::2 went from Active to OpenSent
*Feb 7 16:50:55.643: BGP: 2001:1::2 sending OPEN, version 4, my as: 65001, holdtime 180 seconds
*Feb 7 16:50:55.651: BGP: 2001:1::2 send message type 1, length (incl. header) 45
*Feb 7 16:50:55.755: BGP: 2001:1::2 rcv message type 1, length (excl. header) 26
*Feb 7 16:50:55.759: BGP: 2001:1::2 rcv OPEN, version 4, holdtime 180 seconds
*Feb 7 16:50:55.763: BGP: 2001:1::2 rcv OPEN w/ OPTION parameter len: 16
*Feb 7 16:50:55.763: BGP: 2001:1::2 rcvd OPEN w/ optional parameter type 2 (Capability) len 6
*Feb 7 16:50:55.763: BGP: 2001:1::2 OPEN has CAPABILITY code: 1, length 4
*Feb 7 16:50:55.763: BGP: 2001:1::2 OPEN has MP_EXT CAP for afi/safi: 2/1
*Feb 7 16:50:55.763: BGP: 2001:1::2 rcvd OPEN w/ optional parameter type 2 (Capability) len 2
*Feb 7 16:50:55.763: BGP: 2001:1::2 OPEN has CAPABILITY code: 128, length 0
*Feb 7 16:50:55.763: BGP: 2001:1::2 OPEN has ROUTE-REFRESH capability(old) for all address-families
*Feb 7 16:50:55.763: BGP: 2001:1::2 rcvd OPEN w/ optional parameter type 2 (Capability) len 2
*Feb 7 16:50:55.763: BGP: 2001:1::2 OPEN has CAPABILITY code: 2, length 0
*Feb 7 16:50:55.763: BGP: 2001:1::2 OPEN has ROUTE-REFRESH capability(new) for all address-families BGP: 2001:1::2
rcvd OPEN w/ remote AS 1
*Feb 7 16:50:55.763: BGP: 2001:1::2 went from OpenSent to OpenConfirm
*Feb 7 16:50:55.787: BGP: 2001:1::2 went from OpenConfirm to Established
*Feb 7 16:50:55.791: %BGP-5-ADJCHANGE: neighbor 2001:1::2 Up
R5
router bgp 65005
bgp router-id 5.5.5.5
no bgp default ipv4-unicast
neighbor 2001:2::2 remote-as 1
address-family ipv6
neighbor 2001:2::2 activate
network ABCD::2/128
exit-address-family
R4
router bgp 1
address-family ipv6 vrf A
neighbor 2001:2::1 remote-as 65005
neighbor 2001:2::1 activate
exit-address-family
Para que un traceroute sea alcazable (reachable) debemos publicar la red CE/PE en BGP con ridstribute connected, o usando el
comando network.
% NOTE: This command is deprecated. Please use 'show bgp ipv6 unicast'
R5
router bgp 65005
address-family ipv6
network 2001:2::/124
326
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Label Imposition
Cuando un PE recibe un paquete desde un CE mira el paquee IPv6 destino en la VRF correspondiente al CE en la tabla VPNv6
que asocia etiquetas MPLS (top) y next-hop BGP (bottom).
R5#traceroute ABCD::1
Type escape sequence to abort.
Tracing the route to ABCD::1
1 2001:2::2 44 msec 88 msec 20 msec
2 ::FFFF:10.1.34.3 [MPLS: Labels 300/203 Exp 0] 188 msec 112 msec 88 msec
3 2001:1::2 [AS 65001] [MPLS: Label 203 Exp 0] 132 msec 132 msec 128 msec
4 2001:1::1 [AS 65001] 156 msec 148 msec 164 msec
328
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Este metodo permite correr IPv6 directamente sobre MPLS, sin necesidad de MPLS VPN, no existen interfaces VRF. Los router CE IPv6 se
ven entre ellos.
Los PE deben usar dual stack (IPv4/IPv6). Los CE se conectan al PE normalmente, la interface no es parte de alguna VRF para IPv6 aunque
podría tratarse de una interface VRF para IPv4. La redistribución entre PEs se realiza a través de MP-BGP, al mismo tiempo distribuye las
labels asociadas a los prefijos IPv6.
En este laboratorio implementaremos 6PE en conjunto con MPLS VPNv4 usando la misma interface CE-PE.
Los PEs estan en malla completa MP-iBGP. iBGP redistribuye los prefijos IPv6 y les asocia labels (IPv6 + label).
R2
router ospf 1
router-id 10.1.1.2
interface FastEthernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet1/0
ip ospf network point-to-point
ip ospf 1 area 0
interface Loopback0
ip ospf 1 area 0
R3
router ospf 1
router-id 10.1.1.3
interface FastEthernet0/0
ip ospf network point-to-point
329
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
ip ospf 1 area 0
interface FastEthernet1/0
ip ospf network point-to-point
ip ospf 1 area 0
interface Loopback0
ip ospf 1 area 0
R4
router ospf 1
router-id 10.1.1.4
interface FastEthernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet0/1
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet1/0
ip ospf network point-to-point
ip ospf 1 area 0
interface Loopback0
ip ospf 1 area 0
R5
router ospf 1
router-id 10.1.1.5
interface FastEthernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
interface Loopback0
ip ospf 1 area 0
330
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 200 299
interface FastEthernet0/0
mpls ip
interface FastEthernet1/0
mpls ip
R3
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 300 399
interface FastEthernet0/0
mpls ip
interface FastEthernet1/0
mpls ip
331
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 400 499
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
interface FastEthernet1/0
mpls ip
R5
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 500 599
interface FastEthernet0/0
mpls ip
332
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
§ Crear sesion IPv6 BGP malla completa entre los PEs R2, R3 y R5
R2
router bgp 1
bgp router-id 10.1.1.2
no bgp default ipv4-unicast
neighbor 10.1.1.3 remote-as 1
neighbor 10.1.1.3 update-source Loopback0
neighbor 10.1.1.5 remote-as 1
neighbor 10.1.1.5 update-source Loopback0
address-family ipv6
neighbor 10.1.1.3 activate
neighbor 10.1.1.5 activate
R3
router bgp 1
bgp router-id 10.1.1.3
no bgp default ipv4-unicast
neighbor 10.1.1.2 remote-as 1
neighbor 10.1.1.2 update-source Loopback0
neighbor 10.1.1.5 remote-as 1
neighbor 10.1.1.5 update-source Loopback0
address-family ipv6
neighbor 10.1.1.2 activate
neighbor 10.1.1.5 activate
R5
router bgp 1
bgp router-id 10.1.1.5
no bgp default ipv4-unicast
neighbor 10.1.1.2 remote-as 1
neighbor 10.1.1.2 update-source Loopback0
neighbor 10.1.1.3 remote-as 1
neighbor 10.1.1.3 update-source Loopback0
address-family ipv6
neighbor 10.1.1.2 activate
neighbor 10.1.1.3 activate
333
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
§ Configurar IGP CE-PE OSPFv3 en los tres sitios (sin eleccion de DR).
§ R2 utiliza router-id 2.2.2.2, R3 router-id 3.3.3.3 y R5 router-id 5.5.5.5
§ Redistribuir OSPFv3 dentro del BB.
§ Redistribuir BGP dentro de OSPFv3 (usar proceso 10 en todos los caso OSPFv3)
Nota: Los procesos OSPF IPv4 e IPv6 son independientes. Podemos configurar usando el mismo numero de proceso. Las
configuraciones iniciales incluyen las entradas link-local. Si queremos un mayor control no debemos permitir que el proceso
escoja la LL.
R1
ipv6 router ospf 10
router-id 100.1.1.1
interface Loopback0
ipv6 ospf 10 area 0
interface FastEthernet0/0
ipv6 ospf network point-to-point
ipv6 ospf 10 area 0
R2
ipv6 router ospf 10
router-id 2.2.2.2
interface FastEthernet0/1
ipv6 ospf network point-to-point
ipv6 ospf 10 area 0
334
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R6
ipv6 router ospf 10
router-id 100.1.1.6
interface Loopback0
ipv6 ospf 10 area 0
interface FastEthernet0/0
ipv6 ospf network point-to-point
ipv6 ospf 10 area 0
R3
ipv6 router ospf 10
router-id 3.3.3.3
interface FastEthernet0/1
ipv6 ospf network point-to-point
ipv6 ospf 10 area 0
R7
ipv6 router ospf 10
router-id 100.1.1.7
interface Loopback0
ipv6 ospf 10 area 0
interface FastEthernet0/0
ipv6 ospf network point-to-point
ipv6 ospf 10 area 0
R5
ipv6 router ospf 10
router-id 5.5.5.5
interface FastEthernet0/1
ipv6 ospf network point-to-point
ipv6 ospf 10 area 0
R2
router bgp 1
address-family ipv6
redistribute ospf 10
redistribute connected
335
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R3
router bgp 1
address-family ipv6
redistribute ospf 10
redistribute connected
R5
router bgp 1
address-family ipv6
redistribute ospf 10
redistribute connected
La siguiente salida muestra que R2 ha instalado los prefijos desde ambos sitios sin embarego no sabe como alcanzarlos. Podríamos
estar tentados de decir que el next-hop no es conocido por R2. La cuestión es otra, debemos enviar labels via MP-iBGP para la
address-familly ipv6.
R2
router bgp 1
address-family ipv6
neighbor 10.1.1.3 send-label
neighbor 10.1.1.5 send-label
R3
router bgp 1
address-family ipv6
neighbor 10.1.1.2 send-label
neighbor 10.1.1.5 send-label
R5
router bgp 1
address-family ipv6
neighbor 10.1.1.2 send-label
neighbor 10.1.1.3 send-label
336
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Comprobación
El siguiente traceroute nos muestra que los paquetes IPv6 tienen dos labels. Esto se debe a que los router Provider (P) no están
configurados para IPv6, ellos toman decisiones en base a labels unicamente en este escenario. Si R4 tuviera el comportamiento
por defecto, haría un POP label, es decir, retira la etiqueta superior y envía el paquete IPv6 a R5 sin etiquetas, pero como
dijimos, R4 no entiende IPv6 y al despojar la ultima etiqueta se quedaría con un paquete IPv6, no sabría que hacer y lo
descartaría, por eso es importante que se tulicen dos etiquetas, la superior para el next-hop (507 para el ejemplo), y la inferior
que identifica el prefijo IPv6 (402).
R1#traceroute
Protocol [ip]: ipv6
Target IPv6 address: bbc::7
Source address: bbc::1
Insert source routing header? [no]:
Numeric display? [no]:
Timeout in seconds [3]:
Probe count [3]: 1
Minimum Time to Live [1]:
Maximum Time to Live [30]:
Priority [0]:
Port Number [0]:
Type escape sequence to abort.
Tracing the route to BBC::7
1 2000:1:12::2 92 msec
2 ::FFFF:10.1.24.4 [MPLS: Labels 402/507 Exp 0] 240 msec
3 2000:1:57::5 [MPLS: Label 507 Exp 0] 204 msec
4 2000:1:57::7 156 msec
338
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
IPv4 Stack
Los 3 sitios pueden comunicarse usando OSPFv3. Queremos ademas que exista comunicación BGP IPv4 entre sitios. Esto nos da
la idea que usaremos dual Stack (IPv4 + IPv4) entre CE y PE (los router P nunca saben que estan
§ Formar Sesion full mesh MP-iBGP utilizando loopback 0 entre R2, R3 y R5.
§ Crear VRF A usando RD 1:1 y RT 1:100
§ Habilitar la VRF en la interface de cara al CE
§ Configurar BGP PE-CE como muestra la figura
§ Los router CE deben publicar su loopback0 ipv4.
R2
router bgp 1
address-family vpnv4
neighbor 10.1.1.3 activate
neighbor 10.1.1.3 send-community extended
neighbor 10.1.1.5 activate
neighbor 10.1.1.5 send-community extended
R3
router bgp 1
address-family vpnv4
neighbor 10.1.1.2 activate
neighbor 10.1.1.2 send-community extended
neighbor 10.1.1.5 activate
neighbor 10.1.1.5 send-community extended
R5
router bgp 1
address-family vpnv4
neighbor 10.1.1.2 activate
neighbor 10.1.1.2 send-community extended
neighbor 10.1.1.3 activate
neighbor 10.1.1.3 send-community extended
339
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
La primera solución como hemos visto, no requiere VRF. Ahora queremos crear una VPN entre sitios.
R2
ip vrf A
rd 1:1
route-target export 1:100
route-target import 1:100
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.12.2 255.255.255.0
340
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R1#ping 10.1.12.2
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/82/188 ms
R3
ip vrf A
rd 1:1
route-target export 1:100
route-target import 1:100
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.36.3 255.255.255.0
R6#ping 10.1.36.3
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/59/120 ms
R5
ip vrf A
rd 1:1
route-target export 1:100
route-target import 1:100
interface FastEthernet0/1
ip vrf forwarding A
ip address 10.1.57.5 255.255.255.0
R7#ping 10.1.57.5
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/54/100 ms
341
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R1
router bgp 65001
no synchronization
bgp router-id 100.1.1.1
network 100.1.1.1 mask 255.255.255.255
neighbor 10.1.12.2 remote-as 1
no auto-summary
R2
router bgp 1
address-family ipv4 vrf A
redistribute connected
neighbor 10.1.12.1 remote-as 65001
neighbor 10.1.12.1 activate
no synchronization
exit-address-family
R6
router bgp 2
no synchronization
bgp router-id 100.1.1.6
network 100.1.1.6 mask 255.255.255.255
neighbor 10.1.36.3 remote-as 1
no auto-summary
R3
router bgp 1
address-family ipv4 vrf A
redistribute connected
neighbor 10.1.36.6 remote-as 2
neighbor 10.1.36.6 activate
342
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R7
router bgp 65001
no synchronization
bgp router-id 100.1.1.7
network 100.1.1.7 mask 255.255.255.255
neighbor 10.1.57.5 remote-as 1
no auto-summary
R5
router bgp 1
address-family ipv4 vrf A
redistribute connected
neighbor 10.1.57.7 remote-as 65001
neighbor 10.1.57.7 activate
343
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Puesto que R1 y R7 pertenecen al mismo AS debemos modificar el PE o el CE para saltarnos el mecanismo de prevención de loop
de BGP (no aceptar una actualización que contenga nuestro propio AS). Podemos decirle al PE que se haga pasar por el AS 65001,
o permitir sin preambulos una instancia o mas del mismo AS al que pertenece el CE.
R1
router bgp 65001
neighbor 10.1.12.2 allowas-in
R7
router bgp 65001
neighbor 10.1.57.5 allowas-in 1
344
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
345
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
§ OSPFv2
§ LDP
Con este metodo la carga transportada es L2 y es una alternativa a 6PE o 6VPE. Alivia la necesidad de que el SP tenga que implentar IPv6 en el
Backbone auqneu este debe transportar tramas lo que representa una carga extra además de que los PW son p2p a diferencia de 6PE y 6VPE
que son todos a todos.
R2
router ospf 1
router-id 10.1.1.2
interface FastEthernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
interface Loopback0
ip ospf 1 area 0
R3
router ospf 1
router-id 10.1.1.3
interface FastEthernet0/0
ip ospf network point-to-point
ip ospf 1 area 0
interface FastEthernet0/1
ip ospf network point-to-point
ip ospf 1 area 0
interface Loopback0
ip ospf 1 area 0
R4
router ospf 1
router-id 10.1.1.4
interface FastEthernet0/1
ip ospf network point-to-point
ip ospf 1 area 0
346
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface Loopback0
ip ospf 1 area 0
R2
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 200 299
interface FastEthernet0/0
mpls ip
R3
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 300 399
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
R4
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 400 499
interface FastEthernet0/1
mpls ip
R2
interface FastEthernet0/1
xconnect 10.1.1.4 24 encapsulation mpls
R4
interface FastEthernet0/0
xconnect 10.1.1.2 24 encapsulation mpls
347
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R1#ping 2000:1:15::5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2000:1:15::5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 140/156/180 ms
R5#ping 2000:1:15::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2000:1:15::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 88/132/184 ms
R2
interface FastEthernet0/1
no cdp enable
R4
interface FastEthernet0/0
no cdp enable
348
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R1
ipv6 router eigrp 100
no shutdown
interface FastEthernet0/1
ipv6 eigrp 100
interface Loopback0
ipv6 eigrp 100
R5
ipv6 router eigrp 100
no shutdown
interface FastEthernet0/0
ipv6 eigrp 100
interface Loopback0
ipv6 eigrp 100
§ Configurar IPv6 OSPF, IPv6 EIGRP será seleccionado en caso que OSPFv3 sea deshabilitado.
R1
interface Loopback0
ipv6 ospf 1 area 0
interface FastEthernet0/1
ipv6 ospf network point-to-point
ipv6 ospf 1 area 0
R5
interface Loopback0
ipv6 ospf 1 area 0
interface FastEthernet0/0
ipv6 ospf network point-to-point
ipv6 ospf 1 area 0
Deshabilitamos OSPFv3
351
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
352
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Sección HSRP
Pre LAB
Construir el laboratorio mostrado en el diagrama.
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
Sitio1
R1
ip route 0.0.0.0 0.0.0.0 172.16.1.100
R2
ip route 200.0.0.1 255.255.255.255 172.16.1.1
ip route 172.16.2.0 255.255.255.0 10.1.24.4
R3
ip route 200.0.0.1 255.255.255.255 172.16.1.1
ip route 172.16.2.0 255.255.255.0 10.1.35.5
Sitio2
R6
353
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4
ip route 200.0.0.6 255.255.255.255 172.16.2.6
ip route 172.16.1.0 255.255.255.0 10.1.24.2
R5
ip route 200.0.0.6 255.255.255.255 172.16.2.6
ip route 172.16.1.0 255.255.255.0 10.1.35.3
R2#ping 172.16.2.6
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/78/128 ms
Debemos tener en cuenta que HSRP soporta preempt , esto quiere decir que si un router HSRP con una prioridad mayor se
conecta al segmento de red éste adoptará el papel de activo, aunque ya exista otro cumpliendo ese papel.
R2
interface FastEthernet0/0
standby 10 ip 172.16.1.100
standby 10 priority 101
standby 10 preempt
R3
interface FastEthernet0/0
standby 10 ip 172.16.1.100
354
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
standby 10 priority 95
standby 10 preempt
R2#show standby
FastEthernet0/0 - Group 10
State is Active
2 state changes, last state change 00:55:27
Virtual IP address is 172.16.1.100
Active virtual MAC address is 0000.0c07.ac0a
Local virtual MAC address is 0000.0c07.ac0a (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 1.744 secs
Preemption enabled
Active router is local
Standby router is 172.16.1.3, priority 95 (expires in 10.112 sec)
Priority 101 (configured 101)
Group name is "hsrp-Fa0/0-10" (default)
R3#show standby
FastEthernet0/0 - Group 10
State is Standby
1 state change, last state change 00:55:55
Virtual IP address is 172.16.1.100
Active virtual MAC address is 0000.0c07.ac0a
Local virtual MAC address is 0000.0c07.ac0a (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 2.320 secs
Preemption enabled
Active router is 172.16.1.2, priority 101 (expires in 8.272 sec)
Standby router is local
Priority 95 (configured 95)
Group name is "hsrp-Fa0/0-10" (default)
Sitio2
R4
interface FastEthernet0/0
standby 10 ip 172.16.2.100
standby 10 priority 101
standby 10 preempt
R5
interface FastEthernet0/0
standby 10 ip 172.16.2.100
standby 10 priority 95
standby 10 preempt
355
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4#show standby
FastEthernet0/0 - Group 10
State is Active
2 state changes, last state change 01:04:37
Virtual IP address is 172.16.2.100
Active virtual MAC address is 0000.0c07.ac0a
Local virtual MAC address is 0000.0c07.ac0a (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 2.048 secs
Preemption enabled
Active router is local
Standby router is 172.16.2.5, priority 95 (expires in 10.112 sec)
Priority 101 (configured 101)
Group name is "hsrp-Fa0/0-10" (default)
R5#show standby
FastEthernet0/0 - Group 10
State is Standby
1 state change, last state change 01:04:40
Virtual IP address is 172.16.2.100
Active virtual MAC address is 0000.0c07.ac0a
Local virtual MAC address is 0000.0c07.ac0a (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 0.896 secs
Preemption enabled
Active router is 172.16.2.4, priority 101 (expires in 9.920 sec)
Standby router is local
Priority 95 (configured 95)
Group name is "hsrp-Fa0/0-10" (default)
Tener presente que no debemos establecer cualquier número en la prioridad (esto aplica tanto a VRRP como HSRP). Debe ser
consistente con el valor de decremento, es decir, si por ejemplo R2 con prioridad 100 no tiene señal del enlace FR, este
disminuirá su prioridad en 10. Si R3 tiene configurada una prioridad HSRP de 90 se producirá un problema (ambos routers con la
misma prioridad), el proceso HSRP tomará como router activo el que tenga la dirección IP mayor, y puede darse la casualidad
que sea el mismo router que debería pasar al modo Standby. Para evitar esto debemos establecer números relativamente
cercanos, por ejemplo 101 para el router activo, y 95 para el router respaldo, si el activo cae disminuye a 91 su prioridad, el
respaldo con 95 toma de inmediato el rol activo.
Para sondear el enlace Frame-Relay podemos utilizar el comando track como se muestra a continuación:
Sitio1
R2
track 23 interface Serial1/0 line-protocol
interface FastEthernet0/0
standby 10 track 23 decrement 10
R3
track 23 interface Serial1/0 line-protocol
interface FastEthernet0/0
standby 10 track 23 decrement 10
356
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Sitio2
R4
track 45 interface Serial1/0 line-protocol
interface FastEthernet0/0
standby 10 track 45 decrement 10
R5
track 45 interface Serial1/0 line-protocol
interface FastEthernet0/0
standby 10 track 45 decrement 10
R1#ping 172.16.1.100
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.1.100, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/45/76 ms
R1#traceroute 172.16.2.6
1 172.16.1.2 68 msec 28 msec 40 msec
2 10.1.24.4 56 msec 60 msec 40 msec
3 172.16.2.6 164 msec * 92 msec
Para comprobar que funciona este esquema generamos tráfico con un simple ping desde R1 a R6.
A pesar de todos los esfuerzos no se produce el comportamiento esperado, R1 pierde conectividad con R6.
La razón es que ciertas tecnologías L2 como Frame-Relay son localmente significativas y solo requieren mantener conexión con el
SW FR local; en nuestro caso, la serial de R2 está caída.
357
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Puesto que R2 sondea el enlace y nota de inmediato que la interface serial 1/0 está caída, se convierte en Stanby HSRP en Sitio1,
sin embargo, no sucede lo mismo en Sitio2 y R4 sigue actuando como router activo a pesar de no tener conectividad con R2.
Podemos solucionar este problema con alguno protocolo de enrutamiento interior (IGP) que genere keepalive, o generar
artificialmente keepalive usando IP SLA, como veremos más adelante.
Si volvemos a levantar la interface serial de R2 veremos el comportamiento de preempt. El tracking comprueba ahora que la
interface serial está UP. R2 se publica a si mismo con una prioridad de 101 en HSRP que es mayor que 95 de R3, y se convierte
nuevamente en el router activo.
Para corregir el problema y mantener conectividad entre los sitios podemos utilizar una combinación de IP SLA y tracking. IP
SLA nos permiten en esta sección sondear las seriales de nuestros vecinos, vale decir, la actividad que se produce a través de todo
el enlace FR.
La forma de configurar SLA varía entre plataformas. La que presentamos aquí corresponde al IOS 12.4(20)T
R2
ip sla 10
icmp-echo 10.1.24.4
frequency 5
ip sla schedule 10 life forever start-time now
interface FastEthernet0/0
standby 10 preempt delay minimum 1
standby 10 track 10 decrement 10
R3
ip sla 10
icmp-echo 10.1.35.5
frequency 5
ip sla schedule 10 life forever start-time now
interface FastEthernet0/0
standby 10 preempt delay minimum 1
standby 10 track 10 decrement 10
R4
ip sla 10
icmp-echo 10.1.24.2
frequency 5
ip sla schedule 10 life forever start-time now
interface FastEthernet0/0
standby 10 preempt delay minimum 1
standby 10 track 10 decrement 10
R5
ip sla 10
icmp-echo 10.1.35.3
frequency 5
ip sla schedule 10 life forever start-time now
interface FastEthernet0/0
standby 10 preempt delay minimum 1
standby 10 track 10 decrement 10
R2(config-if)#int s1/0
R2(config-if)#shutdown
R2(config-if)#
%TRACKING-5-STATE: 23 interface Se1/0 line-protocol Up->Down
R2(config-if)#
%LINK-5-CHANGED: Interface Serial1/0, changed state to administratively down
R2(config-if)#
%ENTITY_ALARM-6-INFO: ASSERT INFO Se1/0 Physical Port Administrative State Down
R2(config-if)#
%HSRP-5-STATECHANGE: FastEthernet0/0 Grp 10 state Active -> Speak
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to down
R2(config-if)#
%TRACKING-5-STATE: 10 ip sla 10 reachability Up->Down
R2(config-if)#
%HSRP-5-STATECHANGE: FastEthernet0/0 Grp 10 state Speak -> Standby
359
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Como podemos ver R2 y R4 cambian de estado Active a Standby. R3 y R5 cambian de estado Standby a Active. Es el
comportamiento deseado.
R2#show standby
FastEthernet0/0 - Group 10
State is Standby
9 state changes, last state change 00:01:56
Virtual IP address is 172.16.1.100
Active virtual MAC address is 0000.0c07.ac0a
Local virtual MAC address is 0000.0c07.ac0a (v1 default)
Hello time 3 sec, hold time 10 sec
Next hello sent in 1.904 secs
Preemption enabled, delay min 1 secs
Active router is 172.16.1.3, priority 95 (expires in 10.896 sec)
Standby router is local
Priority 81 (configured 101)
Track object 10 state Down decrement 10
Group name is "hsrp-Fa0/0-10" (default)
Generamos nuevamente tráfico con un ping desde R1 a R6. Esta vez solo existe un pequeño retardo y luego R3 actúa como GW y
R1 puede alcanzar a R6.
R1#traceroute 172.16.2.6
1 172.16.1.2 84 msec 72 msec 28 msec
2 10.1.24.4 76 msec 40 msec 72 msec
3 172.16.2.6 120 msec * 100 msec
361
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Sección VRRP
Pre LAB
Construir el laboratorio mostrado en el diagrama.
Las configuraciones base/iniciales deben cargarse antes de continuar con el laboratorio.
Sitio1
R1
ip route 0.0.0.0 0.0.0.0 172.16.1.100 1
R2
ip route 200.0.0.1 255.255.255.255 172.16.1.1
ip route 172.16.2.0 255.255.255.0 10.1.24.4
R3
ip route 200.0.0.1 255.255.255.255 172.16.1.1
ip route 172.16.2.0 255.255.255.0 10.1.35.5
362
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Sitio2
R6
ip route 0.0.0.0 0.0.0.0 172.16.2.100
R4
ip route 200.0.0.6 255.255.255.255 172.16.2.6
ip route 172.16.1.0 255.255.255.0 10.1.24.2
R5
ip route 200.0.0.6 255.255.255.255 172.16.2.6
ip route 172.16.1.0 255.255.255.0 10.1.35.3
R2#ping 172.16.2.0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.2.0, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/44/80 ms
R3#ping 172.16.2.0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.2.0, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/41/60 ms
R2
interface FastEthernet0/0
vrrp 10 ip 172.16.1.100
vrrp 10 priority 150
vrrp 10 preempt
R3
interface FastEthernet0/0
vrrp 10 ip 172.16.1.100
vrrp 10 priority 100
vrrp 10 preempt
363
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2#show vrrp
FastEthernet0/0 - Group 10
State is Master
Virtual IP address is 172.16.1.100
Virtual MAC address is 0000.5e00.010a
Advertisement interval is 1.000 sec
Preemption enabled
Priority is 150
Master Router is 172.16.1.2 (local), priority is 150
Master Advertisement interval is 1.000 sec
Master Down interval is 3.414 sec
R3#show vrrp
FastEthernet0/0 - Group 10
State is Backup
Virtual IP address is 172.16.1.100
Virtual MAC address is 0000.5e00.010a
Advertisement interval is 1.000 sec
Preemption enabled
Priority is 100
Master Router is 172.16.1.2, priority is 150
Master Advertisement interval is 1.000 sec
Master Down interval is 3.609 sec (expires in 3.253 sec)
R4
interface FastEthernet0/0
vrrp 10 ip 172.16.2.100
vrrp 10 priority 150
vrrp 10 preempt
R5
interface FastEthernet0/0
vrrp 10 ip 172.16.2.100
vrrp 10 priority 100
vrrp 10 preempt
R4#show vrrp
FastEthernet0/0 - Group 10
State is Master
Virtual IP address is 172.16.2.100
Virtual MAC address is 0000.5e00.010a
Advertisement interval is 1.000 sec
Preemption enabled
Priority is 150
Master Router is 172.16.2.4 (local), priority is 150
Master Advertisement interval is 1.000 sec
Master Down interval is 3.414 sec
R5#show vrrp
FastEthernet0/0 - Group 10
State is Backup
Virtual IP address is 172.16.2.100
Virtual MAC address is 0000.5e00.010a
Advertisement interval is 1.000 sec
Preemption enabled
Priority is 100
Master Router is 172.16.2.4, priority is 150
Master Advertisement interval is 1.000 sec
364
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R1#ping 172.16.1.100
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.1.100, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/46/80 ms
R1#traceroute 172.16.2.6
Type escape sequence to abort.
Tracing the route to 172.16.2.6
R2
track 10 interface Serial1/0 line-protocol
carrier-delay
interface FastEthernet0/0
vrrp 10 track 10 decrement 60
R3
track 10 interface Serial1/0 line-protocol
carrier-delay
interface FastEthernet0/0
vrrp 10 track 10
R4
track 10 interface Serial1/0 line-protocol
carrier-delay
interface FastEthernet0/0
vrrp 10 track 10 decrement 60
R5
track 10 interface Serial1/0 line-protocol
carrier-delay
interface FastEthernet0/0
vrrp 10 track 10
365
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Verificación
R2#show vrrp
FastEthernet0/0 - Group 10
State is Backup
Virtual IP address is 172.16.1.100
Virtual MAC address is 0000.5e00.010a
Advertisement interval is 1.000 sec
Preemption enabled
Priority is 90 (cfgd 150)
Track object 10 state Down decrement 60
Master Router is 172.16.1.3, priority is 100
Master Advertisement interval is 1.000 sec
Master Down interval is 3.414 sec (expires in 2.918 sec)
R3#show vrrp
FastEthernet0/0 - Group 10
State is Master
Virtual IP address is 172.16.1.100
Virtual MAC address is 0000.5e00.010a
Advertisement interval is 1.000 sec
Preemption enabled
Priority is 100
Track object 10 state Up decrement 10
Master Router is 172.16.1.3 (local), priority is 100
Master Advertisement interval is 1.000 sec
Master Down interval is 3.609 sec
Los routers R2 y R4 bajan su prioridad al no detectar señal , por tanto el camino (path) que sigue R1 para alcanzar a R6 es ahora a
través del enlace R3/R5.
Tanto R2 como R4 ahora son Backup. Notar que el decremento de las prioridades en ambos es de 90. Como R3 y R5 tienen la
prioridad por defecto 100 son ahora routers VRRP Masters.
R1#traceroute 172.16.2.6
Type escape sequence to abort.
Tracing the route to 172.16.2.6
1 172.16.1.3 68 msec 60 msec 40 msec
2 10.1.35.5 84 msec 40 msec 60 msec
3 172.16.2.6 124 msec * 104 msec
366
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Load Sharing
En R2/R3/R4/R5
(config-if)#no vrrp 10
R2(config-if)#int s1/0
R2(config-if)#no shutdown
R1 y R6 deben tener dos rutas estaticas con igual distancia administrativa (AD 69)para que exista balance de carga.
R1
ip route 0.0.0.0 0.0.0.0 172.16.1.101 69
ip route 0.0.0.0 0.0.0.0 172.16.1.100 69
R6
ip route 0.0.0.0 0.0.0.0 172.16.2.101 69
ip route 0.0.0.0 0.0.0.0 172.16.2.100 69
Para lograr que la carga se comparta entre los dos puntos de salida, debemos crear dos procesos en VRRP. Un router actúa para
un proceso como Master y para el otro como Backup.
R2
interface FastEthernet0/0
vrrp 10 ip 172.16.1.100
vrrp 10 priority 200
vrrp 20 ip 172.16.1.101
no vrrp 20 preempt
R3
interface FastEthernet0/0
vrrp 10 ip 172.16.1.100
no vrrp 10 preempt
vrrp 20 ip 172.16.1.101
vrrp 20 priority 200
367
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4
interface FastEthernet0/0
vrrp 10 ip 172.16.2.100
vrrp 10 priority 200
vrrp 20 ip 172.16.2.101
no vrrp 20 preempt
R5
interface FastEthernet0/0
vrrp 10 ip 172.16.2.100
no vrrp 10 preempt
vrrp 20 ip 172.16.2.101
vrrp 20 priority 200
R1#traceroute 172.16.2.6
Type escape sequence to abort.
Tracing the route to 172.16.2.6
R6#traceroute 172.16.1.1
Type escape sequence to abort.
Tracing the route to 172.16.1.1
368
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
1 172.16.2.4 64 msec
172.16.2.5 108 msec
172.16.2.4 44 msec
2 10.1.35.3 56 msec
10.1.24.2 88 msec
10.1.35.3 68 msec
3 172.16.1.1 180 msec * 128 msec
369
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
370
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
iBGP
eBGP
MPLS/LDP
MP-iBGP
MP-eBGP
MPLS VPN
Pruebas de conectividad
371
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4#ping 10.1.45.5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.45.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/55/112 ms
R5#ping 10.1.105.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.105.10, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 28/50/88 ms
R6#ping 10.1.67.7
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.67.7, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 20/62/104 ms
R7#ping 10.1.117.11
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.117.11, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/53/144 ms
R8#ping 10.1.89.9
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.89.9, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 28/47/84 ms
R9#ping 10.1.119.11
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.119.11, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/57/96 ms
R9#ping 10.1.129.12
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.129.12, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 28/76/148 ms
372
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R10#ping 10.1.110.11
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.110.11, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/60/108 ms
R10#ping 10.1.112.12
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.112.12, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 16/46/100 ms
R11#ping 10.1.211.12
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.211.12, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 20/48/80 ms
R4
interface Loopback0
ip address 10.0.0.4 255.255.255.255
ip ospf 1 area 0
interface FastEthernet0/1
ip address 10.1.45.4 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
R5
interface Loopback0
ip address 10.0.0.5 255.255.255.255
ip ospf 1 area 0
interface FastEthernet0/1
ip address 10.1.45.5 255.255.255.0
ip ospf network point-to-point
ip ospf 1 area 0
R4#show ip ospf 1
Routing Process "ospf 1" with ID 10.0.0.4
Start time: 00:30:17.804, Time elapsed: 00:13:57.108
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
Event-log enabled, Maximum number of events: 1000, Mode: cyclic
Router is not originating router-LSAs with maximum metric
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
Maximum wait time between two consecutive SPFs 10000 msecs
Incremental-SPF disabled
Minimum LSA interval 5 secs
Minimum LSA arrival 1000 msecs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Number of external LSA 0. Checksum Sum 0x000000
Number of opaque AS LSA 0. Checksum Sum 0x000000
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Number of areas transit capable is 0
External flood list length 0
IETF NSF helper support enabled
Cisco NSF helper support enabled
Reference bandwidth unit is 100 mbps
Area BACKBONE(0)
Number of interfaces in this area is 2 (1 loopback)
Area has no authentication
SPF algorithm last executed 00:00:50.672 ago
SPF algorithm executed 3 times
Area ranges are
Number of LSA 2. Checksum Sum 0x010BB6
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
R4
interface fastEthernet 0/1
ip ospf authentication-key cisco
router ospf 1
area 0 authentication
router-id 10.0.0.4
374
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4#
%OSPF-5-ADJCHG: Process 1, Nbr 10.0.0.5 on FastEthernet0/1 from FULL to DOWN, Neighbor Down: Dead timer expire
R5
interface fastEthernet 0/1
ip ospf authentication-key cisco
router ospf 1
area 0 authentication
router-id 10.0.0.5
R5#
%OSPF-5-ADJCHG: Process 1, Nbr 10.0.0.4 on FastEthernet0/1 from LOADING to FULL, Loading Done
R4#show ip ospf 1
Routing Process "ospf 1" with ID 10.0.0.4
Start time: 00:30:17.804, Time elapsed: 00:21:52.552
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
Event-log enabled, Maximum number of events: 1000, Mode: cyclic
Router is not originating router-LSAs with maximum metric
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
Maximum wait time between two consecutive SPFs 10000 msecs
Incremental-SPF disabled
Minimum LSA interval 5 secs
Minimum LSA arrival 1000 msecs
LSA group pacing timer 240 secs
Interface flood pacing timer 33 msecs
Retransmission pacing timer 66 msecs
Number of external LSA 0. Checksum Sum 0x000000
Number of opaque AS LSA 0. Checksum Sum 0x000000
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 1. 1 normal 0 stub 0 nssa
Number of areas transit capable is 0
External flood list length 0
IETF NSF helper support enabled
Cisco NSF helper support enabled
Reference bandwidth unit is 100 mbps
Area BACKBONE(0)
Number of interfaces in this area is 2 (1 loopback)
Area has simple password authentication
SPF algorithm last executed 00:00:37.164 ago
SPF algorithm executed 5 times
Area ranges are
Number of LSA 2. Checksum Sum 0x0103BA
Number of opaque link LSA 0. Checksum Sum 0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
375
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4
service password-encryption
R5
service password-encryption
376
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
LS age: 1475
Options: (No TOS-capability, DC)
LS Type: Router Links
Link State ID: 10.0.0.4
Advertising Router: 10.0.0.4
LS Seq Number: 80000007
Checksum: 0x7DE0
Length: 60
Number of Links: 3
Al asignar el valor 0 a la interface f0/1 de R6 evitamos que sea elegido DR (la adyacencia toma mayor tiempo).
R6 se convierte en Drother (ni DR ni BDR).
377
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R6
interface FastEthernet0/1
ip address 10.1.67.6 255.255.255.0
ip ospf priority 0
router ospf 1
router-id 10.0.0.6
network 10.0.0.6 0.0.0.0 area 0
network 10.1.67.0 0.0.0.255 area 0
R7
router ospf 1
router-id 10.0.0.7
network 10.0.0.7 255.255.255.255 area 0
network 10.1.67.0 0.0.0.255 area 0
R6
router ospf 1
area 0 authentication message-digest
interface FastEthernet0/1
ip ospf message-digest-key 1 md5 cisco
R7#
%OSPF-5-ADJCHG: Process 1, Nbr 10.0.0.6 on FastEthernet0/1 from FULL to DOWN, Neighbor Down: Dead timer expired
R7
router ospf 1
area 0 authentication message-digest
interface FastEthernet0/1
ip ospf message-digest-key 1 md5 cisco
Troubleshooting
El siguiente ejemplo muestra que existe comunicación entre vecinos, que las rutas se han instalado en la tabla de enrutamiento,
pero R7 no es capaz de alcanzar el ID de R6, y R6 unicamente tiene conectividad con la loopback 0nde R7 usando la interface de
origen FastEthernet0/1. La salida U.U.U nos indica destino inalanzable, podemos pensar que una ACL está bliqueando el acceso.
Revisamos la configuracion de la interface FastEthernet0/1 de R7 y comprobamos nuestras sospechas.
R7
interface fastEthernet 0/1
no ip access-group 10 in
R8
router ospf 1
router-id 10.0.0.8
ignore lsa mospf
interface Loopback0
ip ospf 1 area 0
interface FastEthernet0/1
ip ospf network point-to-point
ip ospf 1 area 0
R9
router ospf 1
router-id 10.0.0.9
ignore lsa mospf
380
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface Loopback0
ip ospf 1 area 0
interface FastEthernet0/1
ip ospf network point-to-point
ip ospf 1 area 0
Troubleshooting
No hay coincidencia entre parámetros. El comando debug ip ospf events muestra los intervalos recibidos desde R8:
dead 69
wait 40
hello 10
Los valores configurados de los intervalos podemos comprobarlos con el comando show ip ospf interface fastEthernet 0/1.
R9#
OSPF: Send hello to 224.0.0.5 area 0 on FastEthernet0/1 from 10.1.89.9
R9#
OSPF: Rcv hello from 10.0.0.8 area 0 from FastEthernet0/1 10.1.89.8
OSPF: Mismatched hello parameters from 10.1.89.8
OSPF: Dead R 69 C 40, Hello R 10 C 10
!
interface FastEthernet0/1
ip address 10.1.89.8 255.255.255.0
ip ospf network point-to-point
ip ospf dead-interval 69
ip ospf 1 area 0
R8
interface fastEthernet 0/1
no ip ospf dead-interval 69
R8#
OSPF: 2 Way Communication to 10.0.0.9 on FastEthernet0/1, state 2WAY
OSPF: FastEthernet0/1 Nbr 10.0.0.9: Prepare dbase exchange
OSPF: Send DBD to 10.0.0.9 on FastEthernet0/1 seq 0x251A opt 0x52 flag 0x7 len 32
OSPF: Rcv DBD from 10.0.0.9 on FastEthernet0/1 seq 0x5FE opt 0x52 flag 0x7 len 32 mtu 1500 state EXSTART
OSPF: NBR Negotiation Done. We are the SLAVE
OSPF: FastEthernet0/1 Nbr 10.0.0.9: Summary list built, size 1
OSPF: Send DBD to 10.0.0.9 on FastEthernet0/1 seq 0x5FE opt 0x52 flag 0x2 len 52
OSPF: Rcv DBD from 10.0.0.9 on FastEthernet0/1 seq 0x5FF opt 0x52 flag 0x1 len 52 mtu 1500 state EXCHANGE
OSPF: Exchange Done with 10.0.0.9 on FastEthernet0/1
OSPF: Send LS REQ to 10.0.0.9 length 12 LSA count 1
OSPF: Send DBD to 10.0.0.9 on FastEthernet0/1 seq 0x5FF opt 0x52 flag 0x0 len 32
OSPF: Rcv LS UPD from 10.0.0.9 on FastEthernet0/1 length 76 LSA count 1
OSPF: Synchronized with 10.0.0.9 on FastEthernet0/1, state FULL
%OSPF-5-ADJCHG: Process 1, Nbr 10.0.0.9 on FastEthernet0/1 from LOADING to FULL, Loading Done
OSPF: Rcv LS REQ from 10.0.0.9 on FastEthernet0/1 length 36 LSA count 1
OSPF: Build router LSA for area 0, router ID 10.0.0.8, seq 0x80000003, process 1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/49/92 ms
R10
interface FastEthernet1/0
mac-address 1000.0000.0010
R10
router isis
net 49.0002.1000.0000.0010.00
is-type level-2-only
metric-style wide
passive-interface Loopback0
interface FastEthernet1/0
ip router isis
isis network point-to-point
isis csnp-interval 10
interface FastEthernet0/1
ip router isis
isis network point-to-point
R11
router isis
net 49.0002.ca08.0110.001c.00
is-type level-2-only
metric-style wide
passive-interface Loopback0
interface FastEthernet1/0
ip router isis
isis network point-to-point
383
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/1
ip router isis
isis network point-to-point
R12
router isis
net 49.0002.ca0a.0178.001c.00
is-type level-2-only
metric-style wide
passive-interface Loopback0
interface FastEthernet1/0
ip router isis
isis network point-to-point
interface FastEthernet0/1
ip router isis
isis network point-to-point
§IS-IS level 2 usar metodo de autentificación entre vecinos IS-IS sin encriptar (no usar “old style”)
TCP/IP I 587
Existen varios niveles de encriptacion. Nivel vecinos, Area y Dominio….
R10
key chain CCIE
key 1
key-string cisco
385
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/1
isis authentication mode text
isis authentication key-chain CCIE
interface FastEthernet1/0
isis authentication mode text
isis authentication key-chain CCIE
R11
key chain CCIE
key 1
key-string cisco
interface FastEthernet0/1
isis authentication mode text
isis authentication key-chain CCIE
interface FastEthernet1/0
isis authentication mode text
isis authentication key-chain CCIE
R12
key chain CCIE
key 1
key-string cisco
interface FastEthernet0/1
isis authentication mode text
isis authentication key-chain CCIE
interface FastEthernet1/0
isis authentication mode text
isis authentication key-chain CCIE
When you assign a high priority tag to some IS-IS IP prefixes, those prefixes with the higher priority are updated in the routing
tables before prefixes with lower priority. In some networks, the high priority prefixes will be the provider edge (PE) loopback
addresses. The convergence time is reduced for the important IS-IS IP prefixes and results in reduced convergence time for the
update processes that occur in the global RIB and Cisco Express Forwarding (CEF).
10.0.0.11/32
[115/L2/10] via 10.1.110.11(FastEthernet0/1), from 10.0.0.11, tag 0, LSP[1/10]
10.0.0.12/32
[115/L2/10] via 10.1.112.12(FastEthernet1/0), from 10.0.0.12, tag 0, LSP[3/6]
10.1.110.0/24
[115/L2/20] via 10.1.110.11(FastEthernet0/1), from 10.0.0.11, tag 0, LSP[1/10]
10.1.112.0/24
[115/L2/20] via 10.1.112.12(FastEthernet1/0), from 10.0.0.12, tag 0, LSP[3/6]
10.1.211.0/24
[115/L2/20] via 10.1.110.11(FastEthernet0/1), from 10.0.0.11, tag 0, LSP[1/10]
[115/L2/20] via 10.1.112.12(FastEthernet1/0), from 10.0.0.12, tag 0, LSP[3/6]
R10
interface loopback 0
isis tag 10
router isis
ip route priority high tag 10
R11
interface loopback 0
isis tag 11
router isis
ip route priority high tag 11
R12
interface loopback 0
isis tag 12
router isis
ip route priority high tag 12
IBGP
AS1
§ Formar sesion iBGP usando loopack0
§ Publicar loopback 0 de R4 y R5
§ Activar iBGP dentro de la familia ipv4 (Completar explicacion)
§ Usar loopback 0 como router-id
R4
router bgp 1
bgp router-id 10.0.0.4
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.0.0.5 remote-as 1
neighbor 10.0.0.5 update-source Loopback0
!
address-family ipv4
no synchronization
network 10.0.0.4 mask 255.255.255.255
neighbor 10.0.0.5 activate
no auto-summary
exit-address-family
R5
router bgp 1
bgp router-id 10.0.0.5
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.0.0.4 remote-as 1
neighbor 10.0.0.4 update-source Loopback0
!
address-family ipv4
no synchronization
388
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
IBGP
AS2
§ Formar sesion iBGP usando loopack0
§ Publicar loopback 0 de R6 y R7
§ Crear y publicar las redes mostradas en la figura
§ Activar iBGP dentro de la familia ipv4 (Completar explicacion)
§ Usar loopback 0 como router-id
389
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R6
router bgp 2
bgp router-id 10.0.0.6
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.0.0.7 remote-as 2
neighbor 10.0.0.7 update-source Loopback0
!
address-family ipv4
no synchronization
network 10.0.0.6 mask 255.255.255.255
neighbor 10.0.0.7 activate
no auto-summary
exit-address-family
R7
router bgp 2
bgp router-id 10.0.0.7
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.0.0.6 remote-as 2
neighbor 10.0.0.6 update-source Loopback0
!
address-family ipv4
no synchronization
network 10.0.0.7 mask 255.255.255.255
neighbor 10.0.0.6 activate
no auto-summary
exit-address-family
IBGP
AS3
§ Formar sesion iBGP usando loopack0
§ Publicar loopback 0 de R6 y R7
§ Crear y publicar las redes mostradas en la figura
§ Activar iBGP dentro de la familia ipv4 (Completar explicacion)
§ Usar loopback 0 como router-id
390
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R8
router bgp 3
bgp router-id 10.0.0.8
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.0.0.9 remote-as 3
neighbor 10.0.0.9 update-source Loopback0
!
address-family ipv4
no synchronization
network 10.0.0.8 mask 255.255.255.255
neighbor 10.0.0.9 activate
no auto-summary
exit-address-family
R9
router bgp 3
bgp router-id 10.0.0.9
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.0.0.8 remote-as 3
neighbor 10.0.0.8 update-source Loopback0
!
address-family ipv4
no synchronization
network 10.0.0.9 mask 255.255.255.255
neighbor 10.0.0.8 activate
no auto-summary
exit-address-family
IBGP
AS100
§ Formar sesion iBGP full mesh usando loopack0
§ Publicar loopback 0 de R10, R11 y R12
§ Activar iBGP dentro de la familia ipv4 (Completar explicacion)
§ Usar loopback 0 como router-id
§ Usar Peer-Group nombre AS100
391
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R10
router bgp 100
bgp router-id 10.0.0.10
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS100 peer-group
neighbor AS100 remote-as 100
neighbor AS100 update-source Loopback0
neighbor 10.0.0.11 peer-group AS100
neighbor 10.0.0.12 peer-group AS100
!
address-family ipv4
no synchronization
network 10.0.0.10 mask 255.255.255.255
neighbor 10.0.0.11 activate
neighbor 10.0.0.12 activate
no auto-summary
exit-address-family
R11
router bgp 100
bgp router-id 10.0.0.11
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS100 peer-group
neighbor AS100 remote-as 100
neighbor AS100 update-source Loopback0
neighbor 10.0.0.10 peer-group AS100
neighbor 10.0.0.12 peer-group AS100
!
address-family ipv4
no synchronization
network 10.0.0.11 mask 255.255.255.255
neighbor 10.0.0.10 activate
neighbor 10.0.0.12 activate
no auto-summary
exit-address-family
R12
router bgp 100
bgp router-id 10.0.0.12
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS100 peer-group
neighbor AS100 remote-as 100
neighbor AS100 update-source Loopback0
neighbor 10.0.0.10 peer-group AS100
neighbor 10.0.0.11 peer-group AS100
!
address-family ipv4
no synchronization
network 10.0.0.12 mask 255.255.255.255
neighbor 10.0.0.10 activate
neighbor 10.0.0.11 activate
no auto-summary
exit-address-family
392
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R10#show ip bgp
BGP table version is 6, local router ID is 10.0.0.10
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
R11#show ip bgp
BGP table version is 6, local router ID is 10.0.0.11
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
R12#show ip bgp
BGP table version is 6, local router ID is 10.0.0.12
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
EBGP
§ Formar sesion eBGP R5/R10
§ Formar sesion eBGP R7/R11
§ Formar sesion eBGP R9/R11 y R9/R12
§ Todos los ASBRs se publicaran como next-hop-self
§ Pruebas de conectividad.
393
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5
router bgp 1
neighbor 10.1.105.10 remote-as 100
address-family ipv4
neighbor 10.0.0.4 next-hop-self
neighbor 10.1.105.10 activate
R10
router bgp 100
neighbor 10.1.105.5 remote-as 1
address-family ipv4
neighbor AS100 next-hop-self
neighbor 10.1.105.5 activate
R7
router bgp 2
neighbor 10.1.117.11 remote-as 100
address-family ipv4
neighbor 10.0.0.6 next-hop-self
neighbor 10.1.117.11 activate
R11
router bgp 100
neighbor 10.1.117.7 remote-as 2
address-family ipv4
neighbor AS100 next-hop-self
neighbor 10.1.117.7 activate
R9
router bgp 3
neighbor 10.1.119.11 remote-as 100
neighbor 10.1.129.12 remote-as 100
address-family ipv4
neighbor 10.0.0.8 next-hop-self
neighbor 10.1.119.11 activate
neighbor 10.1.129.12 activate
R11
router bgp 100
neighbor 10.1.119.9 remote-as 3
address-family ipv4
neighbor 10.1.119.9 activate
R12
router bgp 100
neighbor 10.1.129.9 remote-as 3
address-family ipv4
neighbor AS100 next-hop-self
394
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4#show ip bgp
BGP table version is 11, local router ID is 10.0.0.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
R4#tclsh
R4(tcl)#foreach ID {
+>(tcl)#10.0.0.5
+>(tcl)#10.0.0.6
+>(tcl)#10.0.0.7
+>(tcl)#10.0.0.8
+>(tcl)#10.0.0.9
+>(tcl)#10.0.0.10
+>(tcl)#10.0.0.11
+>(tcl)#10.0.0.12
+>(tcl)#} { ping $ID source loopback0 repeat 4 timeout 1}
R6#show ip bgp
BGP table version is 11, local router ID is 10.0.0.6
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
R6#tclsh
R6(tcl)#foreach ID {
+>(tcl)#10.0.0.4
+>(tcl)#10.0.0.5
+>(tcl)#10.0.0.7
+>(tcl)#10.0.0.8
+>(tcl)#10.0.0.9
+>(tcl)#10.0.0.10
+>(tcl)#10.0.0.11
+>(tcl)#10.0.0.12
+>(tcl)#} { ping $ID source loopback0 repeat 4 timeout 1}
R8#show ip bgp
BGP table version is 11, local router ID is 10.0.0.8
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
R8#tclsh
R8(tcl)#foreach ID {
+>(tcl)#10.0.0.4
+>(tcl)#10.0.0.5
+>(tcl)#10.0.0.6
+>(tcl)#10.0.0.7
+>(tcl)#10.0.0.9
+>(tcl)#10.0.0.10
+>(tcl)#10.0.0.11
+>(tcl)#10.0.0.12
+>(tcl)#} { ping $ID source loopback0 repeat 4 timeout 1}
397
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Aggregation
Soft reset—A soft reset uses stored prefix information to reconfigure and activate BGP routing tables without tearing down
existing peering sessions. Soft reconfiguration uses stored update information, at the cost of additional memory for storing the
updates, to allow you to apply new BGP policy without disrupting the network. Soft reconfiguration can be configured for
inbound or outbound sessions.
Comprobar que atributos se pierden en el resumen.
398
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4
interface Loopback1
ip address 40.1.1.4 255.255.255.0
ip address 40.1.2.4 255.255.255.0 secondary
ip address 40.1.3.4 255.255.255.0 secondary
ip address 40.1.4.4 255.255.255.0 secondary
router bgp 1
address-family ipv4
network 10.0.0.4 mask 255.255.255.255
network 40.1.1.0 mask 255.255.255.0
network 40.1.2.0 mask 255.255.255.0
network 40.1.3.0 mask 255.255.255.0
network 40.1.4.0 mask 255.255.255.0
neighbor 10.0.0.5 soft-reconfiguration inbound
R5
router bgp 1
address-family ipv4
neighbor 10.0.0.4 soft-reconfiguration inbound
R4
router bgp 1
address-family ipv4
aggregate-address 40.1.0.0 255.255.240.0
R4
399
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
router bgp 1
address-family ipv4
aggregate-address 40.1.0.0 255.255.240.0 summary-only
R6
ip bgp-community new-format
interface Loopback1
ip address 60.1.1.6 255.255.255.0
ip address 60.1.2.6 255.255.255.0 secondary
ip address 60.1.3.6 255.255.255.0 secondary
ip address 60.1.4.6 255.255.255.0 secondary
router bgp 2
address-family ipv4
redistribute connected route-map LOOP1
neighbor 10.0.0.7 soft-reconfiguration inbound
neighbor 10.0.0.7 send-community
R7
ip bgp-community new-format
ip prefix-list R6-PFX seq 5 permit 60.1.0.0/20 le 24
router bgp 2
address-family ipv4
neighbor 10.1.117.11 send-community
neighbor 10.1.117.11 route-map COMM-NO-EXPORT out
R10
ip bgp-community new-format
router bgp 100
address-family ipv4
neighbor AS100 send-community
neighbor 10.1.105.5 send-community
R11
ip bgp-community new-format
router bgp 100
address-family ipv4
neighbor AS100 send-community
neighbor 10.1.119.9 send-community
neighbor 10.1.117.7 send-community
R12
ip bgp-community new-format
router bgp 100
address-family ipv4
neighbor AS100 send-community
neighbor 10.1.129.9 send-community
§ AS100 no debe publicar las redes de R6 a ningun otro AS, salvo R10 que puede publicarlas a AS1 con la comunidad 2:69.
(redactar claramente la tarea).
AS1 no recibe las rutas que publica R6 por la comunidad no export. La tarea pide que R10 pueda no solo enviar las rutas de R6,
tambien que tengan la comunidad 2:69. Debemos anular la comunidad no export, y agregar la comunidad 2:69.
R5 recibe los ID de AS2 como vemos en el ejemplo.
R10
ip prefix-list R6-PFX seq 5 permit 60.1.0.0/20 le 24
402
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R10
ip prefix-list R6-PFX seq 5 permit 60.1.0.0/20 le 24
R5
ip bgp-community new-format
router bgp 1
address-family ipv4
neighbor 10.0.0.4 send-community
403
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4
ip bgp-community new-format
R8
interface Loopback1
ip address 80.1.1.8 255.255.255.0
ip address 80.1.2.8 255.255.255.0 secondary
ip address 80.1.3.8 255.255.255.0 secondary
ip address 80.1.4.8 255.255.255.0 secondary
router bgp 3
address-family ipv4
neighbor 10.0.0.9 send-community
redistribute connected route-map LOOP1
404
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R9
router bgp 3
neighbor 10.1.119.11 send-community
neighbor 10.1.129.12 send-community
R7
ip community-list 10 permit 3:69
router bgp 2
address-family ipv4
neighbor 10.0.0.6 route-map COMM-AS3 out
R5
405
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
router bgp 1
address-family ipv4
neighbor 10.1.105.10 distribute-list AS3-80.1.2.0 in
MPLS/LDP
AS1
§ Configurar MPLS/LDP R4/R5
§ Usar loopback 0 como ID LDP
R4
ip cef
mpls ip
mpls label protocol ldp
mpls label range 400 499
406
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/1
mpls ip
R5
ip cef
mpls ip
mpls label protocol ldp
mpls label range 500 599
mpls ldp router-id loopback 0 force
interface FastEthernet0/1
mpls ip
AS2
§ Configurar MPLS/LDP R6/R7
§ Usar loopback 0 como ID LDP
§ El envio de mensajes debe ser autentificados
R6
ip cef
mpls ip
mpls label protocol ldp
407
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/1
mpls ip
R7
ip cef
mpls ip
mpls label protocol ldp
mpls label range 700 799
mpls ldp router-id loopback 0 force
interface FastEthernet0/1
mpls ip
R6
mpls ldp neighbor 10.0.0.7 password cisco
R7
mpls ldp neighbor 10.0.0.6 password cisco
AS3
§ Configurar MPLS/LDP R8/R9
§ Usar loopback 0 como ID LDP
R8
ip cef
mpls ip
mpls label protocol ldp
408
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/1
mpls ip
R9
ip cef
mpls ip
mpls label protocol ldp
mpls label range 900 999
mpls ldp router-id loopback 0 force
interface FastEthernet0/1
mpls ip
AS3
§ Configurar MPLS/LDP R8/R9
§ Usar loopback 0 como ID LDP
§ Todas las sesiones deben estar protegidas
R10
ip cef
mpls ip
mpls label protocol ldp
mpls label range 1000 1099
mpls ldp router-id loopback 0 force
409
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet0/1
mpls ip
interface FastEthernet01/0
mpls ip
R11
ip cef
mpls ip
mpls label protocol ldp
mpls label range 1100 1199
mpls ldp router-id loopback 0 force
interface FastEthernet0/1
mpls ip
interface FastEthernet01/0
mpls ip
R12
ip cef
mpls ip
mpls label protocol ldp
mpls label range 1200 1299
mpls ldp router-id loopback 0 force
interface FastEthernet0/1
mpls ip
interface FastEthernet01/0
mpls ip
Interfaces:
FastEthernet0/1 (ldp): xmit/recv
LDP Id: 10.0.0.11:0
FastEthernet1/0 (ldp): xmit/recv
LDP Id: 10.0.0.12:0
R10
mpls ldp session protection duration infinite
R11
mpls ldp session protection duration infinite
R12
mpls ldp session protection duration infinite
R10#show access-lists
R11
interface fastEthernet 0/1
no mpls ip
R10
411
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R10#
LDP SP: 10.0.0.11:0: state change (Ready -> Protecting)
R10#
%LDP-5-SP: 10.0.0.11:0: session hold up initiated
R11
interface fastEthernet 0/1
mpls ip
MP-iBGP
AS1-AS2-AS3
R4
router bgp 1
address-family vpnv4
neighbor 10.0.0.5 activate
neighbor 10.0.0.5 send-community extended
R5
router bgp 1
address-family vpnv4
neighbor 10.0.0.4 activate
neighbor 10.0.0.4 send-community extended
R6
router bgp 2
address-family vpnv4
neighbor 10.0.0.7 activate
neighbor 10.0.0.7 send-community extended
R7
router bgp 2
address-family vpnv4
neighbor 10.0.0.6 activate
neighbor 10.0.0.6 send-community extended
R8
router bgp 3
address-family vpnv4
neighbor 10.0.0.9 activate
neighbor 10.0.0.9 send-community extended
R9
412
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
router bgp 3
address-family vpnv4
neighbor 10.0.0.8 activate
neighbor 10.0.0.8 send-community extended
MP-iBGP
AS100
R10
router bgp 100
address-family vpnv4
neighbor AS100 send-community extended
neighbor 10.0.0.11 activate
neighbor 10.0.0.12 activate
R11
router bgp 100
address-family vpnv4
neighbor AS100 send-community extended
413
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R12
router bgp 100
address-family vpnv4
neighbor AS100 send-community extended
neighbor 10.0.0.10 activate
neighbor 10.0.0.11 activate
MP-eBGP
Formamos LSP entre Sitios.
AS1/AS100
R5
router bgp 1
no bgp default route-target filter
address-family vpnv4
neighbor 10.1.105.10 activate
neighbor 10.1.105.10 send-community extended
R10
router bgp 100
no bgp default route-target filter
address-family vpnv4
neighbor 10.1.105.5 activate
neighbor 10.1.105.5 send-community extended
%BGP_LMM-6-AUTOGEN1: The mpls bgp forwarding command has been configured on interface: FastEthernet0/0
MP-eBGP
AS2/AS100
R7
router bgp 2
no bgp default route-target filter
address-family vpnv4
neighbor 10.1.117.11 activate
neighbor 10.1.117.11 send-community extended
R11
router bgp 100
no bgp default route-target filter
address-family vpnv4
neighbor 10.1.117.7 activate
neighbor 10.1.117.7 send-community extended
%BGP_LMM-6-AUTOGEN1: The mpls bgp forwarding command has been configured on interface: FastEthernet0/0
MP-eBGP
AS3/AS100
R9
router bgp 3
no bgp default route-target filter
address-family vpnv4
neighbor 10.1.119.11 activate
neighbor 10.1.119.11 send-community extended
neighbor 10.1.129.12 activate
neighbor 10.1.129.12 send-community extended
R11
router bgp 100
415
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
address-family vpnv4
neighbor 10.1.119.9 activate
neighbor 10.1.119.9 send-community extended
R12
router bgp 100
no bgp default route-target filter
address-family vpnv4
neighbor 10.1.129.9 activate
neighbor 10.1.129.9 send-community extended
R4
router bgp 1
neighbor EXTERNOS peer-group
neighbor EXTERNOS ebgp-multihop 255
neighbor EXTERNOS update-source Loopback0
neighbor 10.0.0.6 remote-as 2
neighbor 10.0.0.6 peer-group EXTERNOS
neighbor 10.0.0.8 remote-as 3
neighbor 10.0.0.8 peer-group EXTERNOS
address-family vpnv4
neighbor EXTERNOS send-community extended
neighbor EXTERNOS next-hop-unchanged
neighbor 10.0.0.6 activate
neighbor 10.0.0.8 activate
R6
router bgp 2
neighbor EXTERNOS peer-group
neighbor EXTERNOS ebgp-multihop 255
neighbor EXTERNOS update-source Loopback0
neighbor 10.0.0.4 remote-as 1
neighbor 10.0.0.4 peer-group EXTERNOS
neighbor 10.0.0.8 remote-as 3
neighbor 10.0.0.8 peer-group EXTERNOS
address-family vpnv4
neighbor EXTERNOS send-community extended
neighbor EXTERNOS next-hop-unchanged
neighbor 10.0.0.4 activate
neighbor 10.0.0.8 activate
R8
router bgp 3
neighbor EXTERNOS peer-group
neighbor EXTERNOS ebgp-multihop 255
neighbor EXTERNOS update-source Loopback0
416
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
address-family vpnv4
neighbor EXTERNOS send-community extended
neighbor EXTERNOS next-hop-unchanged
neighbor 10.0.0.4 activate
neighbor 10.0.0.6 activate
VPNA
R4
ip vrf A
rd 1:1
route-target export 1:1
route-target import 2:1
route-target import 3:1
interface FastEthernet0/0
ip vrf forwarding A
ip address 172.16.14.4 255.255.255.0
router rip
router bgp 1
address-family ipv4 vrf A
no synchronization
redistribute rip
R1
router rip
version 2
network 100.0.0.0
network 172.16.0.0
no auto-summary
VPNB
R6
ip vrf B
rd 2:1
route-target export 2:1
route-target import 1:1
route-target import 3:1
interface FastEthernet0/0
ip vrf forwarding B
ip address 172.16.26.6 255.255.255.0
ip ospf network point-to-point
router bgp 2
address-family ipv4 vrf B
no synchronization
redistribute ospf 26 vrf B match internal external 1 external 2
R2
interface Loopback0
ip address 100.0.0.2 255.255.255.255
ip ospf 26 area 0
interface FastEthernet0/0
ip address 172.16.26.2 255.255.255.0
ip ospf network point-to-point
ip ospf 26 area 0
router ospf 26
router-id 100.0.0.2
Routing Table: B
Gateway of last resort is not set
100.0.0.0/32 is subnetted, 2 subnets
O 100.0.0.2 [110/2] via 172.16.26.2, 00:00:19, FastEthernet0/0
VPNC
R8
ip vrf C
rd 3:1
route-target export 3:1
route-target import 1:1
route-target import 2:1
interface FastEthernet0/0
ip vrf forwarding C
ip address 172.16.38.8 255.255.255.0
ip ospf network point-to-point
router bgp 3
address-family ipv4 vrf C
no synchronization
redistribute ospf 26 vrf C match internal external 1 external 2
R3
interface FastEthernet0/0
ip ospf network point-to-point
ip ospf 26 area 0
router ospf 26
router-id 100.0.0.3
network 100.0.0.3 0.0.0.0 area 0
Next-Hop-Self VPNv4
El Sistema Autonomo 100 AS100 es el punto central para los tres sitios, es de suma importancia que no rechaze rutas vpnv4, ya
hemos evitado el filtrado de rutas con el comando ASBR no bgp default route-target filter. Comprobamos que las rutas estén
instaladas en AS100, AS1, AS2 y AS3.
R10
router bgp 100
address-family vpnv4
neighbor AS100 next-hop-self
R11
router bgp 100
address-family vpnv4
neighbor AS100 next-hop-self
R12
router bgp 100
address-family vpnv4
neighbor AS100 next-hop-self
R5
router bgp 1
address-family vpnv4
neighbor 10.0.0.4 next-hop-self
420
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R7
router bgp 2
address-family vpnv4
neighbor 10.0.0.6 next-hop-self
R9
router bgp 3
address-family vpnv4
neighbor 10.0.0.8 next-hop-self
Pruebas Extremo-Extremo
Control VPNs
Configurar R11 de manera que el trafico VPNA desde Sitio1 a Sitio3 utilice el path R4->R5->R10->R12->R9->R8.
El criterio de selección de la mejor ruta que utiliza BGP nos indica que los criterios son iguales y que el next-hop con menor IP
será el elegido por R9 para alcanzar Sitio1 (R11 será el valor seleccionado por BGP).
Para lograr el comportamiento pedido necesitamos analizar el trafico en base al sitio.
R11
ip access-list standard PREFIJO-Sitio1
permit 172.16.14.0
permit 100.0.0.1
424
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R11
ip access-list standard PREFIJO-Sitio2
permit 172.16.38.0
permit 100.0.0.8
425
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4
ip multicast-routing
interface Loopback0
ip pim sparse-mode
interface FastEthernet0/1
ip pim sparse-mode
R5
ip multicast-routing
426
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface Loopback0
ip pim sparse-mode
interface FastEthernet0/1
ip pim sparse-mode
R6
ip multicast-routing
interface Loopback0
ip pim sparse-mode
interface FastEthernet0/1
ip pim sparse-mode
R7
ip multicast-routing
interface Loopback0
ip pim sparse-mode
interface FastEthernet0/1
ip pim sparse-mode
R5
interface Tunnel57
ip unnumbered loopback 0
ip pim sparse-dense-mode
tunnel source loopback 0
tunnel destination 10.0.0.7
R7
interface Tunnel57
ip unnumbered loopback 0
ip pim sparse-dense-mode
tunnel source loopback 0
tunnel destination 10.0.0.5
R5
428
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R7
ip mroute 10.1.45.0 255.255.255.0 tunnel 57
RP
R7 RP-Address
Configurar R6 con la direccion de grupo IGMP 239.1.1.1
Comprobar que todos los routes de AS1 y AS2 puedan alcanzar el grupo IGMP configurado en el router R6.
R7
ip pim rp-address 10.0.0.7
ip pim rp-candidate Loopback0
R6
ip pim rp-address 10.0.0.7
interface Loopback0
ip address 10.0.0.6 255.255.255.255
ip pim sparse-mode
ip igmp join-group 239.1.1.1
R4
ip pim rp-address 10.0.0.7
R5
ip pim rp-address 10.0.0.7
R4#ping 239.1.1.1
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 239.1.1.1, timeout is 2 seconds:
Reply to request 0 from 10.0.0.6, 764 ms
R5#ping 239.1.1.1
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 239.1.1.1, timeout is 2 seconds:
Reply to request 0 from 10.0.0.6, 812 ms
R6#ping 239.1.1.1
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 239.1.1.1, timeout is 2 seconds:
Reply to request 0 from 10.0.0.6, 132 ms
R7#ping 239.1.1.1
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 239.1.1.1, timeout is 2 seconds:
Reply to request 0 from 10.0.0.6, 168 ms
Reply to request 0 from 10.0.0.6, 820 ms
R4#show ip pim rp
Group: 239.1.1.1, RP: 10.0.0.7, uptime 00:03:18, expires never
Group: 224.0.1.40, RP: 10.0.0.7, uptime 00:03:50, expires never
430
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5#show ip pim rp
Group: 239.1.1.1, RP: 10.0.0.7, uptime 00:03:59, expires never
Group: 224.0.1.40, RP: 10.0.0.7, uptime 00:03:59, expires never
R6#show ip pim rp
Group: 239.1.1.1, RP: 10.0.0.7, v2, uptime 00:10:20, expires never
Group: 224.0.1.40, RP: 10.0.0.7, v2, uptime 00:04:14, expires never
R7#show ip pim rp
Group: 239.1.1.1, RP: 10.0.0.7, v2, next RP-reachable in 00:00:21
Group: 224.0.1.40, RP: 10.0.0.7, v2, next RP-reachable in 00:01:09
Multicast VPN
Sitio 1
R4
ip multicast-routing vrf A
interface FastEthernet0/0
ip vrf forwarding A
ip pim sparse-dense-mode
R1
interface Loopback0
ip pim sparse-dense-mode
interface FastEthernet0/0
ip pim sparse-dense-mode
R4
ip vrf A
mdt default 234.1.1.1
431
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R6
ip multicast-routing vrf B
interface FastEthernet0/0
ip pim sparse-dense-mode
R2
ip multicast-routing
interface Loopback0
ip pim sparse-dense-mode
interface FastEthernet0/0
ip pim sparse-dense-mode
R6
ip vrf B
mdt default 234.1.1.1
R1
ip pim rp-address 100.0.0.1
ip pim rp-candidate Loopback0
R2
ip pim rp-address 100.0.0.1
R2#ping 235.1.1.1
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 235.1.1.1, timeout is 2 seconds:
Reply to request 0 from 100.0.0.1, 888 ms
Reply to request 0 from 100.0.0.1, 1048 ms
L2TPv3
Como se trata de la misma encapsualacion no necesitamos usar el comando interworking ip en el Pseudo-Wire.
L2TPv3 viaja sobre IP, no esperemos que se forme una sesion LDP.
R4
pseudowire-class PW1
encapsulation l2tpv3
ip local interface Loopback0
433
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
interface FastEthernet1/0
no ip address
duplex full
no keepalive
no shut
xconnect 10.0.0.8 100 pw-class PW1
R1
interface FastEthernet0/1
ip address 172.16.13.1 255.255.255.0
duplex full
speed auto
R8
pseudowire-class PW1
encapsulation l2tpv3
ip local interface Loopback0
interface FastEthernet1/0
no ip address
duplex full
no keepalive
no shut
xconnect 10.0.0.4 100 pw-class PW1
R4#show l2tun
LocTunID RemTunID Remote Name State Remote Address Sessn L2TP Class/
Count VPDN Group
738140105 739992134 R8 est 10.0.0.8 1 l2tp_default_cl
R8#show l2tun
LocTunID RemTunID Remote Name State Remote Address Sessn L2TP Class/
Count VPDN Group
739992134 738140105 R4 est 10.0.0.4 1 l2tp_default_cl
Circuit state is UP
Local circuit state is UP
Remote circuit state is UP
Call serial number is 1139000001
Remote tunnel name is R8
Internet address is 10.0.0.8
Local tunnel name is R4
Internet address is 10.0.0.4
IP protocol 115
Session is L2TP signaled
Session state is established, time since change 00:08:31
84 Packets sent, 65 received
9567 Bytes sent, 6413 received
Last clearing of counters never
Counters, ignoring last clear:
84 Packets sent, 65 received
9567 Bytes sent, 6413 received
Receive packets dropped:
out-of-order: 0
other: 0
total: 0
Send packets dropped:
exceeded session MTU: 0
other: 0
total: 0
DF bit off, ToS reflect disabled, ToS value 0, TTL value 255
Sending UDP checksums are disabled
Received UDP checksums are verified
No session cookie information available
FS cached header information:
encap size = 24 bytes
45000014 00000000 ff73a76b 0a000004
0a000008 73138f6d
Sequencing is off
Conditional debugging is disabled
SSM switch id is 4096, SSM segment id is 8193
El comando show sss circuits nos entrega informacion adicional como la encapsulacion, ID origen/destino en formato
hexadecimal.
Por ejemplo R4#show sss circuits nos muestra los primeros 20 bytes pertenecen a la cabecera IP con la direccion origen
10.0.0.4 (0x0A000004) y la direccion de destino (0x0A000008).
435
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Pruebas extremo/extremo
R3#ping 172.16.13.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.13.1, timeout is 2 seconds:
436
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 356/509/668 ms
437
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
AS1
§ Configurar AS1 utilizando IS-IS con net 49.0001.0000.0000.0003.00 y 49.0001.0000.0000.0004.00 para R3 y R4
respectivamente. Usar ayacencia L2. No debe existir elección de DIS.
§ Configurar LDP en AS1 usando loopback0 como ID de sesión.
§ BGP IPv4 R3/R4. Publicar loopback0. Habilitar IPv4 dentro de address-family ipv4 unicast.
R3
interface FastEthernet0/0
ip router isis
isis network point-to-point
router isis
net 49.0001.0000.0000.0003.00
passive-interface Loopback0
is-type level-2-only
R4
interface FastEthernet0/0
ip router isis
isis network point-to-point
router isis
net 49.0001.0000.0000.0004.00
438
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
passive-interface Loopback0
is-type level-2-only
R3
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 300 399
interface FastEthernet0/0
mpls ip
R4
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 400 499
interface FastEthernet0/0
mpls ip
§ BGP IPv4 R3/R4. Publicar loopback0. Habilitar IPv4 dentro de address-family ipv4 unicast.
R3
router bgp 1
bgp router-id 10.1.1.3
no bgp default ipv4-unicast
neighbor 10.1.1.4 remote-as 1
neighbor 10.1.1.4 update-source Loopback0
address-family ipv4
no synchronization
network 10.1.1.3 mask 255.255.255.255
neighbor 10.1.1.4 activate
neighbor 10.1.1.4 next-hop-self
no auto-summary
R4
router bgp 1
bgp router-id 10.1.1.4
no bgp default ipv4-unicast
neighbor 10.1.1.3 remote-as 1
neighbor 10.1.1.3 update-source Loopback0
address-family ipv4
no synchronization
network 10.1.1.4 mask 255.255.255.255
neighbor 10.1.1.3 activate
neighbor 10.1.1.3 next-hop-self
R3#show ip bgp
BGP table version is 4, local router ID is 10.1.1.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
R4#show ip bgp
BGP table version is 4, local router ID is 10.1.1.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
AS2
§ Configurar AS2 utilizando IS-IS con net con la siguiente distribución :
1. R5 : 49.0002.0000.0000.0005.00
2. R6 : 49.0002.0000.0000.0006.00
3. R7 : 49.0002.0000.0000.0007.00
440
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
4. R8 : 49.0002.0000.0000.0008.00
5. R9 : 49.0002.0000.0000.0009.00
Usar L2 unicamente. No debe existir elección de DIS.
§ Configurar LDP en AS2 usando loopback0 como ID de sesión.
R5
interface FastEthernet0/0
ip router isis
isis network point-to-point
interface FastEthernet0/1
ip router isis
isis network point-to-point
interface FastEthernet1/0
ip router isis
isis network point-to-point
router isis
net 49.0001.0000.0000.0005.00
passive-interface Loopback0
is-type level-2-only
R6
interface FastEthernet0/0
ip router isis
isis network point-to-point
interface FastEthernet0/1
ip router isis
isis network point-to-point
interface FastEthernet1/0
ip router isis
isis network point-to-point
router isis
net 49.0001.0000.0000.0006.00
passive-interface Loopback0
is-type level-2-only
R7
interface FastEthernet0/0
ip router isis
isis network point-to-point
interface FastEthernet0/1
ip router isis
isis network point-to-point
router isis
net 49.0001.0000.0000.0007.00
passive-interface Loopback0
is-type level-2-only
R8
interface FastEthernet0/0
441
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
ip router isis
isis network point-to-point
interface FastEthernet0/1
ip router isis
isis network point-to-point
interface FastEthernet1/0
ip router isis
isis network point-to-point
interface FastEthernet2/0
ip router isis
isis network point-to-point
router isis
net 49.0001.0000.0000.0008.00
passive-interface Loopback0
is-type level-2-only
R9
interface FastEthernet0/0
ip router isis
isis network point-to-point
interface FastEthernet0/1
ip router isis
isis network point-to-point
router isis
net 49.0001.0000.0000.0009.00
passive-interface Loopback0
is-type level-2-only
R5
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 500 599
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
interface FastEthernet1/0
mpls ip
R6
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 600 699
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
interface FastEthernet1/0
mpls ip
R7
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 700 799
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
R8
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 800 899
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
443
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
mpls ip
interface FastEthernet1/0
mpls ip
interface FastEthernet2/0
mpls ip
R9
ip cef
mpls ip
mpls label protocol ldp
mpls ldp router-id loopback 0 force
mpls label range 900 999
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
§ BGP IPv4 R5/R6/R7/R8/R9. Publicar loopback0. Habilitar IPv4 dentro de address-family ipv4 unicast.
§ R5 y R6 deben ser RR IPv4. Para disminuir la configuración y envío de actualizaciones estos routers deben utilizar peer-
group.
§ Usar loopback0 como ID BGP.
R5
router bgp 2
bgp router-id 10.1.1.5
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS2 peer-group
neighbor AS2 remote-as 2
neighbor AS2 update-source Loopback0
neighbor 10.1.1.6 peer-group AS2
neighbor 10.1.1.7 peer-group AS2
neighbor 10.1.1.8 peer-group AS2
neighbor 10.1.1.9 peer-group AS2
!
address-family ipv4
no synchronization
network 10.1.1.5 mask 255.255.255.255
neighbor AS2 next-hop-self
neighbor 10.1.1.6 activate
neighbor 10.1.1.7 activate
neighbor 10.1.1.8 activate
neighbor 10.1.1.9 activate
no auto-summary
445
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R6
router bgp 2
bgp router-id 10.1.1.6
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor AS2 peer-group
neighbor AS2 remote-as 2
neighbor AS2 update-source Loopback0
neighbor 10.1.1.5 peer-group AS2
neighbor 10.1.1.7 peer-group AS2
neighbor 10.1.1.8 peer-group AS2
neighbor 10.1.1.9 peer-group AS2
address-family ipv4
no synchronization
network 10.1.1.6 mask 255.255.255.255
neighbor AS2 next-hop-self
neighbor 10.1.1.5 activate
neighbor 10.1.1.7 activate
neighbor 10.1.1.8 activate
neighbor 10.1.1.9 activate
no auto-summary
exit-address-family
R7
router bgp 2
bgp router-id 10.1.1.7
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.1.1.5 remote-as 2
neighbor 10.1.1.5 update-source Loopback0
neighbor 10.1.1.6 remote-as 2
neighbor 10.1.1.6 update-source Loopback0
address-family ipv4
no synchronization
network 10.1.1.7 mask 255.255.255.255
neighbor 10.1.1.5 activate
neighbor 10.1.1.6 activate
no auto-summary
R8
router bgp 2
bgp router-id 10.1.1.8
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.1.1.5 remote-as 2
neighbor 10.1.1.5 update-source Loopback0
neighbor 10.1.1.6 remote-as 2
neighbor 10.1.1.6 update-source Loopback0
address-family ipv4
no synchronization
network 10.1.1.8 mask 255.255.255.255
neighbor 10.1.1.5 activate
neighbor 10.1.1.6 activate
no auto-summary
446
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R9
router bgp 2
bgp router-id 10.1.1.9
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.1.1.5 remote-as 2
neighbor 10.1.1.5 update-source Loopback0
neighbor 10.1.1.6 remote-as 2
neighbor 10.1.1.6 update-source Loopback0
address-family ipv4
no synchronization
network 10.1.1.9 mask 255.255.255.255
neighbor 10.1.1.5 activate
neighbor 10.1.1.6 activate
no auto-summary
Aun no hemos configurado RR. Y vemos que la convergencia no se ha producido (faltan los ID de cada todos los routers en AS2).
R7#show ip bgp
BGP table version is 6, local router ID is 10.1.1.7
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
R5
router bgp 2
address-family ipv4
neighbor AS2 route-reflector-client
R6
router bgp 2
address-family ipv4
447
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R7#show ip bgp
BGP table version is 17, local router ID is 10.1.1.7
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Por demos observar en la siguiente salida que el RR que publica la actualización nos advierte que se trata de una ruta reflejada por
un cluster en particular. Tenemos dos clusters, R5 y R6.
448
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R3
router bgp 1
neighbor 10.1.35.5 remote-as 2
address-family ipv4
neighbor 10.1.35.5 activate
R5
router bgp 2
neighbor 10.1.35.3 remote-as 1
address-family ipv4
neighbor 10.1.35.3 activate
R4
router bgp 1
neighbor 10.1.46.6 remote-as 2
address-family ipv4
neighbor 10.1.46.6 activate
R6
router bgp 2
neighbor 10.1.46.4 remote-as 1
address-family ipv4
neighbor 10.1.46.4 activate
R3#show ip bgp
BGP table version is 18, local router ID is 10.1.1.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.1.1.3/32 0.0.0.0 0 32768 i
r>i10.1.1.4/32 10.1.1.4 0 100 0 i
*> 10.1.1.5/32 10.1.35.5 0 02i
*i 10.1.1.4 0 100 0 2 i
*> 10.1.1.6/32 10.1.35.5 02i
*i 10.1.1.4 0 100 0 2 i
*> 10.1.1.7/32 10.1.35.5 02i
*i 10.1.1.4 0 100 0 2 i
*> 10.1.1.8/32 10.1.35.5 02i
449
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R3
router bgp 1
address-family ipv6
neighbor 10.1.1.4 activate
neighbor 10.1.1.4 send-label
neighbor 10.1.35.5 activate
neighbor 10.1.35.5 send-label
%BGP_LMM-6-AUTOGEN1: The mpls bgp forwarding command has been configured on interface: Serial2/0
R4
router bgp 1
address-family ipv6
neighbor 10.1.1.3 activate
neighbor 10.1.1.3 send-label
neighbor 10.1.46.6 activate
neighbor 10.1.46.6 send-label
exit-address-family
R5
router bgp 2
address-family ipv6
neighbor AS2 send-label
neighbor 10.1.1.6 activate
neighbor 10.1.1.7 activate
neighbor 10.1.1.8 activate
neighbor 10.1.1.9 activate
neighbor 10.1.35.3 activate
neighbor 10.1.35.3 send-label
R6
router bgp 2
address-family ipv6
neighbor AS2 send-label
neighbor 10.1.1.5 activate
neighbor 10.1.1.7 activate
neighbor 10.1.1.8 activate
neighbor 10.1.1.9 activate
neighbor 10.1.46.4 activate
neighbor 10.1.46.4 send-label
450
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R7
router bgp 2
address-family ipv6
neighbor 10.1.1.5 activate
neighbor 10.1.1.5 send-label
neighbor 10.1.1.6 activate
neighbor 10.1.1.6 send-label
R8
router bgp 2
address-family ipv6
neighbor 10.1.1.5 activate
neighbor 10.1.1.5 send-label
neighbor 10.1.1.6 activate
neighbor 10.1.1.6 send-label
R9
router bgp 2
address-family ipv6
neighbor 10.1.1.5 activate
neighbor 10.1.1.5 send-label
neighbor 10.1.1.6 activate
neighbor 10.1.1.6 send-label
interface Serial1/0
ip address 10.1.35.3 255.255.255.0
mpls bgp forwarding
serial restart-delay 0
!
end
R1
ipv6 router ospf 1
router-id 100.1.1.1
interface FastEthernet0/0
ipv6 ospf 1 area 0
ipv6 ospf network point-to-point
interface FastEthernet0/1
ipv6 ospf 1 area 0
ipv6 ospf network point-to-point
interface Loopback0
ipv6 ospf 1 area 0
R2
ipv6 router ospf 1
router-id 100.1.1.2
interface FastEthernet0/0
ipv6 ospf 1 area 0
ipv6 ospf network point-to-point
interface FastEthernet0/1
ipv6 ospf 1 area 0
ipv6 ospf network point-to-point
interface Loopback0
ipv6 ospf 1 area 0
R3
ipv6 router ospf 1
router-id 3.3.3.3
log-adjacency-changes
interface FastEthernet0/1
ipv6 ospf 1 area 0
452
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R4
ipv6 router ospf 1
router-id 4.4.4.4
log-adjacency-changes
interface FastEthernet0/1
ipv6 ospf 1 area 0
R10
ipv6 router ospf 1
router-id 100.1.1.10
log-adjacency-changes
interface Serial1/0
ipv6 ospf 1 area 0
interface Loopback0
ipv6 ospf 1 area 0
R7
ipv6 router ospf 1
router-id 7.7.7.7
log-adjacency-changes
interface Serial1/0
ipv6 ospf 1 area 0
453
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R5
router bgp 2
address-family ipv6
neighbor AS2 route-reflector-client
R6
router bgp 2
address-family ipv6
neighbor AS2 route-reflector-client
Nota:la palabra clave subnet en redistribución BGP-> OSPF ya no es necesaria por la naturaleza del tipo de dirección IPv6. Evitar
utulizar el comando redistribute connected puesto que publicará todas las interfaces conectadas, si usamos el comando included-
connected evitamos que se redistribuyan redes que no nos interesa.
R3
ipv6 router ospf 1
redistribute bgp 1
router bgp 1
address-family ipv6
redistribute ospf 1 include-connected
neighbor 10.1.1.4 next-hop-self
R4
ipv6 router ospf 1
redistribute bgp 1
router bgp 1
address-family ipv6
redistribute ospf 1 include-connected
neighbor 10.1.1.3 next-hop-self
R7
ipv6 router ospf 1
redistribute bgp 2
router bgp 2
address-family ipv6
redistribute ospf 1 include-connected
454
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
*i ::FFFF:10.1.46.4
0 100 0 1?
Network Next Hop Metric LocPrf Weight Path
*> 2000:1:107::/124 :: 0 32768 ?
* i2000:1:124::/124 ::FFFF:10.1.35.3
0 100 0 1?
*i ::FFFF:10.1.46.4
0 100 0 1?
Nota : R7 no sabe como llegar al next-hop ::FFFF:10.1.35.3 y ::FFFF:10.1.46.4. Redistribuimos o hacemos a los ASRBs next-
hop.
R5
router bgp 2
address-family ipv6
neighbor AS2 next-hop-self
R6
router bgp 2
address-family ipv6
neighbor AS2 next-hop-self
R7#show bgp ipv6 unicast
BGP table version is 8, local router ID is 10.1.1.7
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
456
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R2#traceroute
Protocol [ip]: ipv6
Target IPv6 address: BBC::10
Source address: BBC::2
Insert source routing header? [no]:
Numeric display? [no]:
Timeout in seconds [3]:
Probe count [3]: 1
Minimum Time to Live [1]:
Maximum Time to Live [30]:
Priority [0]:
Port Number [0]:
Type escape sequence to abort.
Tracing the route to BBC::10
1 2000:1:24::4 88 msec
2 ::FFFF:10.1.46.6 [MPLS: Label 609 Exp 0] 284 msec
3 ::FFFF:10.1.68.8 [MPLS: Labels 802/709 Exp 0] 480 msec
4 2000:1:107::7 [MPLS: Label 709 Exp 0] 800 msec
5 2000:1:107::1 1008 msec
R1#traceroute
Protocol [ip]: ipv6
Target IPv6 address: bbc::10
Source address: bbc::1
Insert source routing header? [no]:
Numeric display? [no]:
Timeout in seconds [3]:
Probe count [3]: 1
Minimum Time to Live [1]:
Maximum Time to Live [30]:
Priority [0]:
Port Number [0]:
Type escape sequence to abort.
Tracing the route to BBC::10
457
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
Configurar 6VPE para que Cliente A pueda comunicar sus dos sitios.
R3
router bgp 1
address-family vpnv6
neighbor 10.1.1.4 activate
neighbor 10.1.1.4 send-community extended
neighbor 10.1.35.5 activate
neighbor 10.1.35.5 send-community extended
R4
router bgp 1
address-family vpnv6
neighbor 10.1.1.3 activate
neighbor 10.1.1.3 send-community extended
neighbor 10.1.46.6 activate
neighbor 10.1.46.6 send-community extended
R5
router bgp 2
address-family vpnv6
neighbor AS2 send-community extended
neighbor AS2 route-reflector-client
neighbor 10.1.1.6 activate
neighbor 10.1.1.7 activate
neighbor 10.1.1.8 activate
neighbor 10.1.1.9 activate
neighbor 10.1.35.3 activate
neighbor 10.1.35.3 send-community extended
458
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R6
router bgp 2
address-family vpnv6
neighbor AS2 send-community extended
neighbor AS2 route-reflector-client
neighbor 10.1.1.5 activate
neighbor 10.1.1.7 activate
neighbor 10.1.1.8 activate
neighbor 10.1.1.9 activate
neighbor 10.1.46.4 activate
neighbor 10.1.46.4 send-community extended
R7
router bgp 2
address-family vpnv6
neighbor 10.1.1.5 activate
neighbor 10.1.1.5 send-community extended
neighbor 10.1.1.6 activate
neighbor 10.1.1.6 send-community extended
R8
router bgp 2
address-family vpnv6
neighbor 10.1.1.5 activate
neighbor 10.1.1.5 send-community extended
neighbor 10.1.1.6 activate
neighbor 10.1.1.6 send-community extended
R9
router bgp 2
address-family vpnv6
neighbor 10.1.1.5 activate
neighbor 10.1.1.5 send-community extended
neighbor 10.1.1.6 activate
neighbor 10.1.1.6 send-community extended
R4
vrf definition A
rd 1:1
address-family ipv6
route-target export 1:10
route-target import 1:10
459
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
exit-address-family
interface FastEthernet1/0
vrf forwarding A
ipv6 address 2000:1:124::4/124
router bgp 1
address-family ipv6 vrf A
redistribute connected
no synchronization
neighbor 2000:1:42::1 remote-as 65001
neighbor 2000:1:42::1 activate
exit-address-family
R12
router bgp 65001
bgp router-id 100.1.1.12
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 2000:1:42::2 remote-as 1
address-family ipv6
network BBC::12/128
neighbor 2000:1:42::2 activate
R8
vrf definition A
rd 1:2
address-family ipv6
route-target export 1:10
route-target import 1:10
exit-address-family
interface FastEthernet3/0
vrf forwarding A
ipv6 address 2000:1:81::2/126
460
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
router bgp 2
address-family ipv6 vrf A
redistribute connected
no synchronization
neighbor 2000:1:81::1 remote-as 65001
neighbor 2000:1:81::1 activate
R11
interface FastEthernet0/0
ipv6 address 2000:1:81::1/126
interface FastEthernet0/1
ipv6 address 2000:1:91::1/126
address-family ipv6
network BBC::11/128
neighbor 2000:1:81::2 activate
neighbor 2000:1:91::2 activate
R9
vrf definition A
rd 1:2
address-family ipv6
route-target export 1:10
route-target import 1:10
exit-address-family
interface FastEthernet1/0
vrf forwarding A
ipv6 address 2000:1:91::2/126
router bgp 2
address-family ipv6 vrf A
redistribute connected
neighbor 2000:1:91::1 remote-as 65001
neighbor 2000:1:91::1 activate
R12
router bgp 65001
address-family ipv6
neighbor 2000:1:42::2 allowas-in
R11
router bgp 65001
address-family ipv6
neighbor 2000:1:81::2 allowas-in
neighbor 2000:1:91::2 allowas-in
R5
router bgp 2
address-family vpnv6
neighbor AS2 next-hop-self
462
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R6
router bgp 2
address-family vpnv6
neighbor AS2 next-hop-self
Nota: R7 no tiene rutas VPNv6 porque debemos deshabilitar el filtro RT con el comando. No necesitamos que R7 manipule las
rutas VPNv6.
R11#traceroute BBC::12
Type escape sequence to abort.
Tracing the route to BBC::12
1 2000:1:81::2 [AS 2] 260 msec 204 msec 992 msec
2 ::FFFF:10.1.68.5 [MPLS: Label 619 Exp 0] 944 msec 744 msec 312 msec
3 2000:1:42::2 [AS 1] [MPLS: Label 411 Exp 0] 176 msec 280 msec 368 msec
4 2000:1:42::1 [AS 1] 404 msec 580 msec 628 msec
464
@ 2011 NMT todos los derechos……
Guía MPLS L2-L3 Version 3.0
R11
router bgp 65001
address-family ipv6
maximum-paths 2
R11#traceroute BBC::12
Type escape sequence to abort.
Tracing the route to BBC::12
1 2000:1:81::2 [AS 2] 444 msec
2000:1:91::2 912 msec
2000:1:81::2 536 msec
2 ::FFFF:10.1.69.6 [MPLS: Label 619 Exp 0] 664 msec
::FFFF:10.1.68.5 708 msec
::FFFF:10.1.69.6 408 msec
3 2000:1:42::2 [AS 1] [MPLS: Label 411 Exp 0] 388 msec 728 msec 364 msec
4 2000:1:42::1 [AS 1] 504 msec 856 msec 1340 msec
465
@ 2011 NMT todos los derechos……