113
GRUPO ACADEMIA POSTAL CCNA Routing & Switching Novedades en Enrutamiento Centro de Nuevas Tecnologías de Galicia 14 de abril 2014

CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

Embed Size (px)

DESCRIPTION

Novedades sobre Enrutamiento en el nuevo curso CCNA Routing & Switching : OSPF Multiárea y OSPFv3

Citation preview

Page 1: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

CCNA Routing & Switching Novedades en Enrutamiento

Centro de Nuevas Tecnologías de Galicia

14 de abril 2014

Page 2: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Presentación

• Ponente: Francisco Javier Nóvoa (Grupo Academia Postal)

– En twitter: @fjnovoa_ – http://cisconetworkingspain.blogspot.com

• Ciclo de Seminarios sobre las innovaciones tecnológicas en el nuevo CCNA R&S

– CCNA Routing & Switching. Novedades en Tecnologías LAN (20 de febrero de 2014) – CCNA Routing & Switching. Novedades en Enrutamiento

(14 de abril de 2014)

– Despliegue de Soluciones Inalámbricas en Entornos Corporativos (Segundo trimestre de 2014)

Page 3: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Enrutamiento Básico

Page 4: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Información de Enrutamiento • Información de la tabla de enrutamiento

– Interfaz de salida: Nombre de la interfaz directamente conectada – Siguiente salto: IP de la interfaz del siguiente router – Distancia administrativa: Valor asociado a cada método de aprendizaje de rutas.

– Valor entre 0 y 255 – Se prefieren los

valores inferiores – Redes directamente

conectadas = 0 – Rutas estáticas = 1 (por

defecto) – Rutas aprendidas por

RIP = 120

Page 5: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

• Orígenes de la información de enrutamiento

– Rutas conectadas directamente – Rutas estáticas:

• Configuradas manualmente por el administrador

– Rutas dinámicas • Aprendidas mediante protocolos

de enrutamiento

Información de Enrutamiento

Page 6: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Enrutamiento Dinámico • Clasificación de los Protocolos de Enrutamiento.

– Interno (Interior Gateway Protocol, IGP): Comparten información de enrutamiento dentro del sistema autónomo

• Toma de decisiones basada en métricas: Nº de saltos, suma de coste de los enlaces, ancho de banda, retardos

• Vector – Distancia: RIP, EIGRP – Algortimo Bellman-Ford – Actualizaciones periódicas – Entornos reducidos

• Estado – Enlace: OSPF, IS-IS – Algoritmo de Dijkstra – Actualizaciones generadas por eventos – Redes corporativas de tamaño mediano y grande

– Externo (Exterior Gateway Protocol, EGP): Comparten información de enrutamiento entre sistemas autónomos diferentes

• Toma de decisiones basada en políticas • BGP 4

Page 7: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Introducción

• Open Shortest Path First (OSPF) es un protocolo de enrutamiento de estado-enlace basado en estándares abiertos (RFC 2338).

– Es no propietario Mayor escalabilidad. – Todos los routers conocen la estructura de la red. – Intercambian paquetes de enrutamiento en el arranque del router y cuando se

producen cambios en algún enlace (cambios de topología). • Mejor aprovechamiento del ancho de banda.

• Su principal característica es que proporciona escalabilidad, que se basa en el diseño jerárquico y la división del sistema en áreas.

– Rápida convergencia (estado-enlace). – No tiene limitación de tamaño. – Soporta VLSM (Variable Length Subnet Masking). – Reduce la sobrecarga debida al enrutamiento y mejora el rendimiento.

• Mejor criterio en la determinación de la ruta. • Diseño Jerárquico: Agrupamiento de miembros Limitar el nº de dispositivos a los que

afecta un cambio.

Page 8: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Introducción II

• Para proporcionar todas las ventajas mencionadas anteriormente, OSPF realiza procesos de comunicación complejos entre los diferentes routers con el objeto de almacenar en las bases de datos topológicas todas las relaciones de vecindad que existen en el sistema.

• OSPF escala bien hasta redes de 1.000 routers, aunque para ello es necesario realizar división en áreas.

• En la actualidad, existen dos versiones de OSPF:

– Versión 2 IPv4 (es la que vamos a ver en la parte inicial de esta charla) – Versión 3 IPv6 (lo veremos en la parte final)

Page 9: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Entendiendo la terminología y

el funcionamiento básico

Page 10: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Características Generales de OSPF

• OSPF es un protocolo de enrutamiento de estado-enlace que utiliza como métrica un valor denominado coste asignado a cada enlace.

– Por defecto, el coste es función inversa del ancho de banda. – Comprobación: show ip ospf interface

• OSPF mantiene una imagen completa de la red e intercambia información del cambio de estado de los enlaces en el instante de descubrimiento inicial o cuando la red cambia.

• Cada router almacena información sobre:

– Los routers vecinos directamente conectados :tabla de vecinos o base de datos de adyacencias (show ip ospf neighbors)

– Todos los demás routers OSPF de la red (o del área si la red está dividida en áreas) con las redes que tienen asociadas cada uno de ellos: tabla de topología o base de datos de estado (Link State Data Base, LSDB) • show ip ospf database

– Las mejores rutas hacia cada destino: tabla de enrutamiento o base de datos de envío (Forwarding Data Base) • show ip route

Page 11: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Características Generales de OSPF

• OSPF está diseñado para redes grandes y escalables. Para proporcionar un buen servicio en estos entornos, OSPF:

– Efectúa convergencias rápidas. • Envía actualizaciones generadas por eventos cuando se produce un cambio en la

red • También se envían actualizaciones para refrescar la información de las tablas de

topología cada 30 minutos, en caso de que no se produzcan cambios – Es un protocolo “classless” Soporta VLSM y CIDR – Es adecuado para redes de tamaño medio-grande. – Usa un algoritmo que minimiza un parámetro prefijado, el coste. – Agrupa a los routers en áreas Diseño jerárquico Contención de cambios. – Precisa un diseño adecuado de la topología de red y del direccionamiento IP.

Page 12: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Terminología OSPF • Los protocolos de estado-enlace permiten que un router identifique y se comunique con

sus routers “vecinos” de forma que puedan intercambiar directamente con ellos información sobre el estado de los enlaces de los routers de la red.

• Los routers no intercambian tablas de enrutamiento. En lugar de esto publican a los demás el estado de sus enlaces (Link State Advertisement, LSA).

Page 13: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Terminología OSPF • La información de estado enlace debe sincronizarse entre todos los routers, lo que

implica:

– LSAs deben ser fiables (método de reconocimiento)

– LSAs deben propagarse a toda el área o todo el dominio de enrutamiento

– LSAs deben tener un nº de secuencia y un tiempo de vida de forma que cada router reconozca la versión más actual de información.

– LSAs deben refrescarse periódicamente.

Page 14: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Terminología OSPF • Las LSAs se propagan a todos los dispositivos vecinos

utilizando la dirección de multicast 224.0.0.5 o 224.0.0.6

• Los routers, al recibir una nueva LSA, la reenvían inmediatamente todos sus vecinos

– Se aplica la regla de horizonte dividido (un router A no publica a un router B, la información de las rutas que A ha aprendido de B)

Page 15: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Terminología OSPF • Cuando un router recibe una LSA, actualiza su base de

datos de estado enlace (Link State Data Base, LSDB)

– La LSDB contiene información de todos los routers y las redes que tienen asociadas, lo que es lo mismo que tener información de todas las redes y de todos los caminos para alcanzarlas

• A partir de la información de la LSDB, se calculan las mejores rutas hacia el destino, utilizando el algoritmo de Dijkstra o SPF Tabla de enrutamiento (Forwarding DB)

– Suma los costes acumulados de cada enlace para encontrar el mejor camino hacia el destino

• El proceso de actualización de la tabla topológica y de la generación de cambios en la tabla de enrutamiento son procesos que consumen una cantidad significativa de memoria y CPU

Page 16: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Terminología OSPF: Resumen

• OSPF es un protocolo de estado enlace Modo de distribuir actualizaciones y calcular rutas.

• Los routers procesan la información recibida mediante LSA y construyen un Base de Datos de Estado-Enlace o LSDB (esta Base de Datos es igual para todos los routers de un área).

• En cada router individualmente se ejecuta el algoritmo SPF o de Dijkstra => Mejor ruta.

– Coste (por defecto, basado en el ancho de banda)

=> Base de Datos de Envío (tabla de enrutamiento).

• Además el router tendrá una Base de Datos de Adyacencias (routers vecinos).

• A modo de resumen, un router con OSPF debe contener la siguiente información:

– Tabla de vecinos o tabla de adyacencias: Contiene a los vecinos directamente conectados

