Está en la página 1de 21

Protocolo de Enrutamiento OSPF

Implementación

Nombre : Gonzalo Sánchez C.


Profesor : Jaime Torres C.
Fecha : 13-07-2009
Objetivos:

• Implementar OSPF
• Comprobar Algoritmo
• Comprobar Jerarquía
• Comprobar Información (Comando show)

Configuración de cada router:

• Configuración Básica, Interfaces, Protocolo.

Información de enrutamiento:

• show ip route (cada router)


• show ip ospf neighbor (cada router)
• show ip ospf database (cada router)

Explique:

• ¿En BMA como se eligió DR y BDR?


• ¿Cómo estabilizar con interfaces loopback?

Topología Broadcast Multi Access


OSPF en una topología BMA

Es el caso estándar de una o más lan. Usa el protocolo Hello para:

• Comprobar que la línea con un vecino esta operacional y pueden intercambiar


información.

• Elegir al DR y BDR.

Los Hello se envían periódicamente cada 10 segundos, usando la dirección multicast


224.0.0.5.

Cada segmento de la red BMA tendrá un DR y BDR. Un router podrá actuar como DR en
un segmento y actuar como router normal en otro, en realidad es la interfaz la que actúa
como DR o BDR.

Un BDR detectara que un DR falla, pues durante un cierto tiempo no recibirá LSAs

Durante el descubrimiento de las rutas, se pasa por varias fases:

• Exstart state: DR y BDR forman una adyacencia con cada uno de los routers.
• Exchange state: Intercambio de DB.
• Loading state: El slave compara información recibida y pide que le envíen entradas
que no tiene.
• Full state: Se crea la tabla de enrutamiento.

Nota: 224.0.0.5 dirección multicast a todos los routers OSPF. 224.0.0.6 multicast a
todos los DR y BDR.

Los paquetes OSPF se encapsulan en IP con tipo de protocolo de transporte numero 89. En
la cabecera OSPF existe un campo que indica el tipo de paquete:

• Paquetes Hello: (type=1) Establecen y mantienen relaciones entre vecinos.


• Database Description (DBD): (type=2) Describe el contenido de la DB.
• Link-State Request (LSR): (type=3) Paquetes de petición de las porciones de la
DB.
• Link-State Update (LSU): (type=4) Paquetes de respuesta con porciones de la DB.
• Link-State ACK (LSAck): (type=5) Paquetes que reconocen LSUs.
• Link-State Advertisement (LSA): Describen el estado local de un router o red.
Para un router incluye el estado de las interfaces y sus adyacencias. Van
empaquetados en DBD, LSU, LSR o LSAck.
Configuración de cada router

• Configuración Básica Router A

router>enable
router#configure terminal
router(config)#hostname RA
RA(config)#banner motd #---ACCESO RESTRINGIDO AL ROUTER---#
RA(config)#enable secret cisco
RA(config)#line con 0
RA(config-line)#password cisco
RA(config-line)#login
RA(config-line)#exit
RA(config)#line vty 0 4
RA(config-line)#password cisco
RA(config-line)#login
RA(config-line)#exit

• Configuración Interfaces y Protocolo Router A

RA#configure terminal
RA(config)#interface fastethernet 0/0
RA(config-if)#ip address 172.16.12.1 255.255.255.0
RA(config-if)#no shutdown
RA(config-if)#exit
RA(config)#interface serial 0/1/0
RA(config-if)#bandwidth 1544
RA(config-if)#ip address 10.1.1.1 255.255.255.252
RA(config-if)#clock rate 64000
RA(config-if)#no shutdown
RA(config-if)#exit
RA>configure terminal
RA(config)#router ospf 1
RA(config-router)#passive-interface fastethernet 0/0
RA(config-router)#network 172.16.12.0 0.0.0.255 area 0
RA(config-router)network 10.1.1.0 0.0.0.3 area 0

• Configuración Básica Router B

