redes ospf con gns3

29
1. OBJETIVOS: 1. Configurar OSPF básico para el esquema de red mostrado. Publicar todas las redes conectadas a cada router en OSPF usando el método más simple disponible. Para inyectar redes externas en el dominio OSPF, redistribuir las rutas estáticas en R1. Estas rutas deberían ser marcadas como tipo E1. 2. OSPF nunca debería formar relaciones de vecindario en cualquier interfaz donde otros routers OSPF no existen (como se muestra en el diagrama). 3. Todos los routers del área 0 deberían usar autenticación MD5 con sus vecinos. Los routers en el área 23 deberían ser configurados para soportar autenticación en texto plano con sus vecinos. Todas las claves deben ser configuradas como “cisco”. 4. Los routers del área 45 están limitados en su capacidad y no deberían recibir rutas de redes externas al dominio OSPF. Estos routers deberían alcanzar la red externa usando una ruta por defecto la cual no puede ser configurada estáticamente. 5. Los routers del área 23 no deben recibir ningún LSA tipo 3, 4 o 5 del resto de la red OSPF. Estos routers deberían alcanzar la red externa usando una ruta por defecto con un costo inicial OSPF de 100. 6. Cuando se complete el ejercicio, todos los routers deberían poder hacer ping a cada ruta en la tabla de enrutamiento OSPF. 2. DESARROLLO:

Upload: arielgonzalesvargas

Post on 05-Dec-2015

251 views

Category:

Documents


3 download

DESCRIPTION

un peque;o informe de redes ospf en GNS3

TRANSCRIPT

Page 1: redes ospf Con GNS3

1. OBJETIVOS:

1. Configurar OSPF básico para el esquema de red mostrado. Publicar todas las redes conectadas a cada router en OSPF usando el método más simple disponible. Para inyectar redes externas en el dominio OSPF, redistribuir las rutas estáticas en R1. Estas rutas deberían ser marcadas como tipo E1.

2. OSPF nunca debería formar relaciones de vecindario en cualquier interfaz donde otros routers OSPF no existen (como se muestra en el diagrama).

3. Todos los routers del área 0 deberían usar autenticación MD5 con sus vecinos. Los routers en el área 23 deberían ser configurados para soportar autenticación en texto plano con sus vecinos. Todas las claves deben ser configuradas como “cisco”.

4. Los routers del área 45 están limitados en su capacidad y no deberían recibir rutas de redes externas al dominio OSPF. Estos routers deberían alcanzar la red externa usando una ruta por defecto la cual no puede ser configurada estáticamente.

5. Los routers del área 23 no deben recibir ningún LSA tipo 3, 4 o 5 del resto de la red OSPF. Estos routers deberían alcanzar la red externa usando una ruta por defecto con un costo inicial OSPF de 100.

6. Cuando se complete el ejercicio, todos los routers deberían poder hacer ping a cada ruta en la tabla de enrutamiento OSPF.

2. DESARROLLO:

Page 2: redes ospf Con GNS3

Objetivos:

1. Configurar OSPF básico para el esquema de red mostrado. Publicar todas las redes conectadas a cada router en OSPF usando el método más simple disponible. Para inyectar redes externas en el dominio OSPF, redistribuir las rutas estáticas en R1. Estas rutas deberían ser marcadas como tipo E1.

CONFIGUARACION DE INTERFACE PARA CADA AREA

AREA 0

R1#configure terminalR1(config)#interface fastEthernet 0/0R1(config-if)#ip address 10.100.1.1 255.255.255.0R1(config-if)#no shutdownR1(config-if)#exitR1(config)#exitR1#R2#configure terminalR2(config)#interface fastEthernet 0/0R2(config-if)#ip address 10.100.1.2 255.255.255.0R2(config-if)#no shutdownR2(config-if)#exitR2(config)#exitR2#