– Tabla de topología o LSDB: Todas las rutas de la red o del área.

– Tabla de enrutamiento: Contiene las mejores rutas extraídas de la tabla topológica.

Page 17: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Bases de datos y Tablas en OSPF

Base de datos

Tabla Descripción

Base de Datos de

Adyacencias

Tabla de Vecinos

• Lista todos los vecinos con los que el router ha establecido una comunicación bidireccional

• Esta tabla es única en cada router • Para visualizar esta tabla show ip ospf neighbor

Base de Datos de Estado- Enlace

Tabla de Topología

• Lista toda la información sobre todos los routers de la red o del área

• Contiene la información de la topología de la red • Todos los routers de un área tienen la miSma LSDB • Para visualizar esta tabla show ip ospf databes

Forwarding Database

Routing Table

• Contiene las mejores rutas generas por el algoritmo de Dijkstra al ejecutarse sobre la LSDB

• La tabla de enrutamiento de cada rotuer es única y contiene infomración de como y por donde enviar paquetes al destino

• Para visualizar esta tabla show ip route

Page 18: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

OSPF con múltiples áreas

• En redes pequeñas, la estructura de routers no es compleja y el cálculo de rutas se realiza de forma sencilla

• Si una red tiene gran cantidad de routers, las bases de datos topológicas de OSPF se vuelven inmanejables.

• Solución: Dividir la red en áreas.

• Ventajas:

– Bases de datos y tablas de enrutamiento más pequeñas. – Áreas de propagación de cambios más pequeñas. – Menor consumo de recursos.

• Desventajas: Requieren un diseño más cuidadoso.

• Como dividir un red en áreas:

– Un área no debe contener más de 50 routers – Un router no debe pertenecer a más de tres áreas – Tipos de áreas: “De tránsito” (Backbone) y “regulares” (Stubby, Totally Stubby, Not So

Stubby)

Page 19: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

OSPF con múltiples áreas

• Tipos de Routers: – Routers Internos:

Tienen todas sus interfaces en la misma área y una sola LSDB.

– Routers Backbone: Tienen como mínimo una interfaz en el área de backbone.

– Área Border Router (ABR): Tiene interfaces como mínimo en dos áreas.

• Bases de datos topológicas para cada una de las áreas a las que pertenezca. • Enrutan el tráfico entre diferentes áreas • En los ABR se puede y se debe sumarizar la información de enrutamiento

– Autonomous Router Boundary Router: Tiene una interfaz como mínimo conectada a otro sistema autónomo o a una red no OSPF.

• Redistribuyen información de otros SAs o de otros protocolos de enrutamiento

Page 20: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Estados de Enlace en OSPF

• En OSPF todos los routers establecen relaciones o enlaces con sus vecinos.

– El estado de estos distintos enlaces es lo que se va a utilizar para crear el mapa de la red en el propio router => Base de Datos Topológica

– Envío de paquetes “hello” • Contienen información específica del protocolo OSFP Determinar si la relación

de vecindad es viable: – Misma área, mismo hello/dead interval,…

• Dos router que establecen relación de vecindad, sincronizan sus LSDB “Full Adjacency”

• El “cómo” se lleva a cabo el establecimiento de las relaciones de vecindad depende del tipo de red o del tipo de tecnología subyacente:

– Punto a punto Adyacencia completa – Multipunto Elección de DR y BDR – Punto – Multipunto Configuración manual

Page 21: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Cálculo de la métrica en OSPF

• El cálculo de la métrica en OSPF se hace en base al coste asociado a cada enlace

• El coste es un valor que indica el “esfuerzo” que requiere enviar paquetes a través de una determinada interfaz

• El RFC 2328 no especifica como calcular ese coste, pero por defecto los routers Cisco asignan automáticamente un valor inversamente proporcional al ancho de banda (bandwidth) de la interfaz

– La fórmula por defecto es: Coste = 100.000.000 / Ancho de Banda en bps

Page 22: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Configuración y verificación del enrutamiento OSPF básico

Page 23: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Planificación del Despliegue de OSPF

• Antes de desplegar una solución de enrutamiento OSPF, debe considerarse los siguiente:

– Plan de direccionamiento IP: • Estructura jerárquica Sumarización

– Topología de red: • Distribución de redes y dispositivos de enrutamiento • Determinación de tecnologías

– Áreas OSPF: • Optimización para mantener limitada el tamaño de la LSDB y el área de

propagación de los cambios de topología • Una vez se han cubierto estos requisitos, se puede comenzar con el plan de

implementación

Page 24: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Habilitar OSPF

• Define OSPF como protocolo de enrutamiento

Router(config)#

router ospf process-id

El valor de process-id es un nº utilizado internamente para identificar al proceso o instancia concreta de OSPF que se está configurando

No es necesario que coincida en los demas routers

<1 – 65535>

Page 25: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Identificación de las redes en OSPF

• Define las redes que se van a publicar a los vecinos mediante OSPF. Además, define en que interfaces se va a activar el protocolo

– No se publica la red especificada en network si no la red a la que pertenece la interfaz o interfaces a las que hace referncia network

Router(config-router)#

network ip-address [wildcard-mask] area area-id

ip-address puede ser una red, una subred o la dirección IP de una interfaz directamente conectada

wildcard-mask es, en este caso, la inversa de la máscara de subred que determina como interpretar la dirección ip-address

• 0 Comprobar; 1 Ignorar

• area-id especifica el área OSPF asociada con la dirección

Page 26: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Identificación de las redes en OSPF

• Opcionalmente, permite habilitar OSPF en una interfaz explícitamente desde la propia interfaz

Router(config-if)#

ip ospf process-id area area-id

El valor de process-id es un nº utilizado internamente para identificar al proceso o instancia concreta de OSPF al que se hace referencia

• area-id especifica el área OSPF asociada con la interfaz

• Este comando tiene precedencia sobre el comando network area

Page 27: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Establecer el ancho de banda de las interfaces

• Adaptar el ancho de banda de las interfaces es opcional, aunque recomendable

Router(config-if)#

bandwidth kilobits

kilobits ancho de banda en kbps

Por ejemplo, para configurar un ancho de banda de 512.000 bps, debe usarse el comando bandwidth 512

El ancho de banda configurado es utilizado solamente por los protocolos de enrutamiento para el cálculo de la métrica

El comando no cambia realmente la velocidad de la interfaz

Page 28: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Ejemplo de Configuración OSPF en una sola área

•R2 •R3

OSPF Area 0

S0/0/1 S0/0/1

64 kbps 10.2.1.0 /24

.2 .1

•R1 Fa0/0

.1

Fa0/0

.2

10.64.0.0 /24

R2(config)# interface Fa0/0 R2(config-if)# ip address 10.64.0.2 255.255.255.0 R2(config-if)# no shut R2(config-if)# interface S0/0/1 R2(config-if)# ip address 10.2.1.2 255.255.255.0 R2(config-if)# bandwidth 64 R2(config-if)# no shut R2(config-if)# exit R2(config)#

R1(config)# interface Fa0/0 R1(config-if)# ip address 10.64.0.1 255.255.255.0 R1(config-if)# no shut R1(config-if)# exit R1(config)#

R3(config)# interface S0/0/1 R3(config-if)# ip address 10.2.1.1 255.255.255.0 R3(config-if)# bandwidth 64 R3(config-if)# no shut R3(config-if)# exit R3(config)#

Page 29: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

•R2 •R3

OSPF Area 0

S0/0/1 S0/0/1

•64 kbps 10.2.1.0 /24

.2 .1

•R1 Fa0/0

.1

Fa0/0

.2

10.64.0.0 /24

• R1(config)# router ospf 1 • R1(config-router)# network 10.0.0.0 0.255.255.255 area 0 • R1(config-router)#

• R2(config)# router ospf 50 • R2(config-router)# network 10.2.1.2 0.0.0.0 area 0 • R2(config-router)# network 10.64.0.2 0.0.0.0 area 0 • R2(config-router)#

• R3(config)# router ospf 100 • R3(config-router)# network 10.2.1.1 0.0.0.0 area 0 • R3(config-router)#

Ejemplo de Configuración OSPF en una sola área

Page 30: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

•R2 •R3

OSPF Area 0

S0/0/1 S0/0/1

64 kbps 10.2.1.0 /24

.2 .1

•R1 Fa0/0

.1

Fa0/0

.2

10.64.0.0 /24

OSPF Area 1

R1(config)# router ospf 1 R1(config-router)# network 10.0.0.0 0.255.255.255 area 0 R1(config-router)#

R2(config)# router ospf 50 R2(config-router)# network 10.2.1.2 0.0.0.0 area 1 R2(config-router)# network 10.64.0.2 0.0.0.0 area 0 R2(config-router)#