router>enable
router#configure terminal
router(config)#hostname RB
RB(config)#banner motd #---ACCESO RESTRINGIDO AL ROUTER---#
RB(config)#enable secret cisco
RB(config)#line con 0
RB(config-line)#password cisco
RB(config-line)#login
RB(config-line)#exit
RB(config)#line vty 0 4
RB(config-line)#password cisco
RB(config-line)#login
RB(config-line)#exit

• Configuración Interfaces y Protocolo Router B

RB#Configure terminal
RB(config)#interface fastethernet 0/0
RB(config-if)#ip address 172.16.16.1 255.255.255.0
RB(config-if)#no shutdown
RB(config-if)#exit
RB(config)#Interface serial 0/1/0
RB(config-if)#bandwidth 2048
RB(config-if)#ip address 10.1.1.5 255.255.255.252
RB(config-if)#clock rate 64000
RB(config-if)#no shutdown
RB(config-if)#exit

RB>configure terminal
RB(config)#router ospf 1
RB(config-router)#passive-interface fastethernet 0/0
RB(config-router)#network 172.16.16.0 0.0.0.255 area 0
RB(config-router)#network 10.1.1.4 0.0.0.3 area 0
• Configuración Básica Router 1

router>enable
router#configure terminal
router(config)#hostname R1
R1(config)#banner motd #---ACCESO RESTRINGIDO AL ROUTER---#
R1(config)enable secret cisco
R1(config)line con 0
R1(config-line)password cisco
R1(config-line)login
R1(config-line)exit
R1(config)line vty 0 4
R1(config-line)password cisco
R1(config-line)login
R1(config-line)exit

• Configuración Interfaces y Protocolo Router 1

R1#configure terminal
R1(config)#interface serial 0/1/0
R1(config-if)#bandwidth 1544
R1(config-if)#ip address 10.1.1.2 255.255.255.252
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface fastethernet 0/0
R1(config-if)#p address 192.168.50.1 255.255.255.248
R1(config-if)#no shutdown
R1(config-if)#exit

R1#configure terminal
R1(config)#router ospf 1
R1(config)#network 10.1.1.0 0.0.0.3 area 0
R1(config)#network 192.168.50.0 0.0.0.7 area 0

• Configuración Básica Router 2

router>enable
router#configure terminal
router(config)#hostname R2
R2(config)#banner motd #---ACCESO RESTRINGIDO AL ROUTER---#
R2(config)#enable secret cisco
R2(config)#line con 0
R2(config-line)#password cisco
R2(config-line)#login
R2(config-line)#exit
R2(config)#line vty 0 4
R2(config-line)#password cisco
R2(config-line)#login
R2(config-line)#exit

• Configuración Interfaces y Protocolo Router 2

R2#configure terminal
R2(config)#interface serial 0/1/0
R2(config-if)#bandwidth 2048
R2(config-if)#ip address 10.1.1.6 255.255.255.252
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)interface fastethernet 0/0
R2(config-if)#ip address 192.168.50.2 255.255.255.248
R2(config-if)#no shutdown
R2(config-if)#exit

R2#configure terminal
R2(config)#router ospf 1
R2(config-config)#network 10.1.1.4 0.0.0.3 area 0
R2(config-config)#network 192.168.50.0 0.0.0.7 area 0

• Configuracion Basica Router 3

router>enable
router#configure terminal
router(config)#hostname R3
R3(config)#banner motd #---ACCESO RESTRINGIDO AL ROUTER---#
R3(config)#enable secret cisco
R3(config-line)#line con 0
R3(config-line)#password cisco
R3(config-line)#login
R3(config-line)#exit
R3(config)#line vty 0 4
R3(config-line)#password cisco
R3(config-line)#login
R3(config-line)#exit
• Configuración Interfaces y Protocolo Router 3

