Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Informe 2 (OSPF) PDF
Informe 2 (OSPF) PDF
LABORATORIO 2
OSPF
Estudiantes:
Julio Chvez Hidalgo
Rodrigo Huaranca Morales
Ariel Rasguido Copa
Materia:
Sistemas de Telecomunicaciones 3
Cochabamba Bolivia
22 de septiembre 2017
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
1|Pgina
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
1.1.2.- Ventajas
Todos los routers intercambian estados de link mediante inundacin. Cada router
que recibe una actualizacin de estado de link debe almacenar una copia en su base
de datos de estados de link y a continuacin propagar la actualizacin a otros
routers.
Una vez que la base de datos de cada router est completa, el router calcula un rbol
de trayectoria ms corta a todos los destinos. El router utiliza el algoritmo Dijkstra
2|Pgina
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
En caso de que no ocurran cambios en la red OSPF, tales como el costo de un link, o
el agregado o eliminacin de una red, OSPF debera permanecer muy tranquila.
Cualquier cambio que ocurra se comunica a travs de los paquetes de estado de link,
y el algoritmo Dijkstra se recalcula para encontrar la trayectoria ms corta.
1.1.4.- Areas
OSPF organiza un sistema autnomo (AS) en reas. Estas reas son grupos lgicos
de routers cuya informacin se puede resumir para el resto de la red. Un rea es una unidad
de encaminamiento, es decir, todos los routers de la misma rea mantienen la misma
informacin topolgica en su base de datos de estado-enlace (Link State Database): de esta
forma, los cambios en una parte de la red no tienen por qu afectar a toda ella, y buena
parte del trfico puede ser "parcelado" en su rea.
Un paquete generado en la red ser enviado, de forma jerrquica, a travs del rea si su
destino es conocido por el emisor; al ABR del rea correspondiente si el destino es inter-
rea; este lo enviar al router del rea de destino, si este se encuentra en el AS; o al ASBR si
el destino del paquete es exterior a la red (desconocida por el ABR).
3|Pgina
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
1.1.6.- DR y BDR
Funcionamiento de OSPF en una topologa Multiacceso con difusin
Dado que el enrutamiento OSPF depende del estado de enlace entre dos routers, los
vecinos deben reconocerse entre s para compartir informacin. Este proceso se hace por
medio del protocolo Hello.*Un router se ve a s mismo listado en un paquete Hello que
recibe de un vecino* los paquetes se envan cada 10 segundos (forma predeterminada)
Utilizando la direccin de multidifusin 224.0.0.5.para declarar a un vecino cado el router
espera cuatro veces el tiempo del intervalo Hello (intervalo Dead).
Un DR lleva a cabo tareas de envi y sincronizacin. El BDR solo actuara si el DR falla. Cada
router debe establecer una adyacencia con el DR y el BDR.
4|Pgina
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
Como indica el diagrama anterior, RTA est volviendo a distribuir dos rutas externas en
OSPF. N1 y N2 tienen un costo externo de x. La nica diferencia es que N1 se redistribuye
en OSPF con un tipo de mtrica 1 y N2 se redistribuye con un tipo de mtrica 2. Si seguimos
las rutas desde el rea 1 al rea 0, el costo para alcanzar N2 visto desde RTB o RTC siempre
ser x. El costo interno a lo largo del camino no se considera. Por otro lado, el costo de
alcanzar N1 es incrementado por el costo interno. El costo es x+y como se puede observar
de RTB y x+y+z como se observa de RTC.
Si las rutas externas son ambas de tipo 2 y los costos externos a la red de destino son iguales,
entonces se selecciona como mejor trayecto el que presenta un menor costo hacia el ASBR.
A menos que se indique lo contrario, el tipo externo predeterminado que se especifica para
las rutas externas es el tipo 2.
5|Pgina
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
2.- Procedimiento
2.1.- Esquema
AREA 0
En R1:
Router>enable
Router#config t
Router(config)#hostname R1
R1(config)#int f 0/0
R1(config-if)#ip address 172.30.0.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
En R2:
Router>enable
Router#config t
Router(config)#hostname R2
R2(config)#int f 0/0
R2(config-if)#ip address 172.30.0.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
En R3:
Router>enable
Router#config t
Router(config)#hostname R3
R3(config)#int fa 0/0
R3(config-if)#ip address 172.30.0.3 255.255.255.0
R3(config-if)#no shutdown
R3(config-if)#exit
6|Pgina
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
AREA 10
En R2
R2(config)#int s 0/0
R2(config-if)#ip address 172.30.10.2 255.255.255.0
R2(config-if)#bandwidth
R2(config-if)#no shutdown
R2(config-if)#exit
En R5
Router>enable
Router#config t
Router(config)#hostname R5
R5(config)#int s 0/0
R5(config-if)#ip address 172.30.20.5 255.255.255.0
R5(config-if)#bandwidth
R5(config-if)#no shutdown
R5(config-if)#exit
R5(config)#int loopback 1
R5(config-if)#ip address 10.10.0.1 255.255.255.0
R5(config-if)#ip ospf network point-to-point
R5(config-if)#exit
R5(config)#int loopback 2
R5(config-if)#ip address 10.10.1.1 255.255.255.0
R5(config-if)#ip ospf network point-to-point
R5(config-if)#exit
R5(config)#int loopback 3
R5(config-if)#ip address 10.10.2.1 255.255.255.0
R5(config-if)#ip ospf network point-to-point
R5(config-if)#exit
R5(config)#int loopback 4
R5(config-if)#ip address 10.10.3.1 255.255.255.0
R5(config-if)#ip ospf network point-to-point
R5(config-if)#exit
AREA 20
En R3:
R3(config)#int s 0/0
R3(config-if)#ip address 172.30.20.3 255.255.255.0
R3(config-if)#bandwidth
R3(config-if)#no shutdown
R3(config-if)#exit
En R4:
Router>enable
Router#config t
Router(config)#hostname R4
7|Pgina
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
R4(config)#int s 0/0
R4(config-if)#ip address 170.30.10.4 255.255.255.0
R4(config-if)#bandwidth
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#int loopback 1
R4(config-if)#ip address 10.20.0.1 255.255.255.0
R4(config-if)#ip ospf network point-to-point
R4(config-if)#exit
R4(config)#int loopback 2
R4(config-if)#ip address 10.20.1.1 255.255.255.0
R4(config-if)#ip ospf network point-to-point
R4(config-if)#exit
R4(config)#int loopback 3
R4(config-if)#ip address 10.20.2.1 255.255.255.0
R4(config-if)#ip ospf network point-to-point
R4(config-if)#exit
R4(config)#int loopback 4
R4(config-if)#ip address 10.20.3.1 255.255.255.0
R4(config-if)#ip ospf network point-to-point
R4(config-if)#exit
2.3.- Objetivos
2.3.1.- Objetivo 1
Configurar OSPF para el esquema de red mostrado. R1 se comportar como un ASBR
redistribuyendo una serie de rutas estticas en la red OSPF. Estas rutas NO DEBERIAN
incrementar su mtrica cuando pasan a travs de la red y deben tener un costo inicial
OSPF de 200. Todos los routers deben tener un router-id que refleje su hostname, y se
debe poder hacer ping a cada uno de estos router-id a travs de la red OSPF entera.
Rutas Estticas
R1#config t
R1(config)#ip route 172.16.0.0 255.255.255.0 null 0
R1(config)#ip route 172.16.1.0 255.255.255.0 null 0
R1(config)#ip route 172.16.2.0 255.255.255.0 null 0
R1(config)#ip route 172.16.3.0 255.255.255.0 null 0
R1(config)#exit
Configuracion OSPF
R1(config)#router ospf 1
R1(config-router)#router-id 1.1.1.1
R1(config-router)#network 172.30.0.0 0.0.0.255 area 0
R1(config-router)#redistribute static subnets metric 200 metric-type 2
R1(config-router)#exit
8|Pgina
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
R2(config)#router ospf 1
R2(config-router)#router-id 2.2.2.2
R2(config-router)#network 172.30.0.0 0.0.0.255 area 0
R2(config-router)#network 172.30.10.0 0.0.0.255 area 10
R2(config-router)#exit
R3(config)#router ospf 1
R3(config-router)#router-id 3.3.3.3
R3(config-router)#network 172.30.0.0 0.0.0.255 area 0
R3(config-router)#network 172.30.20.0 0.0.0.255 area 20
R3(config-router)#exit
R4(config)#router ospf 1
R4(config-router)#router-id 4.4.4.4
R4(config-router)#network 172.30.20.0 0.0.0.255 area 20
R4(config-router)#network 10.20.0.0 0.0.0.255 area 20
R4(config-router)#network 10.20.1.0 0.0.0.255 area 20
R4(config-router)#network 10.20.2.0 0.0.0.255 area 20
R4(config-router)#network 10.20.3.0 0.0.0.255 area 20
R4(config-router)#redistribute connected subnets
R4(config-router)#exit
R5(config)#router ospf 1
R5(config-router)#router-id 5.5.5.5
R5(config-router)#network 172.30.10.0 0.0.0.255 area 10
R5(config-router)#network 10.10.0.1 0.0.0.255 area 10
R5(config-router)#network 10.10.1.1 0.0.0.255 area 10
R5(config-router)#network 10.10.2.1 0.0.0.255 area 10
R5(config-router)#network 10.10.3.1 0.0.0.255 area 10
R5(config-router)#redistribute connected subnets
R5(config-router)#exit
R1#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
9|Pgina
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
10 | P g i n a
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
11 | P g i n a
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
R5#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
R1#show ip ospf
* Routing Process "ospf 1" with ID 1.1.1.1
Start time: 00:00:08.892, Time elapsed: 01:03:50.864
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
* It is an autonomous system boundary router
Redistributing External Routes from,
static with metric mapped to 200, includes subnets in redistribution
Router is not originating router-LSAs with maximum metric
Initial SPF schedule delay 5000 msecs
Minimum hold time between two consecutive SPFs 10000 msecs
12 | P g i n a
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
R2#show ip ospf
* Routing Process "ospf 1" with ID 2.2.2.2
Start time: 00:00:09.124, Time elapsed: 01:06:13.816
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
*It is an area border router
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 8. Checksum Sum 0x021464
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 2. 2 normal 0 stub 0 nssa
Number of areas transit capable is 0
External flood list length 0
13 | P g i n a
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
Area BACKBONE(0)
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm last executed 01:05:20.400 ago
SPF algorithm executed 5 times
Area ranges are
Number of LSA 12. Checksum Sum 0x058F4A
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
Area 10
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm last executed 01:06:10.484 ago
SPF algorithm executed 2 times
Area ranges are
Number of LSA 10. Checksum Sum 0x05DB41
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
R3#show ip ospf
* Routing Process "ospf 1" with ID 3.3.3.3
Start time: 00:00:09.208, Time elapsed: 01:07:20.472
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
* It is an area border router
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 8. Checksum Sum 0x020C68
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 2. 2 normal 0 stub 0 nssa
Number of areas transit capable is 0
External flood list length 0
Area BACKBONE(0)
Number of interfaces in this area is 1
14 | P g i n a
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
R4#show ip ospf
*Routing Process "ospf 1" with ID 4.4.4.4
Start time: 00:00:09.340, Time elapsed: 01:08:50.916
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
* It is an autonomous system boundary router
Redistributing External Routes from,
connected, includes subnets in redistribution
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 8. Checksum Sum 0x02046C
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
Area 20
Number of interfaces in this area is 5
15 | P g i n a
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
R5#show ip ospf
*Routing Process "ospf 1" with ID 5.5.5.5
Start time: 00:00:09.404, Time elapsed: 01:10:04.968
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Link-local Signaling (LLS)
Supports area transit capability
*It is an autonomous system boundary router
Redistributing External Routes from,
connected, includes subnets in redistribution
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 8. Checksum Sum 0x02046C
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
Area 10
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm last executed 01:10:00.116 ago
SPF algorithm executed 1 times
Area ranges are
Number of LSA 10. Checksum Sum 0x05C74B
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
16 | P g i n a
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
2.3.3.- Objetivo 3
Asegurarse de que R1 se convierta en el DR en el segmento Ethernet del rea 0. R2 y R3
no deberan convertirse en DR o BDR. Despus de que este cambio es hecho, qu tipo de
relacin de vecindario debera existir entre R1 y R2? Entre R2 y R3?
En R2
R2(config)#int fa0/0
R2(config-if)#ip ospf priority 0
R2(config-if)#exit
En R3
R3(config)#int fa0/0
R3(config-if)#ip ospf priority 0
R3(config-if)#exit
En R2
En R3
18 | P g i n a
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
En R2
En R3
Se puede observar que al ejecutar este comando igual, verifica el estado de R1 como DR y
estado de DROTHER para R2 y R3 donde ejecutamos la prioridad de 0 para ambos routers.
19 | P g i n a
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
En R2 y R3
LS age: 1218
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.30.10.0 (summary Network Number)
Advertising Router: 2.2.2.2
LS Seq Number: 80000003
Checksum: 0x2FEE
Length: 28
Network Mask: /24
TOS: 0 Metric: 64
20 | P g i n a
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
LS age: 1259
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.30.20.0 (summary Network Number)
Advertising Router: 3.3.3.3
LS Seq Number: 80000003
Checksum: 0xF78F
Length: 28
Network Mask: /24
TOS: 0 Metric: 200
LS age: 1237
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.30.0.0 (summary Network Number)
Advertising Router: 2.2.2.2
LS Seq Number: 80000004
Checksum: 0x7DDF
Length: 28
Network Mask: /24
TOS: 0 Metric: 10
LS age: 1238
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.30.20.0 (summary Network Number)
Advertising Router: 2.2.2.2
LS Seq Number: 80000003
Checksum: 0x7A07
Length: 28
Network Mask: /24
TOS: 0 Metric: 210
21 | P g i n a
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
Checksum: 0x2FEE
Length: 28
Network Mask: /24
TOS: 0 Metric: 64
LS age: 1611
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.30.20.0 (summary Network Number)
Advertising Router: 3.3.3.3
LS Seq Number: 80000003
Checksum: 0xF78F
Length: 28
Network Mask: /24
TOS: 0 Metric: 200
LS age: 1613
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.30.0.0 (summary Network Number)
Advertising Router: 3.3.3.3
LS Seq Number: 80000004
Checksum: 0x5FF9
Length: 28
Network Mask: /24
TOS: 0 Metric: 10
LS age: 1613
Options: (No TOS-capability, DC, Upward)
LS Type: Summary Links(Network)
Link State ID: 172.30.10.0 (summary Network Number)
Advertising Router: 3.3.3.3
LS Seq Number: 80000003
Checksum: 0x759A
Length: 28
Network Mask: /24
TOS: 0 Metric: 74
22 | P g i n a
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
2.3.4.- Objetivo 4
Implementar sumarizacin en los ABRs en la red para hacer que las tablas de
enrutamiento de toda la red sean lo ms eficientes posible.
Con los comandos en los routers R2 y R3 area [num area] range [red][mask] dentro de
ospf podemos sumarizar la red de los loopbacks de R2 y R3
R2(config)#router ospf 1
R2(config-router)#area 10 range 10.10.0.0 255.255.252.0
R3(config)#router ospf 1
R3(config-router)#area 20 range 10.20.0.0 255.255.252.0
En R2
R2#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
23 | P g i n a
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
En R3
R3#show ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route
2.3.5.- Objetivo 5
Implementar sumarizacin en el ASBR. La ruta sumarizada debera tener los mismos
atributos que las rutas originales e individuales redistribuidas en la red.
R1#configure terminal
R1(config)#router ospf 1
R1(config-router)#summary-address 172.16.0.0 255.255.252.0
R1(config-router)#exit
R1#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
24 | P g i n a
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
2.3.6.- Objetivo 6
La organizacin planea hacer un updrade a Gigabit Ethernet en los siguientes meses. OSPF
debera calcular su mtrica asumiendo que Gigabit Ethernet ser el enlace ms rpido en
la red.
En R1:
R1(config)#router ospf 1
R1(config-router)#auto-cost reference-bandwidth 1000
R1(config-router)#exit
R1#show runnig-config
router ospf 1
router-id 1.1.1.1
log-adjacency-changes
auto-cost reference-bandwidth 1000
summary-address 172.16.0.0 255.255.252.0
redistribute static metric 200 subnets
network 172.30.0.0 0.0.0.255 area 0
En R2:
R2(config)#router ospf 1
R2(config-router)#auto-cost reference-bandwidth 1000
R2(config-router)#exit
R2#show runnig-config
router ospf 1
router-id 2.2.2.2
log-adjacency-changes
25 | P g i n a
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
En R3:
R3(config)#router ospf 1
R3(config-router)#auto-cost reference-bandwidth 1000
R3(config-router)#exit
R3#show runnig-config
router ospf 1
router-id 3.3.3.3
log-adjacency-changes
auto-cost reference-bandwidth 1000
area 20 range 10.20.0.0 255.255.252.0
network 172.30.0.0 0.0.0.255 area 0
network 172.30.20.0 0.0.0.255 area 20
En R4:
R4(config)#router ospf 1
R4(config-router)#auto-cost reference-bandwidth 1000
R4(config-router)#exit
R4#show runnig-config
router ospf 1
router-id 4.4.4.4
log-adjacency-changes
auto-cost reference-bandwidth 1000
redistribute connected subnets
network 10.20.0.0 0.0.0.255 area 20
network 10.20.1.0 0.0.0.255 area 20
network 10.20.2.0 0.0.0.255 area 20
network 10.20.3.0 0.0.0.255 area 20
network 172.30.20.0 0.0.0.255 area 20
En R5:
R5(config)#router ospf 1
R5(config-router)#auto-cost reference-bandwidth 1000
R5(config-router)#exit
R5#show runnig-config
router ospf 1
router-id 5.5.5.5
log-adjacency-changes
auto-cost reference-bandwidth 1000
redistribute connected subnets
network 10.10.0.0 0.0.0.255 area 10
network 10.10.1.0 0.0.0.255 area 10
network 10.10.2.0 0.0.0.255 area 10
network 10.10.3.0 0.0.0.255 area 10
network 172.30.10.0 0.0.0.255 area 10
26 | P g i n a
Universidad Catlica Boliviana San Pablo Regional Cochabamba
Sistemas de Telecomunicaciones 3
3.- Conclusiones
Al utilizar varias reas se logra se crean menos entradas de tabla de enrutamiento,
ya que las direcciones de red pueden resumirse entre reas.
La sumarizacin de ruta no est habilitada de manera predeterminada.
Un router con prioridad 0 no es elegible para ser DR o BDR.
Si no se especifica una mtrica, OSPF coloca un valor predeterminado de 20 al
redistribuir las rutas.
El tipo externo predeterminado que se especifica para las rutas externas es el tipo
2.
4.- Bibliografia
[1] https://www.ibm.com/support/knowledgecenter/es/ssw_ibm_i_72/rzajw/rzajwospf.htm
[2] https://es.wikipedia.org/wiki/Open_Shortest_Path_First
[3] http://laurel-laurelsf.blogspot.com/2012/03/que-es-dr-bdr.html
[4] https://www.cisco.com/c/es_mx/support/docs/ip/open-shortest-path-first-ospf/7039-
1.html#t32
27 | P g i n a