R3(config)# router ospf 100 R3(config-router)# network 10.2.1.1 0.0.0.0 area 1 R3(config-router)#

Ejemplo de Configuración OSPF en múltiples áreas

Page 31: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Ejemplo de Configuración OSPF en múltiples áreas. Alternativa

•R2 •R3

•OSPF Area 0

•S0/0/1 •S0/0/1

•64 kbps •10.2.1.0 /24

•.2 •.1

•R1 •Fa0/0

•.1

•Fa0/0

•.2

•10.64.0.0 /24

•OSPF Area 1

• R1(config)# router ospf 1 • R1(config-router)# network 10.0.0.0 0.255.255.255 area 0 • R1(config-router)#

• R2(config)# interface S0/0/1 • R2(config-if)# ip ospf 50 area 1 • R2(config-if)# exit • R2(config)# • R2(config)# router ospf 50 • R2(config-router)# network 10.64.0.2 0.0.0.0 area 0 • R2(config-router)#

• R3(config)# router ospf 100 • R3(config-router)# network 10.2.1.1 0.0.0.0 area 1 • R3(config-router)#

Page 32: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

OSPF Router ID

• Los routers en OSPF son identificados mediante su número de router ID

– LSDB utiliza este router ID para diferenciar los distintos routers que participan en la red OSPF

• Por defecto, el router ID es la dirección IP más alta activa en el momento en el que se activa el proceso OSPF

– Sin embargo, por una cuestión de estabilidad, se recomienda utilizar el comando router-id o configurar una interfaz de loopback

Page 33: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

OSPF Router ID

Router ID explicitly configured?

Use that as the Router-ID

Yes No

Loopback interface configured?

Yes

No

Use the highest active configured IP address

Use the highest configured loopback IP address

Page 34: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Definir el Router ID

• Asigna un router ID específico a un dispositivo

Router(config-router)#

router-id ip-address

Se puede usar cualquier valor arbitrario de 32 bits en formato de dirección IP (decimal separado por puntos)

Si el comando se usa en un proceso OSPF que ya está activo, el comando será efectivo:

Después de reiniciar el router

Después del reinicio manual del proceso OSPF utilizando el comando clear ip ospf process

Page 35: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Verificación del Router-ID

R2 R3

OSPF Area 0

S0/0/1 S0/0/1

64 kbps 10.2.1.0 /24

.2 .1

R1 Fa0/0

.1

Fa0/0

.2

10.64.0.0 /24

OSPF Area 1

R2# show ip ospf Routing Process “ospf 50” with ID 10.64.0.2 <output omitted>

Page 36: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Verificación de OSPF

Comando Descripción

show ip protocols Muestra el ID de proceso de OSPF, el router ID, las redes que está publicando el router y la distancia administrativa

show ip ospf neighbors Muestra las relaciones de vecindad OSPF

show ip route Muestra la tabla de enrutamiento

show ip ospf interface Muestra el hello y dead interval

show ip ospf Muestra el ID de proceso OSPF, el router ID, la infomración de áreas y la última vez que se ejecutó el algoritmo SPF

Page 37: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Verificación de OSPF: show ip protocols

R1# show ip protocols Routing Protocol is “ospf 1” Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Router ID 10.64.0.1 Number of areas in this router is 1. 1 normal 0 stub 0 nssa Maximum path: 4 Routing for Networks: 10.0.0.0 0.255.255.255 area 0 Reference bandwidth unit is 100 mbps <output omitted>

Verifica la información de los protocolos de enrutamiento que se están ejecutando en el router

Page 38: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Verificación de OSPF: show ip ospf neighbors

R2# show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 10.64.0.1 1 FULL/DROTHER 00:00:30 10.64.0.1 FastEthernet0/0 10.2.1.1 1 FULL/ - 00:00:34 10.2.1.1 Serial0/0/1

Muestra información sobre los vecinos OSPF

Lists the neighbors in the order they were learned.

The OSPF priority of the interface.

The OSPF state of the interface. FULL state means that the router and its neighbor have identical OSPF link-state databases.

The amount of time remaining that the router will wait to receive an OSPF Hello packet from the neighbor before declaring the neighbor down.

The IP address of the neighbor's interface to which this router is directly connected.

The interface on which this router has formed adjacency with the neighbor.

Page 39: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Verificación de OSPF: show ip route ospf

R1# show ip route ospf 10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks O IA 10.2.1.0/24 [110/782] via 10.64.0.2, 00:03:05, FastEthernet0/0 R1#

Verificar que el router aprende las rutas OSPF

Page 40: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Borrar el contenido de la tabla de enrutamiento

• Para borrar todas las rutas de la tabla de enrutamiento Router# clear ip route *

• Para borrar una ruta específica de la tabla de enrutamiento IP: Router# clear ip route A.B.C.D

Page 41: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Verificación de OSPF: show ip ospf interface

R1# show ip ospf interface fastEthernet 0/0 FastEthernet0/0 is up, line protocol is up Internet Address 10.64.0.1/24, Area 0 Process ID 1, Router ID 10.64.0.1, Network Type BROADCAST, Cost: 1 Transmit Delay is 1 sec, State DROTHER, Priority 0 Designated Router (ID) 10.64.0.2, Interface address 10.64.0.2 No backup designated router on this network Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 Hello due in 00:00:04 Supports Link-local Signaling (LLS) Index 1/1, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 1, maximum is 4 Last flood scan time is 0 msec, maximum is 4 msec Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 10.64.0.2 (Designated Router) Suppress hello for 0 neighbor(s)

Verificar las interfaces configuradas con OSPF

Page 42: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Verificación de OSPF: show ip ospf

R2# show ip ospf Routing Process “ospf 50” with ID 10.64.0.2 <output omitted> Area BACKBONE(0) Area has no authentication SPF algorithm last executed 00:01:25.028 ago SPF algorithm executed 7 times <output omitted> Area 1 Number of interfaces in this area is 1 Area has no authentication SPF algorithm last executed 00:00:54.636 ago SPF algorithm executed 3 times <output omitted> R2#

Verificación de la información general de OSPF

Page 43: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Link State Advertisements (LSAs) en OSPF

Page 44: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

LSAs • Una “Link State Advertisement” es una publicación de “estado-enlace” utilizada por el

protocolo OSPF para construir su tabla topológica o lo que es lo mismo su OSPF LSDB.

– Individualmente, cada LSA es una entrada de una base de datos – Cuando se combinan, describen la topología completa de un área OSPF

• Existen varios tipos de LSAs en OSPF, aunque no todas ellas están en uso

• Dependiendo del tipo de routers se utilizan distintos tipos de LSA para actualizar la información.

Tipo de LSA Descripción 1 LSA de Router

2 LSA de Red

3 and 4 LSAs de tipo resumen

5 LSAs Externas

6 LSAs de Multicast

7 NSSAs para NSSA

8 LSA de Atributos Externos para BGP

9, 10, or 11 LSAs Opacas

Page 45: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Tipos de LSA – Router link entry (Tipo 1): Link State ID = router ID del origen

• Generadas por cada router para cada una de las áreas a las que pertenece. • Describe el estado de los enlaces directamente conectados. • Estas LSA no “salen” del área a la que pertenece el citado enlace. • Las rutas aprendidas mediante este tipo de mensaje son marcados como de tipo O. • Existen diferentes tipos de enlaces

Page 46: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Tipos de LSA – Router link entry (Tipo 1):

• Cada LSA de este tipo contiene información sobre sus enlaces directamente conectados, que pueden ser de tipo:

• Es importante no confundir los campos: – Link-State ID Identifica al router que genera la LSA – Link-ID Identifica qué hay al otro lado del enlace

• Cada enlace contiene un campo denominado “link-data” de 32 bits, que en la mayor parte de los casos contiene la dirección IP de la interfaz en el router

• Se publica también el coste asociado al enlace y si el router es ABR o ASBR

Tipo de Enlace Descripción Link-ID

1 Conexión pto-pto con otro router Router ID vecino

2 Conexión a una red de tránsito IP del DR

3 Conexión con una red stub Dirección de Red/Subred

4 Virtual link Router ID vecino

Page 47: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Tipos de LSA – Network link entry (Tipo 2): Link State ID = Dirección IP de la Interfaz del DR que hace

la publicación • Estas LSA se generan por cada red multiacceso (broadcast o NBMA) con dos

routers directamente conectados, como mínimo • Generadas por los DR • Describe a un conjunto de routers conectados a ese segmento físico. • Estas LSA no “salen” del área a la que pertenece el citado enlace. • Las rutas aprendidas mediante este tipo de mensaje son marcados como de tipo O.