R3#configure terminal
R3(config)#interface serial 0/1/0
R3(config-if)#bandwidth 1544
R3(config-if)#ip address 10.2.2.5 255.255.255.252
R3(config-if)#clock rate 64000
R3(config-if)#no shutdown
R3(config-if)#exit
R3(config)#interface fastethernet 0/0
R3(config-if)#ip address 192.168.50.3 255.255.255.248
R3(config-if)#no shutdown
R3(config-if)#exit

R3#configure terminal
R3(config)#router ospf 1
R3(config-router)#network 10.2.2.4 0.0.0.3 area 0
R3(config-router)#network 192.168.50.0 0.0.0.7 area 0

• Configuracion Basica Router 4

router>enable
router#configure terminal
router(config)#hostname R4
R4(config)#banner motd #---ACCESO RESTRINGIDO AL ROUTER---#
R4(config)#enable secret cisco
R4(config)#line con 0
R4(config-line)#password cisco
R4(config-line)#login
R4(config-line)#exit
R4(config)#line vty 0 4
R4(config-line)#password cisco
R4(config-line)#login
R4(config-line)#exit

• Configuración Interfaces y Protocolo Router 4

R4#configure terminal
R4(config)#interface serial 0/1/0
R4(config-if)#bandwidth 2048
R4(config-if)#ip address 10.2.2.1 255.255.255.252
R4(config-if)#clock rate 64000
R4(config-if)#no shutdown
R4(config-if)#exit
R4(config)#interface fastethernet 0/0
R4(config-if)#ip address 192.168.50.4 255.255.255.248
R4(config-if)#no shutdown
R4(config-if)#exit

R4#configure terminal
R4(config)#router ospf 1
R4(config-router)#network 10.2.2.0 0.0.0.3 area 0
R4(config-router)#network 192.168.50.0 0.0.0.7 area 0

• Configuracion Basica Router C

router>enable
router#configure terminal
router(config)#hostname RC
RC(config)#banner motd #---ACCESO RESTRINGIDO AL ROUTER---#
RC(config)#enable secret cisco
RC(config)#line con 0
RC(config-line)#password cisco
RC(config-line)#login
RC(config-line)#exit
RC(config)#line vty 0 4
RC(config-line)#password cisco
RC(config-line)#login
RC(config)#exit

• Configuración Interfaces y Protocolo Router C

RC#configure terminal
RC(config)#interface fastethernet 0/1
RC(config-if)#ip address 172.16.8.1 255.255.255.0
RC(config-if)#no shutdown
RC(config-if)#exit
RC(config)#interface fastethernet 0/0
RC(config-if)#ip address 172.16.4.1 255.255.255.0
RC(config-if)#no shutdown
RC(config-if)#exit
RC(config)#interface serial 0/1/1
RC(config-if)#bandwidth 1544
RC(config-if)#ip address 10.2.2.6 255.255.255.252
RC(config-if)#no shutdown
RC(config-if)#exit
RC(config)#interface serial 0/1/0
RC(config-if)#bandwidth 2048
RC(config-if)#ip address 10.2.2.2 255.255.255.252
RC(config-if)#no shutdown
RC(config-if)#exit
RC#configure terminal
RC(config)#router ospf 1
RC(config-router)#passive-interface fastethernet 0/0
RC(config-router)#passive-interface fastethernet 0/1
RC(config-router)#network 172.16.8.0 0.0.0.255 area 0
RC(config-router)#network 172.16.4.0 0.0.0.255 area 0
RC(config-router)#network 10.2.2.4 0.0.0.3 area 0
RC(config-router)#network 10.2.2.0 0.0.0.3 area 0

Verificacion de OSPF

• show ip route: Router A

RA#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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

Gateway of last resort is not set

10.0.0.0/30 is subnetted, 4 subnets


