Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
CAPITULO 02
Protocolo OSPF
Profesor de Telecomunicaciones-PUCP
Jefe de la División de Telemática
Dirección de Investigación y Tecnología-INICTEL
red.
Cada router tiene una base de datos topológico
► Se ejecuta el algoritmo de Dijkstra: Primer camino más corto
205.2.83.128/25 Lo_1
Lo_0 Fa0/0
10.2.2.36/30 R6
S0/0/1
S0/0/0 Lo_3
Lo_2
Fa0/0 Fa0/1
Área 2 R1 Área 3
Propiedad intelectual de Daniel Díaz A
Lo_11
Área 0 Lo_14
200.4.5.0/24 210.7.9.0/24
Maestría en Telecomunicaciones Daniel Díaz Ataucuri, 2006-II
PROTOCOLO OSPF
PROTOCOLO OSPF
OSPF utiliza áreas para:
► Reducir el gasto de procesamiento de los routers.
► Acelerar la convergencia.
► Limitar la inestabilidad de la red a una área.
► Mejorar el redimiento.
Propiedad intelectual de Daniel Díaz A
Fa0/0
R6
S0/0/0
S0/0/1
Fa0/0 Fa0/1
Área 2 R1 Área 3
Fa0/1 Fa0/0
R2 R3
S0/0/1 S0/0/0
Propiedad intelectual de Daniel Díaz A
Fa0/0 Fa0/1
R4 S0/0/0 S0/0/1 R5
Fa0/0 Fa0/0
Área 0
Estado de De De
enlace Adyacencia Envío
Maestría en Telecomunicaciones Daniel Díaz Ataucuri, 2006-II
PROTOCOLO OSPF
CONFIGURACIÓN DEL
PROTOCOLO OSPF
Propiedad intelectual de Daniel Díaz A
ESCENARIO DE PRUEBA
172.16.30.0/24
BW 100Mbps
.198 .201
S1 S0
BW 1544kbps
Propiedad intelectual de Daniel Díaz A
S0 .197 S1
.202
S1 S0
.206
.65 10.0.37.204/30 .205 .129
BW 100Mbps BW 100Mbps
.66 .130
200.37.42.64/26 200.37.42.128/26
Maestría en Telecomunicaciones Daniel Díaz Ataucuri, 2006-II
PROTOCOLO OSPF
ESCENARIO DE PRUEBA
172.16.30.0/24
BW 100Mbps
.198 .201
S1 S0
BW 1544kbps
Propiedad intelectual de Daniel Díaz A
S0 .197 S1
.202
S1 S0
.206
.65 10.0.37.204/30 .205 .129
BW 100Mbps BW 100Mbps
.66 .130
200.37.42.64/26 200.37.42.128/26
Maestría en Telecomunicaciones Daniel Díaz Ataucuri, 2006-II
PROTOCOLO OSPF
ESCENARIO DE PRUEBA
172.16.30.0/24
BW 100Mbps
.198 .201
S1 S0
BW 1544kbps
Propiedad intelectual de Daniel Díaz A
S0 .197 S1
.202
S1 S0
.206
.65 10.0.37.204/30 .205 .129
BW 100Mbps BW 100Mbps
.66 .130
200.37.42.64/26 200.37.42.128/26
Maestría en Telecomunicaciones Daniel Díaz Ataucuri, 2006-II
PROTOCOLO OSPF
ESCENARIO DE PRUEBA
172.16.30.0/24
BW 100Mbps
.198 .201
S1 S0
BW 1544kbps
Propiedad intelectual de Daniel Díaz A
S0 .197 S1
.202
S1 S0
.206
.65 10.0.37.204/30 .205 .129
BW 100Mbps BW 100Mbps
.66 .130
200.37.42.64/26 200.37.42.128/26
Maestría en Telecomunicaciones Daniel Díaz Ataucuri, 2006-II
PROTOCOLO OSPF
TABLA DE ENRUTAMIENT0
Propiedad intelectual de Daniel Díaz A
ESCENARIO DE PRUEBA
172.16.30.0/24
BW 100Mbps
.198 .201
S1 S0
BW 1544kbps
Propiedad intelectual de Daniel Díaz A
S0 .197 S1
.202
S1 S0
.206
.65 10.0.37.204/30 .205 .129
BW 100Mbps BW 100Mbps
.66 .130
200.37.42.64/26 200.37.42.128/26
Maestría en Telecomunicaciones Daniel Díaz Ataucuri, 2006-II
PROTOCOLO OSPF
ESCENARIO DE PRUEBA
172.16.30.0/24
BW 100Mbps
.198 .201
S1 S0
BW 1544kbps
Propiedad intelectual de Daniel Díaz A
S0 .197 S1
.202
S1 S0
.206
.65 10.0.37.204/30 .205 .129
BW 100Mbps BW 100Mbps
.66 .130
200.37.42.64/26 200.37.42.128/26
Maestría en Telecomunicaciones Daniel Díaz Ataucuri, 2006-II
PROTOCOLO OSPF
ESCENARIO DE PRUEBA
172.16.30.0/24
BW 100Mbps
.198 .201
S1 S0
BW 1544kbps
Propiedad intelectual de Daniel Díaz A
S0 .197 S1
.202
S1 S0
.206
.65 10.0.37.204/30 .205 .129
BW 100Mbps BW 100Mbps
.66 .130
200.37.42.64/26 200.37.42.128/26
Maestría en Telecomunicaciones Daniel Díaz Ataucuri, 2006-II
PROTOCOLO OSPF
CAMBIO DE COSTO
Propiedad intelectual de Daniel Díaz A
USANDO DEBUG
Propiedad intelectual de Daniel Díaz A
PROTOCOLO OSPF
EN MULTIAREAS
Propiedad intelectual de Daniel Díaz A
ESCENARIO MULTIAREA
Área 1
S0/0/1
Lo_2
Lo_10: 10.41.52.3/24 Lo_13: 204.6.21.36/24
Lo_11: 10.41.68.19/24 Lo_14: 204.9.80.94/24
Lo_12: 51.5.6.6/24
Fa0/0 Fa0/1
Área 0 R1 Área 3
Lo_6
Lo_4 Lo_8
Lo_5
Fa0/1 Fa0/0
R2 R3
Propiedad intelectual de Daniel Díaz A
Lo_7 Lo_9
Fa0/0 Fa0/0
Lo_4: 210.7.2.31/24
Lo_11 Lo_5: 210.8.8.19/24 Lo_14
Lo_6: 55.0.4.3/17
Lo_7: 55.0.190.90//17
Lo_8: 140.1.160.3/21
200.4.5.0/24 Lo_9: 140.1.170.7/21 210.7.9.0/24
Maestría en Telecomunicaciones Daniel Díaz Ataucuri, 2006-II
PROTOCOLO OSPF
OBTENCION DE ROUTER-ID
En el router R1
R1#show ip ospf
Routing Process "ospf 1" with ID 210.8.8.19
En el router R2
R2#show ip ospf
Routing Process "ospf 3" with ID 55.0.190.90
Propiedad intelectual de Daniel Díaz A
En el router R3
R3#show ip ospf
Routing Process "ospf 3" with ID 140.1.170.7
Maestría en Telecomunicaciones Daniel Díaz Ataucuri, 2006-II
PROTOCOLO OSPF
OBTENCION DE ROUTER-ID
En el router R4
R4#show ip ospf
Routing Process "ospf 1" with ID 10.41.68.19
En el router R5
R5#show ip ospf
Routing Process "ospf 3" with ID 204.9.80.94
Propiedad intelectual de Daniel Díaz A
En el router R6
R6#show ip ospf
Routing Process "ospf 3" with ID 131.4.6.163
En el router R3
Propiedad intelectual de Daniel Díaz A
S0/0/1
Lo_2
Lo_10: 10.41.52.3/24 Lo_13: 204.6.21.36/24
Lo_11: 10.41.68.19/24 Lo_14: 204.9.80.94/24
Lo_12: 51.5.6.6/24
Fa0/0 Fa0/1
Área 0 R1 Área 3
Lo_6
Lo_4 Lo_8
Lo_5
Fa0/1 Fa0/0
R2 R3
Propiedad intelectual de Daniel Díaz A
Lo_7 Lo_9
Fa0/0 Fa0/0
Lo_4: 210.7.2.31/24
Lo_11 Lo_5: 210.8.8.19/24 Lo_14
Lo_6: 55.0.4.3/17
Lo_7: 55.0.190.90//17
Lo_8: 140.1.160.3/21
200.4.5.0/24 Lo_9: 140.1.170.7/21 210.7.9.0/24
Maestría en Telecomunicaciones Daniel Díaz Ataucuri, 2006-II
PROTOCOLO OSPF
CONFIGURANDO VIRTUAL-LINK
Área 0 R1 Área 3
Lo_6
Lo_4 Lo_8
Lo_5
Fa0/1 Fa0/0
R2 R3
Lo_12 10.52.177.56/30 Lo_13
Lo_10 S0/0/1 S0/0/0
R4 Fa0/0 virtual-link Fa0/1
R5
S0/0/0 Área 2 S0/0/1
Lo_7 Lo_9
Fa0/0 Fa0/0
Lo_7: 55.0.190.90//17 Lo_9: 140.1.170.7/21
Lo_11 Lo_14
Propiedad intelectual de Daniel Díaz A
200.4.5.0/24 210.7.9.0/24
R2>enable R3>enable
R2#configure terminal. R3#configure terminal.
R2(config)#router ospf 2 R3(config)#router ospf 3
R2(config-router)#area 2 virtual-link 140.1.170.7 R3(config-router)#area 2 virtual-link 55.0.190.90
R2(config-router)#exit R3(config-router)#exit
R2(config)# R3(config)#
CONFIGURANDO VIRTUAL-LINK
Área 1
205.2.83.128/25 Lo_1
Fa0/0
Lo_0
10.2.2.36/30 R6
S0/0/0
Lo_3
S0/0/1
Lo_2
R1>enable
Fa0/0 Fa0/1 R1#configure terminal
Área 0 R1 R1(config)#router ospf 1
Lo_6
Lo_4
Lo_5 R1(config-router)#area
Lo_8 2 virtual-link 55.0.190.90
Fa0/1 R1(config-router)#exit
Fa0/0
R2
Propiedad intelectual de Daniel Díaz A
Lo_12 10.52.177.56/30
R1(config)#
Lo_10 S0/0/1
Fa0/0 Fa0/1
R4
S0/0/0 Área 2
R2>enable
Lo_7 R2#configure terminal
Fa0/0
Lo_5: 210.8.8.19/24 R2(config)#router ospf 2
Lo_11 R2(config-router)#area 2 virtual-link 210.8.8.19
R2(config-router)#exit
Lo_7: 55.0.190.90//17 R2(config)#
200.4.5.0/24
Maestría en Telecomunicaciones Daniel Díaz Ataucuri, 2006-II
PROTOCOLO OSPF
CONFIGURACIÓN DEL
PROTOCOLO
RIPv2 - OSPF
Propiedad intelectual de Daniel Díaz A
ESCENARIO DE PRUEBA
172.16. 0.0/16
.0.2
.0.1 BW 100Mbps
.198 .201
S1 S0
BW 1544kbps
Propiedad intelectual de Daniel Díaz A
S0 .197 S1
.202
S1 S0
.206
.65 10.0.37.204/30 .205 .129
BW 100Mbps BW 100Mbps
.66 .130
200.37.42.0/24 200.37.51.0/24
Maestría en Telecomunicaciones Daniel Díaz Ataucuri, 2006-II
PROTOCOLO OSPF
OSPF – RIPv2
Propiedad intelectual de Daniel Díaz A
OSPF – RIPv2
Propiedad intelectual de Daniel Díaz A
LABORATORIO
Área 1
N3
207.21.39.128/25 Lo_1
Lo_0: 147.49.2.33/28 Fa0 Lo_2: 195.8.70.73/29
Lo_1: 147.49.4.163/27 Lo_0 Lo_3: 195.8.90.130/25
R6
S0/0
S0/0/1
Lo_2 Lo_3
Lo_11: 12.48.8.54/24 Lo_14: 200.99.8.43/24
Lo_12: 50.3.7.7/24 Lo_15: 15.43.5.9/16
Fa0/0 Fa0/1 Lo_16: 16.8.7.9/24
R1
Área 2 Lo_6
Lo_4 Lo_5
Lo_8 Área 3
Fa0/1 Fa0/0
Lo_12 R2 R3
10.52.177.56/30 Lo_13
Lo_10 S0/0/1 S0/0/0
Propiedad intelectual de Daniel Díaz A
Fa0/0 Fa0/1
R4 R5
S0/0 Área 0 S0/1
Lo_8: 147.8.160.3/21
Lo_9: 147.8.170.7/21
Maestría en Telecomunicaciones
200.71.62.0/24 205.9.91.0/24
Daniel Díaz Ataucuri, 2006-II