Page 48: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Tipos de LSA – Summary link entry (Tipo 3): Link state ID: Red o subred

• Generadas por los ABR. • Estas actualizaciones describen la conexión del ABR con su área, y se envían al área de

backbone, para que sean recibidos (y normalmente reenviados) por los otros ABR. • Publican las rutas asociadas a un área (deben llevar información resumida) • Las rutas aprendidas mediante este tipo de mensaje son marcados como de tipo O IA

(InterArea) • OSPF no resume rutas, por defecto, hay que configurarlo manualmente

Page 49: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Tipos de LSA • ASBR Reachability Entry (Tipo 4): Link state ID: ID del router ASBR

– Generadas por los ABR, desde su área hacia el backbone. – Estas actualizaciones llevan información acerca de la alcanzabilidad de ASBR dentro

del área. – Se envían a través del área de backbone al resto de ABR. – Las rutas aprendidas mediante este tipo de mensaje son marcados como de tipo IA.

Page 50: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Tipos de LSA • Autonomus System External link entry (Tipo 5): Link state ID: Red o subred externa

– Generada por los ASBR. – Describe rutas fuera del Sistema Autónomo. Estas actualizaciones fluyen a través de

todo el sistema autónomo, excepto por las Stubby y las Totally Stubby áreas. – Las rutas aprendidas mediante este tipo de mensaje son de tipo E1 o E2. Estos dos

tipos son configurables. • E1 publica el coste total para alcanzar el destino (coste interno + coste externo). • E2 sólo publica el coste externo (coste asignado en la redistribución) Estático

– Opción por defecto

Page 51: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Tipos de LSA • Multicast OSPF (Tipo 6): No implementada por Cisco.

• Autonomous System External link entry (Tipo 7):

– Generadas por los ASBR conectados a un área Not So Stubby Area (de aquí en adelante NSSA).

– Estas actualizaciones fluyen solo por las NSSA, y en los ABR del área son convertidas a actualizaciones LSA de tipo 5.

– Las rutas aprendidas mediante este tipo de mensaje son marcados como de tipo N1 o N2 (análogos a E1 y E2)

• Tipo 8:

– LSA especiales utilizadas para “mezclar” BGP con OSPF • Tipo 9, 10 y 11

– Llamadas también LSAs opacas – Diseñadas para usos futuros, especialmente para MPLS

Page 52: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Configuración y Verificación de Características Avanzadas

Page 53: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

OSPF Passive-Interface

• Evita que OSPF envíe actualizaciones (o cualquier otro tipo de tráfico OSPF) por una interfaz específica

Router(config-router)#

passive-interface type number [default]

Se puede establecer una interfaz o todas las interfaces del router como pasivas

La opción default coloca todas las interfaces del router en modo pasivo

Es importante saber las peculiaridades de este comando en OSPF

La interfaz especificada apareca como una red “stub” en el dominio OSPF

No se envía ni se recibe información de enrutamiento OSPF a través de dicha interfaz

Evita que se establezcan relaciones de vecindad

Page 54: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Passive-Interface Example

R1(config)# router ospf 1 R1(config-router)# passive-interface fa0/0 R1(config-router)#

R2(config)# router ospf 10 R2(config-router)# passive-interface fa0/0 R2(config-router)#

Configuración Alternativa

R1(config)# router ospf 1 R1(config-router)# passive-interface default R1(config-router)# no passive-interface S0/0/0

R2(config)# router ospf 10 R2(config-router)# passive-interface default R2(config-router)# no passive-interface S0/0/0 R2(config-router)# no passive-interface S0/0/1

•Fa0/0 •Fa0/0

•R1 •R2

•172.16.1.0 /24

•Internet •192.168.1.0 /27

•172.17.2.0 /24

•64 kbps

•192.168.1.96 /27

•.101 •.102

•S0/0/1

•S0/0/0 •S0/0/0

•.1

•.1 •.1

Page 55: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Propagación de la ruta por defecto

• Para propagar la ruta por defecto en OSPF, se utiliza el comando default-information originate en el modo de configuración de enrutamiento OSPF

– Se necesita una ruta estática por defecto configurada en el router que genera la ruta por defecto

• Una vez configurada, la ruta por defecto se propaga en el dominio OSPF

Page 56: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Comando default-information originate • Configura un router para generar una ruta externa por defecto en un dominio OSPF

Router(config-router)#

default-information originate [always] [metric metric-value] [metric-type type-value] [route-map map-name]

Parameter Description

always (Opcional) Especifica que OSPF siempre publica la ruta por defecto, aunque no tenga dicha ruta por defecto en la tabla de enrutamiento

metric metric-value

(Opcional) Es la métrica utilizada para generar la ruta por defecto. Si se omite este valor, el valor por defecto es 1 (pese a que en alguan documentación de Cisco IOS se diga que es 10)

metric-type type-value

(Opcional) El enlace externo que se asocia con la ruta por defecto es por defecto de tipo O* E2. Se puede cambiar el tipo a O* E1 con este comando

route-map map-name

(Opcional) Especifica que se publique la ruta por defecto si se cumplen las condiciones establecidas en el route-map (se estudiará con detalle en el tema siguiente)

Page 57: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Ejemplo default-information originate

R1(config)# router ospf 1 R1(config-router)# network 10.1.1.1 0.0.0.0 area 0 R1(config-router)# default-information originate metric 10 R1(config-router)# exit R1(config)# ip route 0.0.0.0 0.0.0.0 172.16.1.2 R1(config)#

R1

R2

OSPF Domain ISP A .1

172.16.1.0 /24

.2

ISP B

10.1.1.1

10.2.1.1 .1

172.17.1.0 /24

.2

0.0.0.0 Cost 10

0.0.0.0 Cost 100

R2(config)# router ospf 1 R2(config-router)# network 10.2.1.1 0.0.0.0 area 0 R2(config-router)# default-information originate metric 100 R2(config-router)# exit R2(config)# ip route 0.0.0.0 0.0.0.0 172.17.1.2 R2(config)#

Page 58: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Sumarización o Resúmenes de Ruta

• La sumarización de rutas permite consolidar multiples rutas en una sola publicación

– La sumarización de rutas debidamente configurada afecta de manera directa al consumo de ancho de banda, memoria y CPU consumidos por el proceso OSPF

• Si un enlace falla o hace “flapping”, el cambio de la topología no se propagará al backbone y a otras áreas

• Protégé a los routers de recálculos innecesarios de SPF y cambios en la tabla de enrutamiento

• Debido a que la ejecución de SPF consume mucha CPU, un buen diseño del direccionamiento jerárquico así como una adecuada sumarización son completamente necesarios en OSPF

Page 59: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Sumarización o Resúmenes de Ruta

•IA 172.16.16.0 255.255.252.0

•IA 172.16.8.0 255.255.248.0

Page 60: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Tipos de Sumarización o Resúmenes de Ruta

• Inter-area

– Se lleva a cabo en el ABR y se hace utilizando LSAs de tipo 3

• External

– Se lleva a cabo en los ASBRs y crea entradas de tipo LSA 5 • Ambas tiene el mismo requisito fundamental: Direccionamiento continuo

• Si la sumarización no se configura correctamente y hay múltiples ASBRs, o múltiples ABRs en un área, se puede producir enrutamiento “subóptimo”

– Por ejemplo, si dos resúmenes de ruta se solapan en diferentes routers, se pueden tomar decisiones de envío de paquetes hacia un destino erróneo

Page 61: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Sumarización Intra-Area • Configura a un ABR para resumir rutas de un área determinada

Router(config-router)#

area area-id range address mask [advertise | not-advertise] [cost cost]

Parameter Description

area area-id Identifies the area subject to route summarization.

address The summary address designated for a range of addresses.

mask The IP subnet mask used for the summary route.

advertise (Optional) Sets the address range status to advertise and generates a type 3 summary LSA.

not-advertise (Optional) Sets the address range status to DoNotAdvertise. The type 3 summary LSA is suppressed, and the component networks remain hidden from other networks.

cost cost (Optional) Metric or cost for this summary route, which is used during the OSPF SPF calculation to determine the shortest paths to the destination. The value can be 0 to 16777215.

Page 62: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Ejemplo Sumarización Intra-Area

R1(config)# router ospf 100 R1(config-router)# network 172.16.32.1 0.0.0.0 area 1 R1(config-router)# network 172.16.96.1 0.0.0.0 area 0 R1(config-router)# area 0 range 172.16.96.0 255.255.224.0 R1(config-router)# area 1 range 172.16.32.0 255.255.224.0 R1(config-router)#

