Documentos de Académico
Documentos de Profesional
Documentos de Cultura
ENRUTAMIENTO ESTTICO
CONFIGURACIN DE UNA RED CON ENRUTAMIENTO ESTTICO Y ACCESO REMOTO VIA TELNET
1.- ENUNCIADO
En la figura 1 se ilustra la red IP a ser implementada utilizando tablas de enrutamiento esttico. Observar que en los routers R1, R6 y R7 se deben configurar enrutamiento por defaul, debido a que las redes LAN conectadas a estos routers solo disponen de un enlace de salida a la Internet. Adems desde los routers de la backbone R2, R3 y R4, R5 deben de ingresar remotamente a los routers de cada red LAN (R1, R6 y R7) utilizando el comando TELNET, pero no viceversa. Para ingresar al router R1 utilizar el password cusco1 como contrasea de Telnet y considere como password lima1 como contrasea de consola y password arequipa1 como contrasea al modo privilegiado. Para ingresar al router R6 utilizar el password cusco6 como contrasea de Telnet y considere como password lima6 como contrasea de consola y password arequipa6 como contrasea al modo privilegiado. Para ingresar al router R7 utilizar el password cusco7 como contrasea de Telnet y considere como password lima7 como contrasea de consola y password arequipa7 como contrasea al modo privilegiado.
Figura 1
ENRUTAMIENTO ESTTICO
Para iniciar la configuracin de una interfaz, primero debe ingresar al modo de configuracin global desde el modo privilegiado con el comando: configure terminal Luego ingresar a cada interfaz con el comando: interface fastethernet <aqu ingresar el identificador de interfaz> Luego asignar la direccin IP y su mscara a la interfaz seleccionada con el comando: ip address <direccin IP de la interfaz> <mscara de la interfaz > Para finalizar con esta configuracin se debe activar la interfaz seleccionada con el comando: no shutdown A continuacin los comandos ingresado para configurar cada interfaz del router R1.
R1> enable R1# configure terminal R1(config)# interface fastethernet 0/0 R1(config-if)# ip address 200.1.1.1 255.255.255.0 R1(config-if)# no shutdown R1(config-if)#exit R1(config)# interface fastethernet 0/1 R1(config-if)# ip address 30.1.1.1 255.255.255.252 R1(config-if)# no shutdown R1(config-if)#exit
Configuracin del enrutamiento por default en el Router R1. Como el router R1 solo dispone de un enlace hacia la internet, es ptimo configurar enrutamiento por default; el comando es: ip route <prefijo de la red de destino> <mscara de la red de destino> <salto siguente> Para el router R1 corresponder: ip route 0.0.0.0 0.0.0.0 30.1.1.2 Los comandos ingresados desde la consola del router R1 son:
R1# configure terminal R1(config)# ip route 0.0.0.0 0.0.0.0 30.1.1.2 R1(config)# exit
ENRUTAMIENTO ESTTICO
Configuracin del TELNET en el Router R1 para que sea accesado desde otros routers de la backbone
R1# configure terminal R1(config)# line vty 0 4 R1(config-line)# password cusco1 R1(config-line)# login R1(config-line)# exit R1(config)# line console 0 R1(config-line)# password lima1 R1(config-line)# login R1(config-line)# exit R1(config)# enable secret arequipa1
Configuracin de Router R1
version 12.4 ! hostname R1 ! enable secret 5 $1$20GZ$YUPkXVws9zDG4CMPKevgl1 ! ip subnet-zero ! interface FastEthernet0/0 ip address 200.1.1.1 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 ip address 30.1.1.1 255.255.255.252 duplex auto speed auto ! ip classless ip route 0.0.0.0 0.0.0.0 30.1.1.2 no ip http server no ip http secure-server ! line con 0 password lima1 login stopbits 1 line aux 0 stopbits 1 line vty 0 4 password cusco1 login ! end
ENRUTAMIENTO ESTTICO
Segn la figura 1, el router R2 tiene habilitado tres interfaces fastethernet: 0/0, 0/1 y 1/0; con las direcciones IP 30.1.1.2, 30.1.1.5 y 30.1.1.13 respectivamente. A continuacin se indica los comandos ingresados en el router R2 para configurar estas tres interfaces.
R2# configure terminal R2(config)# interface fastethernet 0/0 R2(config-if)# ip address 30.1.1.2 255.255.255.252 R2(config-if)# no shutdown R2(config-if)#exit R2(config)# interface fastethernet 0/1 R2(config-if)# ip address 30.1.1.5 255.255.255.252 R2(config-if)# no shutdown R2(config-if)#exit R2(config)# interface fastethernet 1/0 R2(config-if)# ip address 30.1.1.13 255.255.255.252 R2(config-if)# no shutdown R2(config-if)#exit
Configuracin de la tabla de enrutamiento del Router R2 Desde el router R2 se acceder a cualquier punto de la red WAN y LAN; para ello, su tabla de enrutamiento contendr:
R2# configure terminal R2(config)# ip route 30.1.1.8 255.255.255.252 30.1.1.6 R2(config)# ip route 30.1.1.16 255.255.255.252 30.1.1.14 R2(config)# ip route 30.1.1.20 255.255.255.252 30.1.1.6 R2(config)# ip route 200.1.1.0 255.255.255.0 30.1.1.1 R2(config)# ip route 200.2.2.0 255.255.255.0 30.1.1.6 R2(config)# ip route 200.3.3.0 255.255.255.0 30.1.1.14 R2(config)# exit
ENRUTAMIENTO ESTTICO
Enrutamiento esttico
Router R3
ENRUTAMIENTO ESTTICO
Desde el router R3 se acceder a cualquier punto de la red WAN y LAN; para ello, su tabla de enrutamiento contendr:
R3# configure terminal R3(config)# ip route 30.1.1.0 255.255.255.252 30.1.1.5 R3(config)# ip route 30.1.1.12 255.255.255.252 30.1.1.5 R3(config)# ip route 30.1.1.16 255.255.255.252 30.1.1.5 R3(config)# ip route 30.1.1.20 255.255.255.252 30.1.1.10 R3(config)# ip route 200.1.1.0 255.255.255.0 30.1.1.5 R3(config)# ip route 200.2.2.0 255.255.255.0 30.1.1.10 R3(config)# ip route 200.3.3.0 255.255.255.0 30.1.1.5
Configuracin de Router R3
version 12.4 ! hostname R3 ! ip subnet-zero ! interface FastEthernet0/0 ip address 30.1.1.6 255.255.255.252 duplex auto speed auto ! interface FastEthernet0/1 ip address 30.1.1.9 255.255.255.252 duplex auto speed auto ! ip classless ip route 30.1.1.0 255.255.255.252 30.1.1.5 ip route 30.1.1.12 255.255.255.252 30.1.1.5 ip route 30.1.1.16 255.255.255.252 30.1.1.5 ip route 30.1.1.20 255.255.255.252 30.1.1.10 ip route 200.1.1.0 255.255.255.0 30.1.1.5 ip route 200.2.2.0 255.255.255.0 30.1.1.10 ip route 200.3.3.0 255.255.255.0 30.1.1.5 no ip http server no ip http secure-server ! end
Enrutamiento esttico
ENRUTAMIENTO ESTTICO
El router R4 tiene habilitado dos interfaces fastethernet: 0/0 y 0/1; con las direcciones IP 30.1.1.10 y 30.1.1.21 respectivamente; a configuracin se indica los comandos ingresados.
R4# configure terminal R4(config)# interface fastethernet 0/0 R4(config-if)# ip address 30.1.1.10 255.255.255.252 R4(config-if)# no shutdown R4(config-if)#exit R4(config)# interface fastethernet 0/1 R4(config-if)# ip address 30.1.1.21 255.255.255.252 R4(config-if)# no shutdown R4(config-if)#exit Configuracin de la tabla de enrutamiento del
Router R3
Desde el router R4 se acceder a cualquier punto de la red WAN y LAN; para ello, su tabla de enrutamiento contendr:
R4# configure terminal R4(config)# ip route 30.1.1.0 255.255.255.252 30.1.1.9 R4(config)# ip route 30.1.1.4 255.255.255.252 30.1.1.9 R4(config)# ip route 30.1.1.12 255.255.255.252 30.1.1.9 R4(config)# ip route 30.1.1.16 255.255.255.252 30.1.1.9 R4(config)# ip route 200.1.1.0 255.255.255.0 30.1.1.9 R4(config)# ip route 200.2.2.0 255.255.255.0 30.1.1.22 R4(config)# ip route 200.3.3.0 255.255.255.0 30.1.1.9
Configuracin de Router R4
version 12.4 ! hostname R4 ! ip subnet-zero ! interface FastEthernet0/0 ip address 30.1.1.10 255.255.255.252 duplex auto speed auto ! interface FastEthernet0/1 ip address 30.1.1.21 255.255.255.252 duplex auto speed auto ! ip classless ip route 30.1.1.0 255.255.255.252 30.1.1.9 ip route 30.1.1.4 255.255.255.252 30.1.1.9 ip route 30.1.1.12 255.255.255.252 30.1.1.9 ip route 30.1.1.16 255.255.255.252 30.1.1.9 ip route 200.1.1.0 255.255.255.0 30.1.1.9 ip route 200.2.2.0 255.255.255.0 30.1.1.22 ip route 200.3.3.0 255.255.255.0 30.1.1.9 no ip http server no ip http secure-server end
Enrutamiento esttico
ENRUTAMIENTO ESTTICO
El router R5 tiene habilitado dos interfaces fastethernet: 0/0 y 0/1; con las direcciones IP 30.1.1.17 y 30.1.1.14 respectivamente; a configuracin se indica los comandos ingresados.
R5# configure terminal R5(config)# interface fastethernet 0/0 R5(config-if)# ip address 30.1.1.17 255.255.255.252 R5(config-if)# no shutdown R5(config-if)#exit R5(config)# interface fastethernet 0/1 R5(config-if)# ip address 30.1.1.14 255.255.255.252 R5(config-if)# no shutdown R5(config-if)#exit Configuracin de la tabla de enrutamiento del
Router R3
Desde el router R5 se acceder a cualquier punto de la red WAN y LAN; para ello, su tabla de enrutamiento contendr:
R5# configure terminal R5(config)# ip route 30.1.1.0 255.255.255.252 30.1.1.13 R5(config)# ip route 30.1.1.4 255.255.255.252 30.1.1.13 R5(config)# ip route 30.1.1.8 255.255.255.252 30.1.1.13 R5(config)# ip route 30.1.1.20 255.255.255.252 30.1.1.13 R5(config)# ip route 200.1.1.0 255.255.255.0 30.1.1.13 R5(config)# ip route 200.2.2.0 255.255.255.0 30.1.1.13 R5(config)# ip route 200.3.3.0 255.255.255.0 30.1.1.18
Configuracin de Router R5
version 12.4 ! hostname R5 ! ip subnet-zero ! interface FastEthernet0/0 ip address 30.1.1.17 255.255.255.252 duplex auto speed auto ! interface FastEthernet0/1 ip address 30.1.1.14 255.255.255.252 duplex auto speed auto ! ip classless ip route 30.1.1.0 255.255.255.252 30.1.1.13 ip route 30.1.1.4 255.255.255.252 30.1.1.13 ip route 30.1.1.8 255.255.255.252 30.1.1.13 ip route 30.1.1.20 255.255.255.252 30.1.1.13 ip route 200.1.1.0 255.255.255.0 30.1.1.13 ip route 200.2.2.0 255.255.255.0 30.1.1.13 ip route 200.3.3.0 255.255.255.0 30.1.1.18 no ip http server no ip http secure-server end
Enrutamiento esttico
ENRUTAMIENTO ESTTICO
El router R6 tiene habilitado dos interfaces fastethernet: 0/0 y 0/1; con las direcciones IP 200.3.3.1 y 30.1.1.18 respectivamente; a configuracin se indica los comandos ingresados.
R6> enable R6# configure terminal R6(config)# interface fastethernet 0/0 R6(config-if)# ip address 200.3.3.1 255.255.255.0 R6(config-if)# no shutdown R6(config-if)#exit R6(config)# interface fastethernet 0/1 R6(config-if)# ip address 30.1.1.18 255.255.255.252 R6(config-if)# no shutdown R6(config-if)#exit
Configuracin del enrutamiento por default en el Router R6. Como el router R6 solo dispone de un enlace hacia la internet, es ptimo configurar enrutamiento por default; el comando es: ip route <prefijo de la red de destino> <mscara de la red de destino> <salto siguente> Para el router R6 corresponder: ip route 0.0.0.0 0.0.0.0 30.1.1.17 Los comandos ingresados desde la consola del router R6 son:
R6# configure terminal R6(config)# ip route 0.0.0.0 0.0.0.0 30.1.1.17 R6(config)# exit
Configuracin del TELNET en el Router R6 para que sea accesado desde otros routers de la backbone
R6# configure terminal R6(config)# line vty 0 4 R6(config-line)# password cusco6 R6(config-line)# login R6(config-line)# exit R6(config)# line console 0 R6(config-line)# password lima6 R6(config-line)# login R6(config-line)# exit R6(config)# enable secret arequipa6
ENRUTAMIENTO ESTTICO
ENRUTAMIENTO ESTTICO
El router R7 tiene habilitado dos interfaces fastethernet: 0/0 y 1/0; con las direcciones IP 200.2.2.1 y 30.1.1.22 respectivamente; a configuracin se indica los comandos ingresados.
R7> enable R7# configure terminal R7(config)# interface fastethernet 0/0 R7(config-if)# ip address 200.2.2.1 255.255.255.0 R7(config-if)# no shutdown R7(config-if)#exit R7(config)# interface fastethernet 1/0 R7(config-if)# ip address 30.1.1.22 255.255.255.252 R7(config-if)# no shutdown R7(config-if)#exit
Configuracin del enrutamiento por default en el Router R7. Como el router R7 solo dispone de un enlace hacia la internet, es ptimo configurar enrutamiento por default; el comando es: ip route <prefijo de la red de destino> <mscara de la red de destino> <salto siguente> Para el router R7 corresponder: ip route 0.0.0.0 0.0.0.0 30.1.1.21 Los comandos ingresados desde la consola del router R7 son:
R7# configure terminal R7(config)# ip route 0.0.0.0 0.0.0.0 30.1.1.21 R7(config)# exit
Configuracin del TELNET en el Router R7 para que sea accesado desde otros routers de la backbone
R7# configure terminal R7(config)# line vty 0 4 R7(config-line)# password cusco7 R7(config-line)# login R7(config-line)# exit R7(config)# line console 0 R7(config-line)# password lima7 R7(config-line)# login R7(config-line)# exit R7(config)# enable secret arequipa7
ENRUTAMIENTO ESTTICO
ENRUTAMIENTO ESTTICO
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 Gateway of last resort is 30.1.1.2 to network 0.0.0.0 C 200.1.1.0/24 is directly connected, FastEthernet0/0 30.0.0.0/30 is subnetted, 1 subnets C 30.1.1.0 is directly connected, FastEthernet0/1 S* 0.0.0.0/0 [1/0] via 30.1.1.2 R1#
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 Gateway of last resort is not set S S S 200.1.1.0/24 [1/0] via 30.1.1.1 200.2.2.0/24 [1/0] via 30.1.1.6 200.3.3.0/24 [1/0] via 30.1.1.14 30.0.0.0/30 is subnetted, 6 subnets S 30.1.1.20 [1/0] via 30.1.1.6 S 30.1.1.16 [1/0] via 30.1.1.14 C 30.1.1.12 is directly connected, FastEthernet1/0 S 30.1.1.8 [1/0] via 30.1.1.6 C 30.1.1.4 is directly connected, FastEthernet0/1 C 30.1.1.0 is directly connected, FastEthernet0/0 R2#
ENRUTAMIENTO ESTTICO
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 Gateway of last resort is not set S S S 200.1.1.0/24 [1/0] via 30.1.1.5 200.2.2.0/24 [1/0] via 30.1.1.10 200.3.3.0/24 [1/0] via 30.1.1.5 30.0.0.0/30 is subnetted, 6 subnets S 30.1.1.20 [1/0] via 30.1.1.10 S 30.1.1.16 [1/0] via 30.1.1.5 S 30.1.1.12 [1/0] via 30.1.1.5 C 30.1.1.8 is directly connected, FastEthernet0/1 C 30.1.1.4 is directly connected, FastEthernet0/0 S 30.1.1.0 [1/0] via 30.1.1.5 R3#
R4#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 Gateway of last resort is not set S S S 200.1.1.0/24 [1/0] via 30.1.1.9 200.2.2.0/24 [1/0] via 30.1.1.22 200.3.3.0/24 [1/0] via 30.1.1.9 30.0.0.0/30 is subnetted, 6 subnets C 30.1.1.20 is directly connected, FastEthernet0/1 S 30.1.1.16 [1/0] via 30.1.1.9 S 30.1.1.12 [1/0] via 30.1.1.9 C 30.1.1.8 is directly connected, FastEthernet0/0 S 30.1.1.4 [1/0] via 30.1.1.9 S 30.1.1.0 [1/0] via 30.1.1.9 R4#
ENRUTAMIENTO ESTTICO
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 Gateway of last resort is not set S S S 200.1.1.0/24 [1/0] via 30.1.1.13 200.2.2.0/24 [1/0] via 30.1.1.13 200.3.3.0/24 [1/0] via 30.1.1.18 30.0.0.0/30 is subnetted, 6 subnets S 30.1.1.20 [1/0] via 30.1.1.13 C 30.1.1.16 is directly connected, FastEthernet0/0 C 30.1.1.12 is directly connected, FastEthernet0/1 S 30.1.1.8 [1/0] via 30.1.1.13 S 30.1.1.4 [1/0] via 30.1.1.13 S 30.1.1.0 [1/0] via 30.1.1.13 R5# R6#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 Gateway of last resort is 30.1.1.17 to network 0.0.0.0 C 200.3.3.0/24 is directly connected, FastEthernet0/0 30.0.0.0/30 is subnetted, 1 subnets C 30.1.1.16 is directly connected, FastEthernet0/1 S* 0.0.0.0/0 [1/0] via 30.1.1.17 R6# R7#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 Gateway of last resort is 30.1.1.21 to network 0.0.0.0 C 200.2.2.0/24 is directly connected, FastEthernet0/0 30.0.0.0/30 is subnetted, 1 subnets C 30.1.1.20 is directly connected, FastEthernet1/0 S* 0.0.0.0/0 [1/0] via 30.1.1.21 R7#
PROFESOR DANIEL DAZ ATAUCURI ATAUCURI 10.- ANLISIS ENTRE 200.1.1.2 A 200.3.3.2
ENRUTAMIENTO ESTTICO
Utilizando el comando tracert analizamos la trayectoria seguida por los paquetes IP desde la PC 200.1.1.2 (VPCS[1]) hasta la PC 20.3.3.2 (VPCS[3]) y viceversa; en la figura 2 se muestra esta trayectoria seguida.
Figura 2
ddiaz1610@gmail.com / ddiaz@inictel-uni.edu.pe http://www.danieldiaza.com
Lima, Abril de 2012