R4#configure terminalR4(config)#interface fastEthernet 0/0R4(config-if)#ip address 10.100.1.4 255.255.255.0R4(config-if)#no shutdownR4(config-if)#exitR4(config)#exitR4#

R6#configure terminalR6(config)#interface fastEthernet 0/0R6(config-if)#ip address 10.100.1.6 255.255.255.0R6(config-if)#no shutdownR6(config-if)#exit

Page 3: redes ospf Con GNS3

R6(config)#exitR6#

AREA 23

R2#configure terminalR2(config)#interface serial 0/0R2(config-if)#ip address 10.23.1.2 255.255.255.0R2(config-if)# bandwidth 500R2(config-if)# clock rate 500000R2(config-if)#no shutdownR2(config-if)#exitR2(config)#exitR2#

R3#configure terminalR3(config)#interface serial 0/0R3(config-if)#ip address 10.23.1.3 255.255.255.0R3(config-if)# bandwidth 500R3(config-if)# clock rate 500000R3(config-if)#no shutdownR3(config-if)#exitR3(config)#exitR3#

CREACION DE LAS INRTEFACES LOOPBACK

R3#configure terminalR3(config)#interface loopback 0R3(config-if)# ip address 172.30.0.1 255.255.255.0R3(config)#interface loopback 1R3(config-if)# ip address 172.30.1.1 255.255.255.0R3(config)#interface loopback 2R3(config-if)# ip address 172.30.2.1 255.255.255.0R3(config)#interface loopback 3R3(config-if)# ip address 172.30.3.0 255.255.255.0R3(config-if)#no shutdownR3(config-if)#exitR3(config)#exitR3#

Page 4: redes ospf Con GNS3

AREA 45

R4#configure terminalR4(config)#interface serial 0/0R4(config-if)#ip address 10.45.1.4 255.255.255.0R4(config-if)# bandwidth 500R4(config-if)# clock rate 500000R4(config-if)#no shutdownR4(config-if)#exitR4(config)#exitR4#

R5#configure terminalR5(config)#interface serial 0/0R5(config-if)#ip address 10.45.1.5 255.255.255.0R5(config-if)# bandwidth 500R5(config-if)# clock rate 500000R5(config-if)#no shutdownR5(config-if)#exitR5(config)#exitR5#

AREA 67

R6#configure terminalR6(config)#interface serial 0/0R6(config-if)#ip address 10.67.1.6 255.255.255.0R6(config-if)# bandwidth 500R6(config-if)# clock rate 500000R6(config-if)#no shutdownR6(config-if)#exitR6(config)#exitR6#

Page 5: redes ospf Con GNS3

R7#configure terminalR7(config)#interface serial 0/0R7(config-if)#ip address 10.67.1.7 255.255.255.0R7(config-if)# bandwidth 500R7(config-if)# clock rate 500000R7(config-if)#no shutdownR7(config-if)#exitR7(config)#exitR7#

AREA78

R7#configure terminalR7(config)#interface serial 0/1R7(config-if)#ip address 10.67.1.7 255.255.255.0R7(config-if)# bandwidth 500R7(config-if)# clock rate 500000R7(config-if)#no shutdownR7(config-if)#exitR7(config)#exitR7#

R8#configure terminalR8(config)#interface serial 0/0R8(config-if)#ip address 10.67.1.8 255.255.255.0R8(config-if)# bandwidth 500R8(config-if)# clock rate 500000R8(config-if)#no shutdownR8(config-if)#exitR8(config)#exitR8#

VERIFICACION DE LA RED

R3#ping 10.100.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.100.1.1, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 24/32/44 msR3#

R8#ping 10.45.1.5Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.10.10.10, timeout is 2 seconds:.....

Page 6: redes ospf Con GNS3

Success rate is 0 percent (0/5)R8#

NO EXISTE ENLACE ENTRE R8 Y EL RESTO DE LAS AREAS, FALTA ENLACE VIRTUAL

CONFIGURACION DE OSPF