R2(config)# router ospf 100 R2(config-router)# network 172.16.64.1 0.0.0.0 area 2 R2(config-router)# network 172.16.127.1 0.0.0.0 area 0 R2(config-router)# area 0 range 172.16.96.0 255.255.224.0 R2(config-router)# area 2 range 172.16.64.0 255.255.224.0 R2(config-router)#

Area 0 172.16.96.0 /24 - 172.16.127.0 /24

Area 1 172.16.32.0 /24 - 172.16.63.0 /24

Area 2 172.16.64.0 /24 - 172.16.95.0 /24

•R1 •R2

Page 63: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Sumarización Externa

• Configura a un ASBR para resumir rutas externas

Router(config-router)#

summary-address ip-address mask [not-advertise] [tag tag]

Parameter Description

ip-address The summary address designated for a range of addresses.

mask The IP subnet mask used for the summary route.

not-advertise (Optional) Used to suppress routes that match the address/mask pair.

tag tag (Optional) A tag value that can be used as a “match” value to control redistribution via route maps.

Page 64: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Sumarización Externa

R1(config)# router ospf 100 R1(config-router)# network 172.16.64.1 0.0.0.0 area 1 R1(config-router)# summary-address 172.16.32.0 255.255.224.0 R1(config-router)#

External AS – RIPv2 172.16.32.0 /24 – 172.16.63.0 /24

OSPF Area 1 172.16.64.0 /24

OSPF Area 0 R1 R2

ABR

.1

Page 65: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Configuración de la sumarización • Sumarización o supernetting.

• Tiene especial importancia en OSPF Escalabilidad.

• Sumarización inter-área.

– Es realizada por el ABR y se aplica a las rutas que hacen referencia a la propia área. – No se aplica a las rutas externas. – Deben configurarse redes contiguas para poder sacar provecho de esta característica

de OSPF. Router (config-router)# area area-id range address mask

• Sumarización externa:

– Solamente pueden hacer esta sumarización los ASBR. – Se aplica a rutas que se han aprendido mediante redistribución. – Es importante asegurarse que los rangos de IP que se sumaricen sean contiguos.

Router (config-router)# summary-address address mask

Page 66: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Ejemplo de sumarización.

RTA(config)# router ospf 1 RTA(config-router)# summary-address 200.9.0.0 255.255.0.0

RTB(config)# router ospf 1 RTB(config-router)# area 1 range 192.168.16.0 255.255.252.0

Page 67: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Jerarquía de dos capas en OSPF – Repaso –

• “Backbone Area” – Se denomina como Area 0 – Se conoce también como Transit Area.

• “Regular (Standard) Areas” o Áreas Normales – También conocidas como “nonbackbone areas” – Todas las áreas normales deben estar conecatas al área 0

Page 68: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Tipos especiales de áreas OSPF

• Las áreas OSPF estándar pueden ser clasificadas en 4 tipos de áreas “stub”

• The OSPF standard area can be further divided into four types of stub areas:

– Stub area – Totally stubby area – NSSA – Totally stubby NSSA

Page 69: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Tipos especiales de áreas OSPF

Area Type Accepts

routes within area

(O)

Accepts routes from other areas

(O IA)

Accepts external routes

(O E1 and O E2)

Allows ASBR Cisco proprietary

Standard Yes Yes Yes Yes No

Backbone Yes Yes Yes Yes No

Stub Yes Yes No

(uses default route)

No No

Totally stubby Yes No

(uses default route)

No (uses default

route) No Yes

NSSA Yes Yes No

(uses default route)

Yes No

Totally stubby NSSA Yes

No (uses default

route)

No (uses default

route) Yes Yes

Page 70: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Tipos especiales de áreas OSPF: Requisitos

• Para calificar un área como “stub” o “totally stub” es necesario que:

– No sea el área 0 – Tenga un solo punto de salida del área

• En caso contrario, al propagarse varias rutas por defecto dentro del área podría producirse enrutamiento subóptimo

– No puede haber ASBRs en el área – El área no puede ser usada como área de tránsito para “virtual-links”

Page 71: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Tipos especiales de áreas OSPF: Configuración

• Todos los routers dentro de un área stub, incluyendo los ABRs, tienen que ser configurados como participantes en una “stub area”, utilizando el comando area area-id stub en el modo de configuración de enrutamiento

• Por defecto, el ABR de un área stub o totally stubby publica una ruta por defecto con un coste 1 hacia el interior de su área

– Para cambiar el valor del coste de esta ruta por defecto debe utilizarse el comando area area-id default-cost cost

Page 72: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Tipos especiales de áreas OSPF: Configuración

• Identificación de un área como stub

Router(config-router)#

area area-id stub

El parámetro area-id es el identificador del área stub y puede ser tanto un nº decimal como un identificador construido en formato decimal separado por puntos (como una IPv4)

Page 73: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Cambio del coste por defecto

• Para definir el cose de la ruta por defecto inyectada en la stubby area

Router(config-router)#

area area-id default-cost cost

cost valor asociado a la ruta por defecto. Entre 0 y 16777215. Por defecto 1

Si el comando no se configura, el ABR publica la red 0.0.0.0 con el coste 1, al que se le

van sumando los costes internos

Page 74: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Ejemplo de Stub Área

• Se utiliza típicamente en diseños de red tipo hub-and-spoke

• El área no acepta rutas externas de orígenes no OSPF (e.g., RIP, EIGRP).

• De forma específica, no acepta LSAs de tipo 4 y 5 • Propaga una ruta por defecto a través del área interna, que se usará para alcanzar las

redes externas

Page 75: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Configuración de Stub Area

R3(config)# interface FastEthernet0/0 R3(config-if)# ip address 192.168.14.1 255.255.255.0 R3(config-if)# interface Serial 0/0/0 R3(config-if)# ip address 192.168.15.1 255.255.255.252 R3(config-if)# router ospf 100 R3(config-router)# network 192.168.14.0.0 0.0.0.255 area 0 R3(config-router)# network 192.168.15.0.0 0.0.0.255 area 2 R3(config-router)# area 2 stub R3(config-router)#

External AS

R3

ABR .1

R4 .1 .2

Fa0/0 S0/0/0 S0/0/0

192.168.15.0 /30 192.168.14.0 /24

OSPF Area 0 Stub Area 2

R4(config-if)# interface Serial 0/0/0 R4(config-if)# ip address 192.168.15.2 255.255.255.252 R4(config-if)# router ospf 100 R4(config-router)# network 192.168.15.0.0 0.0.0.255 area 2 R4(config-router)# area 2 stub R4(config-router)#

Page 76: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Totally Stubby Area

• Es una solución propietaria de Cisco, que funciona mejor que un área stub normal

• El área no aceptar rutas ni externas ni inter-área

• Específicamente, no acepta LSAs de tipo 3, 4 y 5

• Solamente contiene rutas internas y la ruta por defecto • Se propaga automáticamente una ruta por defecto 0.0.0.0, a través del área

Page 77: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Configuración de Totally Stubby Area

• Identifica a un ABR como totally stubby network.

Router(config-router)#

area area-id stub no-summary

Este comando solamente se aplica en el ABR Todos los demás routers se configuran como routers de área stub

El area-id es el identificador del área stub y puede ser un nº o un valor en formato decimal separado por puntos

La opción no-summary en el ABR para las actualizaciones de tipo 3 además de las externas

Page 78: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Configuración de Totally Stubby Area

R3(config)# interface FastEthernet0/0 R3(config-if)# ip address 192.168.14.1 255.255.255.0 R3(config-if)# interface Serial 0/0/0 R3(config-if)# ip address 192.168.15.1 255.255.255.252 R3(config-if)# router ospf 100 R3(config-router)# network 192.168.14.0.0 0.0.0.255 area 0 R3(config-router)# network 192.168.15.0.0 0.0.0.255 area 2 R3(config-router)# area 2 stub no-summary R3(config-router)#

External AS

R3

ABR .1

R4 .1 .2

Fa0/0 S0/0/0 S0/0/0

192.168.15.0 /30 192.168.14.0 /24

OSPF Area 0 Totally Stubby Area 2

R4(config-if)# interface Serial 0/0/0 R4(config-if)# ip address 192.168.15.2 255.255.255.252 R4(config-if)# router ospf 100 R4(config-router)# network 192.168.15.0.0 0.0.0.255 area 2 R4(config-router)# area 2 stub R4(config-router)#

Page 79: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Not-So-Stubby Area (NSSA)

• Similares a las áreas Stub, excepto porque pueden inyectar rutas externas de ASBRs directamente conectados

• No acepta LSAs de tipo 4 y 5 • Permite la importación de rutas externas, como tipo LSA 7, que son convertidas a tipo