C 10.1.1.0 is directly connected, Serial0/1/0
O 10.1.1.4 [110/113] via 10.1.1.2, 06:38:57, Serial0/1/0
O 10.2.2.0 [110/113] via 10.1.1.2, 06:39:07, Serial0/1/0
O 10.2.2.4 [110/129] via 10.1.1.2, 06:39:07, Serial0/1/0
172.16.0.0/24 is subnetted, 4 subnets
O 172.16.4.0 [110/114] via 10.1.1.2, 06:39:07, Serial0/1/0
O 172.16.8.0 [110/114] via 10.1.1.2, 06:39:07, Serial0/1/0
C 172.16.12.0 is directly connected, FastEthernet0/0
O 172.16.16.0 [110/114] via 10.1.1.2, 06:38:57, Serial0/1/0
192.168.50.0/29 is subnetted, 1 subnets
O 192.168.50.0 [110/65] via 10.1.1.2, 06:39:44, Serial0/1/0

• show ip route: Router 1

R1#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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

Gateway of last resort is not set

10.0.0.0/30 is subnetted, 4 subnets


C 10.1.1.0 is directly connected, Serial0/1/0
O 10.1.1.4 [110/49] via 192.168.50.2, 06:46:22, FastEthernet0/0
O 10.2.2.0 [110/49] via 192.168.50.4, 06:46:32, FastEthernet0/0
O 10.2.2.4 [110/65] via 192.168.50.3, 06:46:32, FastEthernet0/0
172.16.0.0/24 is subnetted, 4 subnets
O 172.16.4.0 [110/50] via 192.168.50.4, 06:46:32, FastEthernet0/0
O 172.16.8.0 [110/50] via 192.168.50.4, 06:46:32, FastEthernet0/0
O 172.16.12.0 [110/65] via 10.1.1.1, 06:47:12, Serial0/1/0
O 172.16.16.0 [110/50] via 192.168.50.2, 06:46:22, FastEthernet0/0
192.168.50.0/29 is subnetted, 1 subnets
C 192.168.50.0 is directly connected, FastEthernet0/0

• show ip route: Router B

RB#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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

Gateway of last resort is not set

10.0.0.0/30 is subnetted, 4 subnets


O 10.1.1.0 [110/113] via 10.1.1.6, 06:49:04, Serial0/1/0
C 10.1.1.4 is directly connected, Serial0/1/0
O 10.2.2.0 [110/97] via 10.1.1.6, 06:49:04, Serial0/1/0
O 10.2.2.4 [110/113] via 10.1.1.6, 06:49:14, Serial0/1/0
172.16.0.0/24 is subnetted, 4 subnets
O 172.16.4.0 [110/98] via 10.1.1.6, 06:49:04, Serial0/1/0
O 172.16.8.0 [110/98] via 10.1.1.6, 06:49:04, Serial0/1/0
O 172.16.12.0 [110/114] via 10.1.1.6, 06:49:04, Serial0/1/0
C 172.16.16.0 is directly connected, FastEthernet0/0
192.168.50.0/29 is subnetted, 1 subnets
O 192.168.50.0 [110/49] via 10.1.1.6, 06:49:54, Serial0/1/0
• show ip route: Router 2

R2#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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

Gateway of last resort is not set

10.0.0.0/30 is subnetted, 4 subnets


O 10.1.1.0 [110/65] via 192.168.50.1, 06:52:21, FastEthernet0/0
C 10.1.1.4 is directly connected, Serial0/1/0
O 10.2.2.0 [110/49] via 192.168.50.4, 06:52:31, FastEthernet0/0
O 10.2.2.4 [110/65] via 192.168.50.3, 06:52:31, FastEthernet0/0
172.16.0.0/24 is subnetted, 4 subnets
O 172.16.4.0 [110/50] via 192.168.50.4, 06:52:31, FastEthernet0/0
O 172.16.8.0 [110/50] via 192.168.50.4, 06:52:31, FastEthernet0/0
O 172.16.12.0 [110/66] via 192.168.50.1, 06:52:21, FastEthernet0/0
O 172.16.16.0 [110/49] via 10.1.1.5, 06:53:12, Serial0/1/0
192.168.50.0/29 is subnetted, 1 subnets
C 192.168.50.0 is directly connected, FastEthernet0/0