R1#configure terminalR1(config)#router ospf 1R1(config-router)#router-id 1.1.1.1R1(config-router)# network 10.100.1.0 0.0.0.255 area 0R1(config-router)#exitR1(config)#exitR1#

R2#configure terminalR2(config)#router ospf 1R2(config-router)#router-id 2.2.2.2R2(config-router)# network 10.23.1.0 0.0.0.255 area 23R2(config-router)# network 10.100.1.0 0.0.0.255 area 0R2(config-router)#exitR2(config)#exitR2#

R3#configure terminalR3(config)#router ospf 1R3(config-router)#router-id 3.3.3.3R3(config-router)# network 10.23.1.0 0.0.0.255 area 23R3(config-router)#exitR3(config)#exitR3#

R4#configure terminalR4(config)#router ospf 1R4(config-router)#router-id 4.4.4.4R4(config-router)# network 10.45.1.0 0.0.0.255 area 45R4(config-router)# network 10.100.1.0 0.0.0.255 area 0R4(config-router)#exitR4(config)#exitR4#

R5#configure terminalR5(config)#router ospf 1R5(config-router)#router-id 5.5.5.5R5(config-router)# network 10.45.1.0 0.0.0.255 area 45R5(config-router)#exitR5(config)#exitR5#

R6#configure terminal

Page 7: redes ospf Con GNS3

R6(config)#router ospf 1R6(config-router)#router-id 6.6.6.6R6(config-router)# network 10.67.1.0 0.0.0.255 area 67R6(config-router)# network 10.100.1.0 0.0.0.255 area 0R6(config-router)#exitR6(config)#exitR6#

R7#configure terminalR7(config)#router ospf 1R7(config-router)#router-id 7.7.7.7R7(config-router)#area 67 virtual-link 6.6.6.6R7(config-router)# network 10.67.1.0 0.0.0.255 area 67R7(config-router)# network 10.78.1.0 0.0.0.255 area 78R7(config-router)#exitR7(config)#exitR7#

R8#configure terminalR8(config)#router ospf 1R8(config-router)#router-id 8.8.8.8R8(config-router)# network 10.78.1.0 0.0.0.255 area 78R8(config-router)#exitR8(config)#exitR8#VERIFICACION DE LA CONEXIÓN DEL ROUTER R8

R8#ping 10.45.1.5Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.100.1.1, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 24/32/44 msR8#

AREA EXTERNA

R1(config)#ip forward-protocol ndR1(config)#ip route 172.31.0.0 255.255.255.0 Null0R1(config)#ip route 172.31.1.0 255.255.255.0 Null0R1(config)#ip route 172.31.2.0 255.255.255.0 Null0R1(config)#ip route 172.31.3.0 255.255.255.0 Null0R1(config)#exitR1#

Creamos un enlace virtual para que R8 se comunique con los demás routers

Page 8: redes ospf Con GNS3

PARA REDISTRIBUIR LAS RUTAS ESTATICAS DEL ROUTER R1 SE REALIZA LO SIGUIENTE:

Hacemos un show ip route en R8 para ver las rutas E1

R8#show ip routeCodes: 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

Gateway of last resort is not set

10.0.0.0/24 is subnetted, 2 subnetsC 10.78.1.0 is directly connected, Serial0/0O IA 10.67.1.0 [110/128] via 10.78.1.7, 00:00:04, Serial0/0

Vemos que no se muestra las rutas E1 del router R1

Configurando en el router R1

R1#conf terR1(config)#router ospf 1R1(config-router)#redistribute static subnets metric 50 metric-type 1R1(config-router)#exitR1(config)#exitR1#

HACEMOS LA PRUEBA EN EL ROUTER R1 CON UN SHOW IP ROUTER

R8#SHow IP routeCodes: 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

Gateway of last resort is not set