5 cuando el ABR las inyecta en el backbone

RIP AS 172.16.20.0 /24

R2

ABR

R3

192.168.15.0 /30

NSSA Area 1 Area 0

R1

RIP Type 7 LSA : 172.16.20.0/24 Type 5 LSA : 172.16.0.0/16

Page 80: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Configuración de NSSA Router(config-router)#

area area-id nssa no-redistribution] [default-information-originate] [metric metric-value] [metric-type type-value] [no-summary]

Parameter Description

area-id The identifier for the NSSA.

no-redistribution (Optional) Used when the router is an NSSA ABR and you want the redistribute command to import routes only into the standard areas, but not into the NSSA area.

default-information-originate (Optional) Used to generate a type 7 default LSA into the NSSA area. This keyword takes effect only on an NSSA ABR or an NSSA ASBR.

metric metric-value (Optional) Metric that is used for generating the default route. Acceptable values are 0 through 16777214.

metric-type type-value (Optional) OSPF metric type for default routes. It can be one of the following values: type 1 external route or 2: type 2 external route

no-summary (Optional) Allows an area to be a totally stubby NSSA, which is like an NSSA but does not have summary routes injected into it.

Page 81: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Configuración de NSSA

R1(config)# router ospf 10 R1(config-router)# redistribute rip subnets R1(config-router)# default metric 150 R1(config-router)# network 172.17.0.0 0.0.255.255 area 1 R1(config-router)# area 1 nssa R1(config-router)#

R2(config)# router ospf 10 R2(config-router)# summary-address 172.16.0.0 255.255.0.0 R2(config-router)# network 172.17.20.0 0.0.0.255 area 1 R2(config-router)# network 172.17.0.0 0.0.255.255 area 0 R2(config-router)# area 1 nssa default-information-originate R2(config-router)#

RIP AS 172.16.10.0 172.16.11.0

R2

ABR .2

Fa0/0

172.17.0.0 172.17.20.0 /24

NSSA Area 1 Area 0

R1 .1

Fa0/0

0.0.0.0 Default Route

Page 82: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Totally Stubby NSSA

• Es una solución propietaria de Cisco

• No acepta rutas externas aprendidas mediante LSAs 4 y 5. Tampoco acepta LSAs de tipo 3

– Solamente reconoce rutas intra-area, la ruta por defecto – Se propaga la ruta por defecto en el área

• El ABR debe ser configurado con el parámetro adicional no-summary para evitar que se propaguen rutas de tipo 3 dentro de una NSSA

Page 83: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Configuración una Totally Stubby NSSA Area

R1(config)# router ospf 10 R1(config-router)# redistribute rip subnets R1(config-router)# default metric 150 R1(config-router)# network 172.17.0.0 0.0.255.255 area 1 R1(config-router)# area 1 nssa R1(config-router)#

R2(config)# router ospf 10 R2(config-router)# summary-address 172.16.0.0 255.255.0.0 R2(config-router)# network 172.17.20.0 0.0.0.255 area 1 R2(config-router)# network 172.17.0.0 0.0.255.255 area 0 R2(config-router)# area 1 nssa no-summary R2(config-router)#

RIP AS 172.16.10.0 172.16.11.0

R2

ABR .2

Fa0/0

172.17.0.0 172.17.20.0 /24

NSSA Area 1 Area 0

R1 .1

Fa0/0

0.0.0.0 Default Route

Page 84: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Como se generan las rutas por defecto en OSPF

• La generación de las rutas por defecto en OSPF depende del tipo de área en el que se deseen utilizar:

• En un área estándar, los ABR no generan las rutas por defecto de forma automática – Es necesario introducir el comando default-information originate

• En un área stub o totally stubby:

– El ABR genera automáticamente una summary LSA con el link-state ID 0.0.0.0 – No es necesario el comando default-information originate. – Incluso aunque el ABR no tenga ruta por defecto, el se propone a sí mismo como

salida del área • En un área NSSA:

– El ABR puede generar la ruta por defecto, pero no es el comportamiento por defecto – Para forzar que el ABR genere la ruta por defecto, es necesario utilizar el comando

area area-id nssa default-information-originate, al crear el área NSSA (en el ABR)

• En un área totally stubby NSSA:

– El ABR genera la ruta por defecto automáticamente

Page 85: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Ejemplo de Tipos de Área OSPF en una Red

Page 86: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

OSPFv3

Page 87: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

OSPFv3

• Open Shortest Path First versión 3 (OSPFv3 RFC 5340) es un protocolo de enrutamiento de estado-enlace para IPv6

• La implementación de OSPF para IPv6 presenta las siguientes características:

– Se basa en OSPFv2, pero añade ciertas mejoras – Distribuye prefijos IPv6 – Se ejecuta directamente sobre IPv6 – No colisiona con OSPFv2

• Esta implementación añade además algunos atributos específicos de IPv6 como:

– Direcciones de 128 bits – El uso de direcciones de enlace local – Soporta múltiples direcciones e instancias por interfaz – Autenticación con IPsec – OSPF se ejecuta sobre enlaces en lugar de hacerlo sobre subredes

Page 88: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

OSPFv3

• Características y elementos que se mantienen de OSPFv2:

– Los tipos de paquetes: Hello, DBD, LSR, LSU, LSA – Los mecanismos para el descubrimiento de vecinos y el establecimiento de

adyacencias – La inundación de LSAs y la caducidad de las mismas (aunque ahora hay 3 tipos de

ámbitos) – Cálculos SPF – Proceso de elección del DR – Soporte multiárea, incluyendo NSSA – Soporte de múltiples tecnologías (NBMA, punto a punto y broadcast) – Router-ID de 32 bits, con formato de IPv4

Page 89: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

OSPFv3

• Diferencias con OSPFv2:

– El proceso de enrutamiento se ejecuta/activa sobre enlaces en lugar de hacerlo sobre una subred.

• El proceso se activa en las interfaces • En IPv6 se utiliza el término enlace (link) para sustituir al término red (network) y

subred (subnet), utilizados en OSPF par IPv4 • La sentencia network que se introducía en el submodo de configuración de

enrutameinto en OSPFv2 se sustituye por el comando ipv6 ospf process-id area area-id, que se aplica en las interfaces

– Necesita direcciones IP link-local configuradas:

• Utiliza direcciones IPv6 de enlace local para identificar a los vecinos adyacentes • Esto implica que cuando se configura el comando ipv6 ospf neighbor, la

dirección IPv6 indicada debe ser una dirección IPv6 de enlace local

– Hay tres ámbitos de inundación de LSAs: enlace local, área y sistema autónomo

Page 90: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

OSPFv3

• Diferencias con OSPFv2:

– Pueden existir múltiples instancias de OSPF ejecutándose sobre una misma interfaz • Esto implica que diferentes sistemas autónomos podrían estar ejecutándose sobre

una misma infraestructura física, compartiendo equipos y enlaces; pero cada uno ejecutando una instancia del protocolo de enrutamiento OSPF distinta

• Esto implica que, además, un enlace podría pertenecer a diferentes áreas al estar dando servicio a sistemas autónomos distintos

• OSPFv3 incorpora un nuevo campo denominado “Instance ID” que permite la ejecución de múltiples interfaces por enlace

– Para que dos instancias se comuniquen entre sí, deben tener el mismo “Instance ID”

– Por defecto, el “Instance ID” es 0 – Las direcciones multicast cambian:

• 224.0.0.5 FF02::05. Representa a todos los routers OSPF del enlace • 224.0.0.6 FF02::06. Representa a todos los DRs del enlace

Page 91: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

OSPFv3

• Diferencias con OSPFv2:

– Eliminación de la importancia semántica de las direcciones IP • Las direcciones IP no están presentes en la cabecera OSPF de los mensajes

– Las LSA de tipo 1 (router) y de tipo 2 (network) no publican información sobre las redes que tienen asociadas

– Se incluye la información de prefijo y longitud de prefijo en la parte de datos en nueva LSA

» LSA de tipo 9: Publican información de las redes asociadas a un router o a un enlace multiárea

• El router ID, área ID y link-state ID siguen siendo de 32 bits • El DR y el BDR se identifican por su router ID y no por su dirección IP

– Se mejora la seguridad: OSPFv3 utiliza IPsec:

• Usa extensiones de cabecera ESP/AH en lugar de los mecanismos típicos de OSPFv2. Los mecanismos de autenticación antiguos desaparecen.

• Es función de IPv6 e IPsec proporcionar los mecanismos de autenticación necesarios

Page 92: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Configuración de OSPFv3

• Notas:

– Los comando de OSPFv2 y OSPFv3 son muy similares – En muchos casos, simplemente es necesario cambiar ip por ipv6 en el comando