• show ip route: Router 3

R3#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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

Gateway of last resort is not set

10.0.0.0/30 is subnetted, 4 subnets


O 10.1.1.0 [110/65] via 192.168.50.1, 06:58:30, FastEthernet0/0
O 10.1.1.4 [110/49] via 192.168.50.2, 06:58:30, FastEthernet0/0
O 10.2.2.0 [110/49] via 192.168.50.4, 06:58:40, FastEthernet0/0
C 10.2.2.4 is directly connected, Serial0/1/0
172.16.0.0/24 is subnetted, 4 subnets
O 172.16.4.0 [110/50] via 192.168.50.4, 06:58:40, FastEthernet0/0
O 172.16.8.0 [110/50] via 192.168.50.4, 06:58:40, FastEthernet0/0
O 172.16.12.0 [110/66] via 192.168.50.1, 06:58:30, FastEthernet0/0
O 172.16.16.0 [110/50] via 192.168.50.2, 06:58:30, FastEthernet0/0
192.168.50.0/29 is subnetted, 1 subnets
C 192.168.50.0 is directly connected, FastEthernet0/0

• show ip route: Router 4

R4#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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

Gateway of last resort is not set

10.0.0.0/30 is subnetted, 4 subnets


O 10.1.1.0 [110/65] via 192.168.50.1, 07:01:55, FastEthernet0/0
O 10.1.1.4 [110/49] via 192.168.50.2, 07:01:55, FastEthernet0/0
C 10.2.2.0 is directly connected, Serial0/1/0
O 10.2.2.4 [110/65] via 192.168.50.3, 07:01:55, FastEthernet0/0
172.16.0.0/24 is subnetted, 4 subnets
O 172.16.4.0 [110/49] via 10.2.2.2, 07:02:30, Serial0/1/0
O 172.16.8.0 [110/49] via 10.2.2.2, 07:02:30, Serial0/1/0
O 172.16.12.0 [110/66] via 192.168.50.1, 07:01:55, FastEthernet0/0
O 172.16.16.0 [110/50] via 192.168.50.2, 07:01:55, FastEthernet0/0
192.168.50.0/29 is subnetted, 1 subnets
C 192.168.50.0 is directly connected, FastEthernet0/0

• show ip route: Router C

RC#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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

Gateway of last resort is not set

10.0.0.0/30 is subnetted, 4 subnets


O 10.1.1.0 [110/113] via 10.2.2.1, 07:05:04, Serial0/1/0
O 10.1.1.4 [110/97] via 10.2.2.1, 07:05:04, Serial0/1/0
C 10.2.2.0 is directly connected, Serial0/1/0
C 10.2.2.4 is directly connected, Serial0/1/1
172.16.0.0/24 is subnetted, 4 subnets
C 172.16.4.0 is directly connected, FastEthernet0/0
C 172.16.8.0 is directly connected, FastEthernet0/1
O 172.16.12.0 [110/114] via 10.2.2.1, 07:05:04, Serial0/1/0
O 172.16.16.0 [110/98] via 10.2.2.1, 07:05:04, Serial0/1/0
192.168.50.0/29 is subnetted, 1 subnets
O 192.168.50.0 [110/49] via 10.2.2.1, 07:05:54, Serial0/1/0

• show ip ospf neighbor: Router A

RA#show ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface
192.168.50.1 1 FULL/- 00:00:39 10.1.1.2 Serial0/1/0

• show ip ospf neighbor: Router 1

R1#show ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface
192.168.50.4 1 FULL/DR 00:00:32 192.168.50.4 FastEthernet0/0
192.168.50.2 1 2WAY/DROTHER 00:00:32 192.168.50.2 FastEthernet0/0
192.168.50.3 1 FULL/BDR 00:00:35 192.168.50.3 FastEthernet0/0
172.16.12.1 1 FULL/- 00:00:36 10.1.1.1 Serial0/1/0