172.31.0.0/24 is subnetted, 4 subnetsO E1 172.31.3.0 [110/188] via 10.78.1.7, 00:01:28, Serial0/0O E1 172.31.2.0 [110/188] via 10.78.1.7, 00:01:28, Serial0/0O E1 172.31.1.0 [110/188] via 10.78.1.7, 00:01:28, Serial0/0O E1 172.31.0.0 [110/188] via 10.78.1.7, 00:01:28, Serial0/0

Page 9: redes ospf Con GNS3

10.0.0.0/24 is subnetted, 5 subnetsO IA 10.23.1.0 [110/202] via 10.78.1.7, 00:07:36, Serial0/0O IA 10.45.1.0 [110/202] via 10.78.1.7, 00:07:26, Serial0/0C 10.78.1.0 is directly connected, Serial0/0O IA 10.67.1.0 [110/128] via 10.78.1.7, 00:08:09, Serial0/0O IA 10.100.1.0 [110/138] via 10.78.1.7, 00:07:55, Serial0/0R8#

2. OSPF nunca debería formar relaciones de vecindario en cualquier interfaz donde otros routers OSPF no existen (como se muestra en el diagrama).

HACEMO UN SHOW IP ROUTER EN EL ROUTER R1

CONFIGURANDO EN EL ROUTER R1 PARA QUE NO EXISTA RELACION DE VECINDAD

R1#configure terminalR1(config)#router ospf 1R1(config-router)#passive-interface defaultR1(config-router)#*Mar 1 00:12:33.359: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on FastEthernet0/0 from 2WAY to DOWN, Neighbor Down: Interface down or detached*Mar 1 00:12:33.359: %OSPF-5-ADJCHG: Process 1, Nbr 4.4.4.4 on FastEthernet0/0 from FULL to DOWN, Neighbor Down: Interface down or detached*Mar 1 00:12:33.359: %OSPF-5-ADJCHG: Process 1, Nbr 6.6.6.6 on FastEthernet0/0 from FULL to DOWN, Neighbor Down: Interface down or detachedR1(config-router)#^Z

Page 10: redes ospf Con GNS3

R1#

VERIFICAMO CON UN SHOW

3. Todos los routers del área 0 deberían usar autenticación MD5 con sus vecinos. Los routers en el área 23 deberían ser configurados para soportar autenticación en texto plano con sus vecinos. Todas las claves deben ser configuradas como “cisco”.

PARA EL AREA 0

CONFIGURAMOS EL ROUTER R1R1#configure terminalR1(config)#interface fastEthernet 0/0R1(config-if)#ip ospf authentication message-digestR1(config-if)#ip ospf message-digest-key 1 md5 ciscoR1(config-if)#exitR1#

VERIFICAMOS EL ROUTER R1R1#show ip ospf interfaceFastEthernet0/0 is up, line protocol is up Internet Address 10.100.1.1/24, Area 0 Process ID 1, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 10 Transmit Delay is 1 sec, State DR, Priority 1 Designated Router (ID) 1.1.1.1, Interface address 10.100.1.1 No backup designated router on this network Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5

Page 11: redes ospf Con GNS3

oob-resync timeout 40 Hello due in 00:00:02 Supports Link-local Signaling (LLS) Index 1/1, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 0, maximum is 1 Last flood scan time is 0 msec, maximum is 0 msec Neighbor Count is 0, Adjacent neighbor count is 0 Suppress hello for 0 neighbor(s) Message digest authentication enabled Youngest key id is 1

CONFIGURAMOS EL ROUTER R2R2#configure terminalR2(config)#interface fastEthernet 0/0R2(config-if)#ip ospf authentication message-digestR2(config-if)#ip ospf message-digest-key 1 md5 ciscoR2(config-if)#exitR2(config)#exitR2#