• ipv6 address = ip address • show ipv6 route = show ip route

• Pasos de configuración:

1. Establecer el diseño estratégico y de planificación para la red IPv6 (áreas, prefijos, etc.) 2. Activar ipv6 unicast-routing mediante el comando 3. Opcionalmente (o no… esto es discutible), se configura el “router ID” explícitamente 4. Activar el protocolo utilizando ipv6 ospf area 5. (Opcional) Configurar las características específicas de la interfaz: área, prioridad,

coste del enlace, … 6. (Opcional) Configurar las características específicas de OSPF en modo de

configuración de enrutamiento, incluyendo prioridad del router, sumarización, funcionalidades stub entre otros

Page 93: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Activación de OSPF • Permite configurar los parámetros del proceso OSPF:

• El parámetro process-id identifica al proceso localmente en el router y debe ser un

entero +

Router(config)#

ipv6 router ospf process-id

R1(config)# ipv6 router ospf 10 R1(config-rtr)#? area OSPF area parameters auto-cost Calculate OSPF interface cost according to bandwidth default Set a command to its defaults default-information Distribution of default information default-metric Set metric of redistributed routes discard-route Enable or disable discard-route installation distance Administrative distance distribute-list Filter networks in routing updates ignore Do not complain about specific event log-adjacency-changes Log changes in adjacency state maximum-paths Forward packets over multiple paths passive-interface Suppress routing updates on an interface process-min-time Percentage of quantum to be used before releasing CPU redistribute Redistribute IPv6 prefixes from another routing protocol router-id router-id for this OSPF process summary-prefix Configure IPv6 summary prefix timers Adjust routing timers

Page 94: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Definición del router-ID

• El parámetro ip-address debe ser un número de 32 bits en formato de dirección IPv4

– Debe ser un valor único para cada router en el dominio de enrutamiento • El proceso de elección del router ID es el mismo que en OSPFv2

1. Valor configurado explícitamente mediante este comando 2. Si no se ha configurado este valor, se elige la IPv4 mayor de las interfaces loopback 3. Si no hay interfaces loopback con IPv4, se elige la interfaz activa con la IP más alta 4. En cualquier otro caso, debe usarse el comando router-id

Router(config-rtr)#

router-id {ip-address}

Page 95: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Activar OSPF en una interfaz

Router(config-if)#

ipv6 ospf process-id area area-id [instance instance-id]

Parámetros Descripción

process-id Identificador interno del proceso OSPF. Tiene valor local y debe ser un entero positivo

area-id Especifica el área a la que se asocia la interfaz en OSPF

instance-id

(Opcional) Se utiliza para controlar con qué routers se va a establecer relación de vecindad Un router solamente será vecino de aquellos que ejecuten la misma instancia OSPF. Por defecto, instance-ID es 0

Page 96: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Activar OSPF en una interfaz R1(config)# int fa0/0 R1(config-if)# ipv6 ospf ? <1-65535> Process ID authentication Enable authentication cost Interface cost database-filter Filter OSPF LSA during synchronization and flooding dead-interval Interval after which a neighbor is declared dead demand-circuit OSPF demand circuit flood-reduction OSPF Flood Reduction hello-interval Time between HELLO packets mtu-ignore Ignores the MTU in DBD packets neighbor OSPF neighbor network Network type priority Router priority retransmit-interval Time between retransmitting lost link state advertisements transmit-delay Link state transmit delay R1(config-if)# ipv6 ospf 10 ? area Set the OSPF area ID R1(config-if)# ipv6 ospf 10 area 0 ? instance Set the OSPF instance <cr> R1(config-if)# ipv6 ospf 10 area 0 R1(config-if)#

Page 97: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Cambio del coste de una interfaz

• Especifica el coste de la interfaz para el algoritmo de Dijkstra:

• El parámetro interface-cost es un valor que puede ir entre 1 y 65.535

– El coste por defecto es el mismo que en OSPFv2

Router(config-if)#

ipv6 ospf cost interface-cost

R1(config)# int fa0/0 R1(config-if)# ipv6 ospf cost ? <1-65535> Cost R1(config-if)# ipv6 ospf cost 1 R1(config-if)#

Page 98: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Cambio de la prioridad del router

• Permite cambiar el valor de prioridad utilizado en la elección de DR y BDR

• La prioridad es un valor entre 0 y 255. Por efecto, es 1

– Un router con prioridad 0 no es elegible para ser DR o BDR • El router con mayor prioridad tiene preferencia en la elección

– En caso de empate en la prioridad, el siguiente parámetro a considerar es el router ID más alto

Router(config-if)#

ipv6 ospf priority number-value

R1(config)# int fa0/0 R1(config-if)# ipv6 ospf priority ? <0-255> Priority R1(config-if)# ipv6 ospf priority 10 R1(config-if)#

Page 99: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Configurar un área Stub o Totally-Stub

• Este comando funciona igual que en IPv4

• El area-id identifica a qué área se le está asignando la configuración

• El parámetro no-summary se configura solamente en el ABR e indica que el área es “totally stub”

Router(config-rtr)#

area area-id stub [no-summary]

R1(config)# ipv6 router ospf 10 R1(config-rtr)# area 10 ? authentication Enable authentication default-cost Set the summary default-cost of a NSSA/stub area nssa Specify a NSSA area range Summarize routes matching address/mask (border routers only) stub Specify a stub area virtual-link Define a virtual link and its parameters R1(config-rtr)# area 10 stub no-summary R1(config-rtr)#

Page 100: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Sumarización de rutas IPv6

• La sumarización se lleva a cabo en las fronteras entre áreas

• El comando funciona igual que en IPv4

Router(config-rtr)#

area area-id range ipv6-prefix /prefix-length [advertise | not-advertise] [cost cost]

Parameter Description

area-id Especifica el área de las rutas que van a ser sumarizadas

ipv6-prefix/prefix-length Ruta resumen y longitud de prefijo

advertise (Opcional) Genera una LSA summary tipo 3

not-advertise (Opcional) Suprime la LSA summary tipo 3, para ocultar dicha red

cost (Opcional) Es un valor entre 0 y 16777215 que define la métrica o coste de la ruta resumen

Page 101: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Sumarización de rutas IPv6. Ejemplo

R1# show ipv6 route

R1# conf t R1(config)# ipv6 router ospf 1 R1(config-router)# area 1 range 2001:0DB8::/48 R1(config-router)# end R1# R1# show ipv6 route

Nota: El coste de la ruta sumarizada es el coste más alto de las rutas que están siendo resumidas

Page 102: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Limpieza del proceso OSPFv3

• Activa el recálculo de SPF y la renovación de la Routing Information Base (RIB)

• Es un comando útil cuando se alteran los parámetros de OSPF:

Router#

clear ipv6 ospf [process-id] {process | force-spf | redistribution | counters [neighbor [neighbor-interface | neighbor-id]]}

R1# clear ipv6 ospf 10 ? counters OSPF counters force-spf Run SPF for OSPF process process Reset OSPF process redistribution Clear OSPF route redistribution R1# clear ipv6 ospf 10 counters R1# R1# clear ipv6 ospf 10 process Reset OSPF process? [no]: y R1#

Page 103: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Verificación de OSPFv3

Command Description

show ipv6 ospf [process-id] [area-id] neighbor [interface-type interface-number] [neighbor-id] [detail]

Muestra información de los vecinos OSPFv2

show ipv6 ospf [process-id] [area-id] interface [type number] [brief]

Muestra información OSPFv3 de la interfaz

show ipv6 ospf [process-id] [area-id] Muestra información general del proceso IPv6

Page 104: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Ejemplo 1

S0/0/2 S0/0/3

R1

3FFE:B00:FFFF:1::1/64

R2

Area 0 Area 1

3FFE:B00:FFFF:1::2/64

S0/0/1

2001:410:FFFF:1::1/64

R1(config)# ipv6 router ospf 100 R1(config-rtr)# router-id 10.1.1.3 R1(config-rtr)# area 0 range 2001:410::/32 R1(config-rtr)# exit R1(config)# interface Serial0/0/1 R1(config-if)# ipv6 address 2001:410:FFFF:1::1/64 R1(config-if)# ipv6 ospf 100 area 0 R1(config-if)# exit R1(config)# interface Serial0/0/2 R1(config-if)# ipv6 address 3FFE:B00:FFFF:1::2/64 R1(config-if)# ipv6 ospf 100 area 1 R1(config-if)#

R2(config)# ipv6 router ospf 100 R2(config-rtr)# router-id 10.1.1.4 R2(config-rtr)# exit R2(config)# interface Serial0/0/3 R2(config-if)# ipv6 address 3FFE:B00:FFFF:1::1/64 R2(config-if)# ipv6 ospf 100 area 1 R2(config-if)#