• show ip ospf neighbor: Router B

RB#show ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface
192.168.50.2 1 FULL/- 00:00:30 10.1.1.6 Serial0/1/0

• show ip ospf neighbor: Router 2

R2#show ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface
192.168.50.4 1 FULL/DR 00:00:33 192.168.50.4 FastEthernet0/0
192.168.50.1 1 2WAY/DROTHER 00:00:31 192.168.50.1 FastEthernet0/0
192.168.50.3 1 FULL/BDR 00:00:36 192.168.50.3 FastEthernet0/0
172.16.16.1 1 FULL/- 00:00:33 10.1.1.5 Serial0/1/0

• show ip ospf neighbor: Router 3

R3#show ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface
172.16.8.1 1 FULL/- 00:00:37 10.2.2.6 Serial0/1/0
192.168.50.4 1 FULL/DR 00:00:36 192.168.50.4 FastEthernet0/0
192.168.50.2 1 FULL/DROTHER 00:00:37 192.168.50.2 FastEthernet0/0
192.168.50.1 1 FULL/DROTHER 00:00:35 192.168.50.1 FastEthernet0/0

• show ip ospf neighbor: Router 4

R4#show ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface
192.168.50.2 1 FULL/DROTHER 00:00:33 192.168.50.2 FastEthernet0/0
192.168.50.1 1 FULL/DROTHER 00:00:31 192.168.50.1 FastEthernet0/0
192.168.50.3 1 FULL/BDR 00:00:37 192.168.50.3 FastEthernet0/0
172.16.8.1 1 FULL/- 00:00:33 10.2.2.2 Serial0/1/0

• show ip ospf neighbor: Router C

RC#show ip ospf neighbor


Neighbor ID Pri State Dead Time Address Interface
192.168.50.4 1 FULL/- 00:00:33 10.2.2.1 Serial0/1/0
192.168.50.3 1 FULL/- 00:00:33 10.2.2.5 Serial0/1/1

• show ip ospf database: Router A

RA#show ip ospf database


OSPF Router with ID (172.16.12.1) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


172.16.12.1 172.16.12.1 1702 0x80000011 0x004f4e 3
172.16.16.1 172.16.16.1 1702 0x80000011 0x00adfa 3
172.16.8.1 172.16.8.1 1701 0x80000014 0x00f992 6
192.168.50.4 192.168.50.4 1666 0x80000012 0x008edf 3
192.168.50.2 192.168.50.2 1665 0x80000012 0x00d393 3
192.168.50.1 192.168.50.1 1665 0x80000012 0x001541 3
192.168.50.3 192.168.50.3 1662 0x80000012 0x000643 3

Net Link States (Area 0)


Link ID ADV Router Age Seq# Checksum
192.168.50.4 192.168.50.4 1661 0x80000011 0x006f61

• show ip ospf database: Router 1

R1#show ip ospf database


OSPF Router with ID (192.168.50.1) (Process ID 1)

Router Link States (Area 0)


Link ID ADV Router Age Seq# Checksum Link count
192.168.50.1 192.168.50.1 36 0x80000013 0x00f403 3
172.16.16.1 172.16.16.1 75 0x80000012 0x00f403 3
172.16.12.1 172.16.12.1 74 0x80000012 0x00f403 3
172.16.8.1 172.16.8.1 74 0x80000015 0x00f205 6
192.168.50.2 192.168.50.2 41 0x80000013 0x00f403 3
192.168.50.4 192.168.50.4 38 0x80000013 0x00f403 3
192.168.50.3 192.168.50.3 33 0x80000013 0x00f403 3

Net Link States (Area 0)


Link ID ADV Router Age Seq# Checksum
192.168.50.4 192.168.50.4 33 0x80000012 0x00a1b2

• show ip ospf database: Router B

RB#show ip ospf database


OSPF Router with ID (172.16.16.1) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