VERIFICAMOS EL ROUTER R2R2#show ip ospf interfaceFastEthernet0/0 is up, line protocol is up Internet Address 10.100.1.2/24, Area 0 Process ID 1, Router ID 2.2.2.2, Network Type BROADCAST, Cost: 10 Transmit Delay is 1 sec, State DR, Priority 1 Designated Router (ID) 2.2.2.2, Interface address 10.100.1.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:02 Supports Link-local Signaling (LLS) Index 1/2, flood queue length 0 Next 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 0, Adjacent neighbor count is 0 Suppress hello for 0 neighbor(s) Message digest authentication enabled Youngest key id is 1Serial0/0 is up, line protocol is up Internet Address 10.23.1.2/24, Area 23 Process ID 1, Router ID 2.2.2.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 oob-resync timeout 40 Hello due in 00:00:07 Supports Link-local Signaling (LLS) Index 1/1, flood queue length 0 Next 0x0(0)/0x0(0)

El router R1 utiliza autentificación 1 MD5

El router R2 utiliza autentificación 1 MD5

Page 12: redes ospf Con GNS3

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 3.3.3.3 Suppress hello for 0 neighbor(s)R2#

CONFIGURAMOS EL ROUTER R4R4#configure terminalR4(config)#interface fastEthernet 0/0R4(config-if)#ip ospf authentication message-digestR4(config-if)#ip ospf message-digest-key 1 md5 ciscoR4(config-if)#exitR4(config)#exitR4#

VERIFICAMOS EL ROUTER R4R4#show ip ospf interfaceFastEthernet0/0 is up, line protocol is up Internet Address 10.100.1.4/24, Area 0 Process ID 1, Router ID 4.4.4.4, Network Type BROADCAST, Cost: 10 Transmit Delay is 1 sec, State BDR, Priority 1 Designated Router (ID) 2.2.2.2, Interface address 10.100.1.2 Backup Designated router (ID) 4.4.4.4, Interface address 10.100.1.4 Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 Hello due in 00:00:03 Supports Link-local Signaling (LLS) Index 1/2, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 1, maximum is 1 Last flood scan time is 0 msec, maximum is 4 msec Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 2.2.2.2 (Designated Router) Suppress hello for 0 neighbor(s) Message digest authentication enabled Youngest key id is 1Serial0/0 is up, line protocol is up Internet Address 10.45.1.4/24, Area 45 Process ID 1, Router ID 4.4.4.4, 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 oob-resync timeout 40 Hello due in 00:00:00 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 1 Last flood scan time is 0 msec, maximum is 0 msec Neighbor Count is 0, Adjacent neighbor count is 0 Suppress hello for 0 neighbor(s)R4#

El router R4 utiliza autentificación 1 MD5

Page 13: redes ospf Con GNS3

CONFIGURAMOS EL ROUTER R6R6#configure terminalR6(config)#interface fastEthernet 0/0R6(config-if)#ip ospf authentication message-digestR6(config-if)#ip ospf message-digest-key 1 md5 ciscoR6(config-if)#exitR6(config)#exitR6#

VERIFICAMOS EL ROUTER R6R6#show ip ospf interfaceFastEthernet0/0 is up, line protocol is up Internet Address 10.100.1.6/24, Area 0 Process ID 1, Router ID 6.6.6.6, Network Type BROADCAST, Cost: 10 Transmit Delay is 1 sec, State DR, Priority 1 Designated Router (ID) 6.6.6.6, Interface address 10.100.1.6 Backup Designated router (ID) 4.4.4.4, Interface address 10.100.1.4 Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 Hello due in 00:00:09 Supports Link-local Signaling (LLS) Index 2/3, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 1, maximum is 11 Last flood scan time is 0 msec, maximum is 4 msec Neighbor Count is 2, Adjacent neighbor count is 2 Adjacent with neighbor 2.2.2.2 Adjacent with neighbor 4.4.4.4 (Backup Designated Router) Suppress hello for 0 neighbor(s) Message digest authentication enabled Youngest key id is 1OSPF_VL0 is up, line protocol is up Internet Address 10.67.1.6/24, Area 0 Process ID 1, Router ID 6.6.6.6, Network Type VIRTUAL_LINK, Cost: 64 Configured as demand circuit. Run as demand circuit. DoNotAge LSA allowed. Transmit Delay is 1 sec, State POINT_TO_POINT Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 Hello due in 00:00:02 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 3 Last flood scan time is 0 msec, maximum is 4 msec Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 7.7.7.7 (Hello suppressed) Suppress hello for 1 neighbor(s)Serial0/0 is up, line protocol is up Internet Address 10.67.1.6/24, Area 67

