Actividad 01 – UT.nº10: UT.nº10: Configuración Básica de un Router
En este ejercicio se pide que subas 2 ficheros: Subir este mismo documento de Word con la contestación a las preguntas de los ● apartados en amarillo. Subir el fichero de Packet Tracer configurado como se indica en el ejercicio. ●
1)
Dado el esquema de red siguiente:
a)
Rellena la siguiente tabla: Dispositivo
Interfaz
Dirección IP
Máscara de Red
fa0/0
172.16.0.1
fa 0/1
192.168.0.1
fa0/0
172.16.0.2
fa0/1
192.168.1.1
fa0/0
172.16.0.3
fa0/1
192.168.2.1
255.255.255.248 255.255.255.0 255.255.255.248 255.255.255.0 255.255.255.248 255.255.255.0
PC0 PC1
f0 f0
192.168.0.2 192.168.1.2
PC2
f0
192.168.2.2
R0 R1 R2
255.255.255.0
255.255.255.0 255.255.255.0
Puerta de enlace por defecto
192.168.0.1 192.168.1.1 192.168.2.1
1
Actividad 01 – UT.nº10: Configuración Básica de un Router
b)
Configura la dirección IP y la puerta de enlace para cada PC. Por ejemplo para PC1
c)
Configura el nombre de cada Router y de cada switch según el dibujo. Por ejemplo para R1 sería: Router>enable %SYS-5-CONFIG_I: Configured from console by console Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R1 R1(config)#
d)
Configura las IPs de cada router. Por ejemplo para R1 sería así: R1>enable R1#configure terminal Enter configuration commands, one per line. End with CNTL/Z. R1(config)#interface fastethernet 0/0 R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#no shutdown Comprobarás que al hacerlo se enciende la luz de la interfaz fa0/0 de R1.
2
Actividad 01 – UT.nº10: Configuración Básica de un Router
e)
Comprueba que has configurado las IPs bien. Para ello ejecuta el comando show ip interface brief en los tres Routers y cópialo en el siguiente cuadro: R0#sho ip int br Interface IP-Address OK? Method Status Protocol FastEthernet0/0 172.16.0.1 YES manual up up FastEthernet0/1 192.168.0.1 YES manual up up Vlan1 unassigned YES unset administratively down down R0# R1#sh ip int br Interface IP-Address OK? Method Status Protocol FastEthernet0/0 172.16.0.2 YES manual up up FastEthernet0/1 192.168.1.1 YES manual up up Vlan1 unassigned YES unset administratively down down R1# R2#sh ip int br Interface IP-Address OK? Method Status Protocol FastEthernet0/0 172.16.0.3 YES manual up up FastEthernet0/1 192.168.2.1 YES manual up up Vlan1 unassigned YES unset administratively down down R2#
3
Actividad 01 – UT.nº10: Configuración Básica de un Router
f) Comprueba la tabla de encaminamiento en cada Router y muéstralo en el siguiente cuadro: R0#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 - E GP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static ro ute, o - ODR P - periodic downloaded static route Gateway of last resort is not set 172.16.0.0/29 is subnetted, 1 subnets C 172.16.0.0 is directly connected, FastEthernet0/0 C 192.168.0.0/24 is directly connected, FastEthernet0/1 R0# R1#sh ip ro 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 - E GP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static ro ute, o - ODR P - periodic downloaded static route Gateway of last resort is not set 172.16.0.0/24 is subnetted, 1 subnets C 172.16.0.0 is directly connected, FastEthernet0/0 C 192.168.1.0/24 is directly connected, FastEthernet0/1 R2#sh ip ro 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 - E GP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static ro ute, o - ODR P - periodic downloaded static route Gateway of last resort is not set 172.16.0.0/29 is subnetted, 1 subnets C 172.16.0.0 is directly connected, FastEthernet0/0 C 192.168.2.0/24 is directly connected, FastEthernet0/1
4
Actividad 01 – UT.nº10: Configuración Básica de un Router
5
Actividad 01 – UT.nº10: Configuración Básica de un Router
g)
Prueba a hacer un ping desde el R1 a PC1, desde R2 a PC2 y desde R3 a PC3. Muestra el resultado en el siguiente cuadro: R0#ping 192.168.0.1 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.0.1, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 5/7/16 ms R0# R1#ping 192.168.1.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds: .!!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/1 ms R1# R2#ping 192.168.2.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds: .!!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/1 ms R2#
h)
Ahora prueba a hacer ping desde el PC0 al PC1, desde el PC1 al P C2. ¿Porqué no funciona? Escribe una breve descripción de porque no funciona en el siguiente cuadro: Destino desconocido, podemos ver en la tabla de R0 que no existen entradas para dichas redes, es decir el ping llega al router pero este no sabe a donde enviarlo para que llegue a su destino, por lo tanto lo descarta e informa del problema al host. Copia los comandos que han permitido que funcione: En mi caso, he configurado las redes de forma manual dado que solo son 3, no obstante se podría haber configurado rip o cualquier otro protocolo de enrutamiento. R0(config)#ip route 192.168.1.0 255.255.255.0 172.16.0.2 R0(config)#ip route 192.168.2.0 255.255.255.0 172.16.0.3
6
Actividad 01 – UT.nº10: Configuración Básica de un Router
R2(config)#ip route 192.168.1.0 255.255.255.0 172.16.0.2 R2(config)#ip route 192.168.0.0 255.255.255.0 172.16.0.1 R1(config)#ip route 192.168.0.0 255.255.255.0 172.16.0.1 R1(config)#ip route 192.168.2.0 255.255.255.0 172.16.0.3
Muestra el resultado de las tablas de encaminamiento de los tres r outers: R0#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 - E GP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static r oute, o - ODR P - periodic downloaded static route Gateway of last resort is not set 172.16.0.0/29 is subnetted, 1 subnets C 172.16.0.0 is directly connected, FastEthernet0/0 C 192.168.0.0/24 is directly connected, FastEthernet0/1 S 192.168.1.0/24 [1/0] via 172.16.0.2 S 192.168.2.0/24 [1/0] via 172.16.0.3
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
C S C S
172.16.0.0/24 is subnetted, 1 subnets 172.16.0.0 is directly connected, FastEthernet0/0 192.168.0.0/24 [1/0] via 172.16.0.1 192.168.1.0/24 is directly connected, FastEthernet0/1 192.168.2.0/24 [1/0] via 172.16.0.3
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 - E GP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static r oute, o - ODR P - periodic downloaded static route
7
Actividad 01 – UT.nº10: Configuración Básica de un Router
Gateway of last resort is not set 172.16.0.0/29 is subnetted, 1 subnets C 172.16.0.0 is directly connected, FastEthernet0/0 S 192.168.0.0/24 [1/0] via 172.16.0.1 S 192.168.1.0/24 [1/0] via 172.16.0.2 C 192.168.2.0/24 is directly connected, FastEthernet0/1
PD: En la practica he utilizado otros nombres para los equipos, ya que por costumbre empiezo a contar desde 0 y no desde 1, espero que no sea problema ya que están resueltos todos los ejercicios y problemas según lo planteado, es únicamente por cuestión de comodidad a la hora de meter los comandos y del esquema mental de la red. Adicionalmente la running-config esta guardada en la startup-config para en caso de reinicio siga funcional la red.
8