172.16.16.1 172.16.16.1 218 0x80000012 0x00f403 3
172.16.8.1 172.16.8.1 2019 0x80000014 0x00f992 6
172.16.12.1 172.16.12.1 218 0x80000012 0x00f403 3
192.168.50.2 192.168.50.2 185 0x80000013 0x00f403 3
192.168.50.4 192.168.50.4 182 0x80000013 0x00f403 3
192.168.50.1 192.168.50.1 180 0x80000013 0x00f403 3
192.168.50.3 192.168.50.3 177 0x80000013 0x00f403 3

Net Link States (Area 0)


Link ID ADV Router Age Seq# Checksum
192.168.50.4 192.168.50.4 177 0x80000012 0x00a1b2

• show ip ospf database: Router 2

R2#show ip ospf database


OSPF Router with ID (192.168.50.2) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


192.168.50.2 192.168.50.2 315 0x80000013 0x00f403 3
172.16.8.1 172.16.8.1 2152 0x80000014 0x00f992 6
172.16.16.1 172.16.16.1 349 0x80000012 0x00f403 3
172.16.12.1 172.16.12.1 348 0x80000012 0x00f403 3
192.168.50.4 192.168.50.4 313 0x80000013 0x00f403 3
192.168.50.1 192.168.50.1 311 0x80000013 0x00f403 3
192.168.50.3 192.168.50.3 308 0x80000013 0x00f403 3

Net Link States (Area 0)


Link ID ADV Router Age Seq# Checksum
192.168.50.4 192.168.50.4 307 0x80000012 0x00a1b2

• show ip ospf database: Router 3

R3#show ip ospf database


OSPF Router with ID (192.168.50.3) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


192.168.50.3 192.168.50.3 504 0x80000013 0x00f403 3
172.16.16.1 172.16.16.1 546 0x80000012 0x00f403 3
172.16.8.1 172.16.8.1 545 0x80000015 0x00f205 6
172.16.12.1 172.16.12.1 545 0x80000012 0x00f403 3
192.168.50.2 192.168.50.2 512 0x80000013 0x00f403 3
192.168.50.4 192.168.50.4 509 0x80000013 0x00f403 3
192.168.50.1 192.168.50.1 507 0x80000013 0x00f403 3

Net Link States (Area 0)


Link ID ADV Router Age Seq# Checksum
192.168.50.4 192.168.50.4 504 0x80000012 0x00a1b2

• show ip ospf database: Router 4

R4#show ip ospf database


OSPF Router with ID (192.168.50.4) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


192.168.50.4 192.168.50.4 686 0x80000013 0x00f403 3
172.16.16.1 172.16.16.1 723 0x80000012 0x00f403 3
172.16.8.1 172.16.8.1 722 0x80000015 0x00f205 6
172.16.12.1 172.16.12.1 722 0x80000012 0x00f403 3
192.168.50.2 192.168.50.2 689 0x80000013 0x00f403 3
192.168.50.1 192.168.50.1 684 0x80000013 0x00f403 3
192.168.50.3 192.168.50.3 681 0x80000013 0x00f403 3

Net Link States (Area 0)


Link ID ADV Router Age Seq# Checksum
192.168.50.4 192.168.50.4 681 0x80000012 0x00a1b2
RC#show ip ospf database
OSPF Router with ID (172.16.8.1) (Process ID 1)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


172.16.8.1 172.16.8.1 906 0x80000015 0x00f205 6
172.16.16.1 172.16.16.1 907 0x80000012 0x00f403 3
172.16.12.1 172.16.12.1 906 0x80000012 0x00f403 3
192.168.50.2 192.168.50.2 874 0x80000013 0x00f403 3
192.168.50.4 192.168.50.4 871 0x80000013 0x00f403 3
192.168.50.1 192.168.50.1 869 0x80000013 0x00f403 3
192.168.50.3 192.168.50.3 866 0x80000013 0x00f403 3

Net Link States (Area 0)


Link ID ADV Router Age Seq# Checksum
192.168.50.4 192.168.50.4 866 0x80000012 0x00a1b2