El router R6 utiliza autentificación 1 MD5

Page 14: redes ospf Con GNS3

Process ID 1, Router ID 6.6.6.6, 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 oob-resync timeout 40 Hello due in 00:00:06 Supports Link-local Signaling (LLS) Index 1/2, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 1, maximum is 7 Last flood scan time is 0 msec, maximum is 4 msec Neighbor Count is 1, Adjacent neighbor count is 1 Adjacent with neighbor 7.7.7.7 Suppress hello for 0 neighbor(s)

PARA EL AREA 23

CONFIGURAMOS EL ROUTER R2R2#configure terminalR2(config)#interface serial 0/0R2(config-if)#ip ospf authenticationR2(config-if)#ip ospf authentication-key ciscoR2(config-if)#exitR2#

VERIFICAMOS EL ROUTER R2R2#show ip ospf interfaceFastEthernet0/0 is up, line protocol is up Internet Address 10.100.1.2/24, Area 0 Process ID 1, Router ID 2.2.2.2, Network Type BROADCAST, Cost: 10 Transmit Delay is 1 sec, State DROTHER, Priority 1 Designated Router (ID) 6.6.6.6, Interface address 10.100.1.6 Backup Designated router (ID) 4.4.4.4, Interface address 10.100.1.4 Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 Hello due in 00:00:03 Supports Link-local Signaling (LLS) Index 1/2, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 1, maximum is 2 Last flood scan time is 0 msec, maximum is 4 msec Neighbor Count is 2, Adjacent neighbor count is 2 Adjacent with neighbor 4.4.4.4 (Backup Designated Router) Adjacent with neighbor 6.6.6.6 (Designated Router) Suppress hello for 0 neighbor(s)Serial0/0 is up, line protocol is up Internet Address 10.23.1.2/24, Area 23

Page 15: redes ospf Con GNS3

Process ID 1, Router ID 2.2.2.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 oob-resync timeout 40 Hello due in 00:00:06 Supports Link-local Signaling (LLS) Index 1/1, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 4, maximum is 4 Last flood scan time is 0 msec, maximum is 4 msec Neighbor Count is 0, Adjacent neighbor count is 0 Suppress hello for 0 neighbor(s) Simple password authentication enabled

CONFIGURAMOS EL ROUTER R3R3#configure terminalR3(config)#interface serial 0/0R3(config-if)#ip ospf authenticationR3(config-if)#ip ospf authentication-key ciscoR3(config-if)#exitR3(config)#exitR3#

VERIFICAMOS EL ROUTER R3

R3#show ip ospf interfaceSerial0/0 is up, line protocol is up Internet Address 10.23.1.3/24, Area 23 Process ID 1, Router ID 3.3.3.3, 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 oob-resync timeout 40 Hello due in 00:00:07 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 3 Last flood scan time is 0 msec, maximum is 0 msec Neighbor Count is 0, Adjacent neighbor count is 0 Suppress hello for 0 neighbor(s) Simple password authentication enabled

Autentificación en texto plano habilitada

Autentificación en texto plano habilitada

Page 16: redes ospf Con GNS3

4. Los routers del área 45 están limitados en su capacidad y no deberían recibir rutas de redes externas al dominio OSPF. Estos routers deberían alcanzar la red externa usando una ruta por defecto la cual no puede ser configurada estáticamente.

Verificamos el estado actual del router R5

R5#show ip routeCodes: 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

Gateway of last resort is not set