Page 105: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Ejemplo 2: Todos los router están configurados con OSPFv3

R1(config)# ipv6 unicast-routing R1(config)# R1(config)# interface s0/1/0 R1(config-if)# ipv6 ospf 1 area 0 R1(config-if)# *Aug 14 06:24:23.040: %OSPFv3-4-NORTRID: OSPFv3 process 1 could not pick a routerid, please configure manually R1(config-if)# exit R1(config)# ipv6 router ospf 1 R1(config-rtr)# router-id 0.0.0.1 R1(config-rtr)#exit R1(config)# interface s0/1/0 R1(config-if)# ipv6 ospf 1 area 0 R1(config-if)# exit R1(config)# interface fa0/0 R1(config-if)# ipv6 ospf 1 area 13 R1(config-if)#

S0/1/0 S0/1/0

R1

12:12::2/64

R2

Area 13 Area 0

12:12::1/64

Fa0/0

13:13::1/64

R3 Fa0/0

13:13::3/64

Area 24

24:24::4/64

R4 Fa0/0

24:24::1/64 Fa0/0

Page 106: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Ejemplo 2: Todos los router están configurados con OSPFv3

S0/1/0 S0/1/0

R1

12:12::2/64

R2

Area 13 Area 0

12:12::1/64

Fa0/0

13:13::1/64

R3 Fa0/0

13:13::3/64

Area 24

24:24::4/64

R4 Fa0/0

24:24::1/64 Fa0/0

R2(config)# ipv6 unicast-routing R2(config)# R2(config)# ipv6 router ospf 1 R2(config-rtr)# router-id 0.0.0.2 R2(config-rtr)# exit R2(config)# R2(config)# interface s0/1/0 R2(config-if)# ipv6 ospf 1 area 0 *Aug 14 06:15:14.836: %OSPFv3-5-ADJCHG: Process 1, Nbr 0.0.0.1 on Serial0/1/0 from LOADING to FULL, Loading Done R2(config-if)#

Page 107: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

R2# show ipv6 ospf neighbor Neighbor ID Pri State Dead Time Interface ID Interface 0.0.0.1 1 FULL/ - 00.00.33 6 Serial0/1/0 R2# R2# show ipv6 ospf interface Serial0/1/0 is up, line protocol is up Link Local Address FE80::219:55FF:FE92:B212, Interface ID 6 Area 0, Process ID 1, Instance ID 0, Router ID 0.0.0.2 Network Type POINT_TO_POINT, Cost: 64 Transmit Delay is 1 sec, State POINT_TO_POINT, Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Hello due in 00:00:09 Index 1/1/1, flood queue length 0 Next 0x0(0)/0x0(0)/0x0(0) Last flood scan length is 1, maximum is 2 Last flood scan time is 0 msec, maximum is 0 msec Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 0.0.0.1 Suppress hello for 0 neighbor(s) R2(config-if)#

Ejemplo 2: Todos los router están configurados con OSPFv3

S0/1/0 S0/1/0

R1

12:12::2/64

R2

Area 13 Area 0

12:12::1/64

Fa0/0

13:13::1/64

R3 Fa0/0

13:13::3/64

Area 24

24:24::4/64

R4 Fa0/0

24:24::1/64 Fa0/0

Page 108: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Ejemplo 2: Todos los router están configurados con OSPFv3

S0/1/0 S0/1/0

R1

12:12::2/64

R2

Area 13 Area 0

12:12::1/64

Fa0/0

13:13::1/64

R3 Fa0/0

13:13::3/64

Area 24

24:24::4/64

R4 Fa0/0

24:24::1/64 Fa0/0

R4(config)# ipv6 unicast-routing R4(config)# ipv6 router ospf 1 R4(config-rtr)# router-id 0.0.0.4 R4(config-rtr)# interface fa0/0 R4(config-if)# ipv6 ospf 1 area 24 *Aug 14 06:34:36.992: %OSPFv3-5-ADJCHG: Process 1, Nbr 0.0.0.2 on FastEthernet0/0 from LOADING to FULL, Loading Done R4(config-if)# end R4#

Page 109: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Ejemplo 2: Todos los router están configurados con OSPFv3

S0/1/0 S0/1/0

R1

12:12::2/64

R2

Area 13 Area 0

12:12::1/64

Fa0/0

13:13::1/64

R3 Fa0/0

13:13::3/64

Area 24

24:24::4/64

R4 Fa0/0

24:24::1/64 Fa0/0

R4# show ipv6 route ospf <output omitted> OI 12:12::/64 [110/65] via FE80::219:55FF:FE92:B212, FastEthernet0/0 OI 2001:1::/64 [110/65] via FE80::219:55FF:FE92:B212, FastEthernet0/0 R4#

Page 110: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Ejemplo 2: Todos los router están configurados con OSPFv3

S0/1/0 S0/1/0

R1

12:12::2/64

R2

Area 13 Area 0

12:12::1/64

Fa0/0

13:13::1/64

R3 Fa0/0

13:13::3/64

Area 24

24:24::4/64

R4 Fa0/0

24:24::1/64 Fa0/0

R3(config)# ipv6 unicast-routing R3(config)# ipv6 router ospf 1 R3(config)# *Aug 14 06:24:09.976: %OSPFv3-4-NORTRID: OSPFv3 process 1 could not pick a router-id, please configure manually R3(config-rtr)# router-id 0.0.0.3 R3(config-rtr)# exit R3(config)# interface fa0/0 R3(config-if)# ipv6 ospf 1 area 13 R3(config-if)# *Aug 14 06:40:43.804: %OSPFv3-5-ADJCHG: Process 1, Nbr 0.0.0.1 on FastEthernet0/0 from LOADING to FULL, Loading Done R3(config-if)# end R3#

Page 111: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Ejemplo 2: Todos los router están configurados con OSPFv3

S0/1/0 S0/1/0

R1

12:12::2/64

R2

Area 13 Area 0

12:12::1/64

Fa0/0

13:13::1/64

R3 Fa0/0

13:13::3/64

Area 24

24:24::4/64

R4 Fa0/0

24:24::1/64 Fa0/0

R3# show ipv6 route ospf <output omitted> OI 12:12::/64 [110/65] via FE80::219:56FF:FE2C:9F60, FastEthernet0/0 OI 24:24::/64 [110/66] via FE80::219:56FF:FE2C:9F60, FastEthernet0/0 OI 2001:1::/64 [110/129] via FE80::219:56FF:FE2C:9F60, FastEthernet0/0 R3# R3# ping 24:24::4 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 24:24::4, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 16/16/16 ms R3#

Page 112: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Ejemplo 2: Todos los router están configurados con OSPFv3

• Se reduce la tabla de enrutamiento en el área 13, debido a que R1 y R3 están un área totally stub

S0/1/0 S0/1/0

R1

12:12::2/64

R2

Area 13 Area 0

12:12::1/64

Fa0/0

13:13::1/64

R3 Fa0/0

13:13::3/64

Area 24

24:24::4/64

R4 Fa0/0

24:24::1/64 Fa0/0

R1(config)# ipv6 router ospf 1 R1(config-rtr)# area 13 stub no-summary R1(config-rtr)# *Aug 14 06:54:11.780: %OSPFv3-5-ADJCHG: Process 1, Nbr 0.0.0.3 on FastEthernet0/0 from FULL to DOWN, Neighbor Down: Adjacency forced to reset R1(config-rtr)#

R3(config)# ipv6 router ospf 1 R3(config-rtr)# area 13 stub R3(config-rtr)# *Aug 14 06:40:17.716: %OSPFv3-5-ADJCHG: Process 1, Nbr 0.0.0.1 on FastEthernet0/0 from LOADING to FULL, Loading Done R3(config-rtr)#

Page 113: CCNA Routing & Switching. Novedades Enrutamiento. OSPF Multiárea y OSPFv3

GRUPO ACADEMIA POSTAL

Ejemplo 2: Todos los router están configurados con OSPFv3

• Ahora R1 solamente aprende una ruta por defecto y la conectividad se mantiene

S0/1/0 S0/1/0

R1

12:12::2/64

R2

Area 13 Area 0

12:12::1/64

Fa0/0

13:13::1/64

R3 Fa0/0

13:13::3/64

Area 24

24:24::4/64

R4 Fa0/0

24:24::1/64 Fa0/0

R3# show ipv6 route ospf <output omitted> OI ::/0 [110/2] via FE80::219:56FF:FE2C:9F60, FastEthernet0/0 R3# R3# ping 24:24::4 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 24:24::4, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 12/14/16 ms R3#