Elección del DR y BDR en la topologia

En nuestra topología existen 7 routers, 4 de los cuales tienen conexión punto a punto en una
de sus interfaces dichas interfaces no participaran en la elección del DR y BDR ya que en
conexiones punto a punto no existe ese concepto. Solo participaran en esta elección las
interfaces que comparten un punto central de conexión mediante un switch a esta parte de
la topología se le llama broadcast multi acceso.

Acá podemos ver las conexiones punto a punto que no


participan en la elección, porque por definición son adyacentes
al estar directamente conectadas.
En este otro caso si se necesita la elección
de DR y BDR por que los routers
comparten un punto central que es el
switch, no están directamente conectados,
por lo tanto el router que sea DR será el
encargado de crear las adyacencias e
informar a los demás routers sobre
cambios en la topología.

La elección del DR y BDR tiene distintas opciones de poder establecerlas, por ejemplo por
la prioridad que tenga el router que por defecto viene configurada en 1, si están todas en 1,
automáticamente se busca la dirección ip mas alta de las interfaces que participan en la
elección, el BDR será la segunda interfaz mas alta y actuara solo si el DR falla.

Acá podemos ver la parte de la topología


en que se realiza la elección, al momento
de configurar el protocolo este comienza
a ver los factores para la elección
mediante los paquetes hello que son los
que buscan las adyacencias con los
demás routers, como todas las
prioridades están en 1, la dirección ip
mas alta será el DR en este caso el router
4 con la dirección 192.168.50.4 y el que
esta encerrado en rojo será el BDR en
este caso el router 3 con la segunda ip
mas alta la 192.168.50.3
Estabilizar la conectividad de la topología mediante loopback

Mientras los routers que fueron elegidos como DR y BDR funcionen correctamente y sus
enlaces no presenten problemas no habrá problemas de conectividad, pero puede ocurrir
que el router o la interfaz que este llevando las funciones de DR deje de funcionar, esto trae
como consecuencia que el protocolo se caiga y se pierda la conectividad, pues bien existe la
posibilidad de que en el router se configure una interfaz loopback, para ospf esta interfaz
será prioridad numero 1 en la elección del DR, ya que es una interfaz virtual que no va
conectada a ningún lado y nunca dejara de funcionar y estabilizara y garantizara la
conectividad en toda la red.

Cabe destacar que si a todos los routers del BMA, se les configura una loopback, será la ip
mas alta la elegida como DR.

Supongamos que en nuestra topología


las interfaces del DR y BDR que
participaron en la elección se caen, el
protocolo también se caerá y no habrá
conectividad, entonces configuraremos
interfaces loopback en cada router para
estabilizar la conectividad.

R1#configure terminal
R1(config)#interface loopback 0
R1(config-if)#ip address 10.5.5.1 255.255.255.0
R2#configure terminal
R2(config)#interface loopback 0
R2(config-if)#ip address 10.5.5.2 255.255.255.0

R3#configure terminal
R3(config)#interface loopback 0
R3(config-if)#ip address 10.5.5.3 255.255.255.0

R4#configure terminal
R4(config)#interface loopback 0
R4(config-if)#ip address 10.5.5.4 255.255.255.0

Ahora con las interfaces loopback configuradas y volviendo los routers a funcionar, el
protocolo vuelve a actuar, se mandan los paquetes hello para la elección pero ya no serán
las interfaces físicas las que participaran si no que automáticamente ospf detecta las
loopback configuradas en cada router, las compara y la más alta será el DR y la segunda
más alta el BDR, tal como se ve en la figura. Para ospf ya no importa la cantidad de
interfaces físicas que haya en el router al momento de encontrar una loopback será la
prioridad número uno para la elección.

En este caso el router 4 sigue siendo el DR porque se le configuro la loopback mas alta:
10.5.5.4 y el BDR será el router 3 con la loopback: 10.5.5.3

También podría gustarte