10.0.0.0/24 is subnetted, 4 subnetsC 10.45.1.0 is directly connected, Serial0/0O IA 10.78.1.0 [110/202] via 10.45.1.4, 00:00:00, Serial0/0O IA 10.67.1.0 [110/138] via 10.45.1.4, 00:00:00, Serial0/0O IA 10.100.1.0 [110/74] via 10.45.1.4, 00:00:33, Serial0/0

Configuramos R5 para que no reciba rutas externas

R5#configure terminalR5(config)#router ospf 1R5(config-router)#area 45 stubR5(config-router)#R5(config-router)#exitR5#

Verificando

R5#show ip routeCodes: 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

Page 17: redes ospf Con GNS3

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

Gateway of last resort is not set

10.0.0.0/24 is subnetted, 1 subnetsC 10.45.1.0 is directly connected, Serial0/0R5#

Verificamos el estado actual del router R4

R4#show ip routeCodes: 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

Gateway of last resort is not set

172.31.0.0/24 is subnetted, 4 subnetsO E1 172.31.3.0 [110/60] via 10.100.1.1, 00:01:40, FastEthernet0/0O E1 172.31.2.0 [110/60] via 10.100.1.1, 00:01:40, FastEthernet0/0O E1 172.31.1.0 [110/60] via 10.100.1.1, 00:01:40, FastEthernet0/0O E1 172.31.0.0 [110/60] via 10.100.1.1, 00:01:40, FastEthernet0/0 10.0.0.0/24 is subnetted, 5 subnetsO IA 10.23.1.0 [110/74] via 10.100.1.2, 00:01:40, FastEthernet0/0C 10.45.1.0 is directly connected, Serial0/0O IA 10.78.1.0 [110/138] via 10.100.1.6, 00:01:42, FastEthernet0/0O IA 10.67.1.0 [110/74] via 10.100.1.6, 00:01:42, FastEthernet0/0C 10.100.1.0 is directly connected, FastEthernet0/0R4#

Configurando para que no muestre rutas externas

R4#configure terminalR4(config)#router ospf 1R4(config-router)#area 45 stubR4(config-router)#exitR4(config)#exitR4# Verificando

R4#show ip routeCodes: 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

Page 18: redes ospf Con GNS3

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

Gateway of last resort is not set

10.0.0.0/24 is subnetted, 5 subnetsO IA 10.23.1.0 [110/210] via 10.100.1.2, 00:11:50, FastEthernet0/0C 10.45.1.0 is directly connected, Serial0/0O IA 10.78.1.0 [110/274] via 10.100.1.6, 00:11:50, FastEthernet0/0O IA 10.67.1.0 [110/210] via 10.100.1.6, 00:11:50, FastEthernet0/0C 10.100.1.0 is directly connected, FastEthernet0/0

5. Los routers del área 23 no deben recibir ningún LSA tipo 3, 4 o 5 del resto de la red OSPF. Estos routers deberían alcanzar la red externa usando una ruta por defecto con un costo inicial OSPF de 100.

Con figurando el router R3

R3#configure terminalR3(config)#router ospf 1R3(config-router)#area 23 stub no-summaryR3(config-router)#exitR3(config)#exitR3#

Verificando el estado actual de R3

R3#show ip routeCodes: 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

Gateway of last resort is not set

172.30.0.0/24 is subnetted, 4 subnetsC 172.30.2.0 is directly connected, Loopback2C 172.30.3.0 is directly connected, Loopback3C 172.30.0.0 is directly connected, Loopback0C 172.30.1.0 is directly connected, Loopback1 10.0.0.0/24 is subnetted, 1 subnetsC 10.23.1.0 is directly connected, Serial0/0R3#Configurando costo por defecto a 100Para R3

Page 19: redes ospf Con GNS3

R3#configure terminalEnter configuration commands, one per line. End with CNTL/Z.R3(config)#router ospf 1R3(config-router)#area 23 dR3(config-router)#area 23 default-cost 100R3(config-router)#exitR3(config)#exitR3#R3#show running-configrouter ospf 1 router-id 3.3.3.3 log-adjacency-changes area 23 default-cost 100network 10.23.1.0 0.0.0.255 area 23

Con figurando el router R2

R2#configure terminalR2(config)#router ospf 1R2(config-router)#area 23 stub no-summaryR2(config-router)#exitR2(config)#exit

Verificando el estado actual de R2

R2#show ip routeCodes: 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

Gateway of last resort is not set 10.0.0.0/24 is subnetted, 5 subnetsC 10.23.1.0 is directly connected, Serial0/0O IA 10.45.1.0 [110/74] via 10.100.1.4, 00:00:05, FastEthernet0/0O IA 10.78.1.0 [110/138] via 10.100.1.6, 00:00:07, FastEthernet0/0O IA 10.67.1.0 [110/74] via 10.100.1.6, 00:00:07, FastEthernet0/0C 10.100.1.0 is directly connected, FastEthernet0/0

Configurando costo por defecto a 100Para R2R2#configure terminalR2(config)#router ospf 1R2(config-router)#area 23 default-cost 100R2(config-router)#exitR2#

Page 20: redes ospf Con GNS3

R2#show runrouter ospf 1 router-id 2.2.2.2 log-adjacency-changes area 23 default-cost 100 network 10.23.1.0 0.0.0.255 area 23 network 10.100.1.0 0.0.0.255 area 0

6. Cuando se complete el ejercicio, todos los routers deberían poder hacer ping a cada ruta en la tabla de enrutamiento OSPF.

Para R8

R8#ping 10.23.1.0

Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.23.1.0, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/37/60 msR8#ping 10.23.1.3

Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.23.1.3, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 12/29/60 msR8#ping 10.23.1.2

Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.23.1.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 12/28/60 msR8#ping 172.30.0.0

Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.30.0.0, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 24/37/48 msR8#ping 10.45.1.5

Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.45.1.5, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 16/38/52 msR8#ping 10.45.1.4

Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.45.1.4, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 28/36/48 msR8#ping 10.67.1.6

Page 21: redes ospf Con GNS3

Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.67.1.6, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/12/16 msR8#

Para R5R5#ping 10.100.1.1

Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.100.1.1, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 12/32/68 msR5#ping 172.30.0.0

Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.30.0.0, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 12/28/48 msR5#ping 10.78.1.8

Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.78.1.8, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/36/56 msR5#

3. CONCLUSIONES:

Se pudo configurar OSPF básico para el esquema de red mostrado. Publicar todas las redes conectadas a cada router en OSPF usando el método más simple disponible. Para inyectar redes externas en el dominio OSPF, se redistribuyo las rutas estáticas en R1. Estas rutas se marcaron como tipo E1.

Se hizo que OSPF nunca formara relaciones de vecindario en cualquier interfaz donde otros routers OSPF no existan (como se muestra en el diagrama). Luego se debe deshacer la anterior configuración para que se pueda hacer ping entre todos los routers .

los routers del área 0 usan autenticación MD5 con sus vecinos. Los routers en el área 23 fueron configurados para soportar autenticación en texto plano con sus vecinos. Todas las claves fueron configuradas como “cisco”.

se realizó exitosamente y correctamente los objetivos propuestos

Page 22: redes ospf Con GNS3
Page 23: redes ospf Con GNS3

UNIVERSIDAD MAYOR DE SAN SIMÓN

FACULTAD DE CIENCIAS Y TECNOLOGÍA

CARRERA DE INGENIERÍA ELECTRÓNICA

LABORATORIO N°5

CONFIGURACION DE AREAS ESPECIALES OSPF

Materia: Com. de datos

Estudiante: Fabiola Chugar Mancilla

COCHABAMBA – BOLIVIA

Junio, 2014

Page 24: redes ospf Con GNS3