Configuracion de Routers | Ip Address | Router (Computing)

Asignatura: Conectividad de Redes Titular: Ing.

Alberto Romay Guillen “Reporte unidad 4 y 5” (configuración de Routers y Switch) Instituto Tecnológico de Minatitlán Alumno: Denisse Aurora Sánchez Martínez

 Configuración de routers R1
hostname R1 interface FastEthernet0/0 ip address 10.10.50.2 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/0 ip address 10.10.10.2 255.255.255.0 clock rate 2000000 ! interface Serial0/1 ip address 10.10.20.2 255.255.255.0 clock rate 2000000 ! interface Serial0/2 ip address 10.10.30.2 255.255.255.0 clock rate 2000000 ! interface Serial0/3 ip address 10.10.40.2 255.255.255.0 clock rate 2000000 ! router rip version 2 network 10.0.0.0 !
ip classless no cdp run line con 0 line vty 0 4 login

R6
hostname R6 ! interface FastEthernet0/0 ip address 10.10.50.1 255.255.255.0 duplex auto speed auto ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/0 ip address 10.10.60.2 255.255.255.0 clock rate 2000000 ! interface Serial0/1 no ip address clock rate 2000000 shutdown ! router rip version 2 network 10.0.0.0 ! ip classless ! no cdp run ! line con 0 line vty 0 4 login end

R7
hostname R7 ! interface FastEthernet0/0 no ip address duplex auto speed auto shutdown ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/0 ip address 10.10.70.2 255.255.255.0 clock rate 2000000 ! interface Serial0/1 ip address 10.10.60.1 255.255.255.0 ! router rip version 2 network 10.0.0.0 ! ip classless ! no cdp run ! line con 0 line vty 0 4 login end

End

R2
hostname R2 interface FastEthernet0/0 no ip address duplex auto speed auto ! interface FastEthernet0/0.10 encapsulation dot1Q 10 ip address 192.168.10.254 255.255.255.0 ip access-group 10 in ip access-group 1 out ! interface FastEthernet0/0.20 encapsulation dot1Q 20 ip address 192.168.20.254 255.255.255.0 ip access-group 2 out ! interface FastEthernet0/0.30 encapsulation dot1Q 30 ip address 192.168.30.254 255.255.255.0 ip access-group 3 out ! interface FastEthernet0/0.40 encapsulation dot1Q 40 ip address 192.168.40.254 255.255.255.0 ip access-group 4 out ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/0 ip address 10.10.10.1 255.255.255.0 ! interface Serial0/1 no ip address clock rate 2000000 shutdown ! router rip version 2 network 10.0.0.0 network 192.168.10.0 network 192.168.20.0 network 192.168.30.0 network 192.168.40.0 ! ip classless ! access-list 1 deny 192.168.10.0 0.0.0.255 access-list 1 permit 192.168.11.0 0.0.0.255 access-list 1 permit 192.168.12.0 0.0.0.255 access-list 1 permit 192.168.13.0 0.0.0.255 access-list 1 permit 192.168.14.0 0.0.0.255 access-list 2 deny 192.168.20.0 0.0.0.255 access-list 2 permit 192.168.21.0 0.0.0.255 access-list 2 permit 192.168.22.0 0.0.0.255 access-list 2 permit 192.168.23.0 0.0.0.255 access-list 2 permit 192.168.24.0 0.0.0.255 access-list 3 deny 192.168.30.0 0.0.0.255 access-list 3 permit 192.168.31.0 0.0.0.255 access-list 3 permit 192.168.32.0 0.0.0.255 access-list 3 permit 192.168.33.0 0.0.0.255 access-list 3 permit 192.168.34.0 0.0.0.255 access-list 4 deny 192.168.40.0 0.0.0.255 access-list 4 permit 192.168.41.0 0.0.0.255 access-list 4 permit 192.168.42.0 0.0.0.255 access-list 4 permit 192.168.43.0 0.0.0.255 access-list 4 permit 192.168.44.0 0.0.0.255 ! line con 0 line vty 0 4 login ! End

R3
hostname R3 ! interface FastEthernet0/0 no ip address duplex auto speed auto ! interface FastEthernet0/0.11 encapsulation dot1Q 10 ip address 192.168.11.254 255.255.255.0 ip access-group 1 out ! interface FastEthernet0/0.21 encapsulation dot1Q 20 ip address 192.168.21.254 255.255.255.0 ip access-group 2 out ! interface FastEthernet0/0.31 encapsulation dot1Q 30 ip address 192.168.31.254 255.255.255.0 ip access-group 3 out ! interface FastEthernet0/0.41 encapsulation dot1Q 40 ip address 192.168.41.254 255.255.255.0 ip access-group 4 out ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/0 ip address 10.10.20.1 255.255.255.0 ! interface Serial0/1 no ip address clock rate 2000000 shutdown ! router rip version 2 network 10.0.0.0 network 192.168.11.0 network 192.168.21.0 network 192.168.31.0 network 192.168.41.0 ! ip classless ! access-list 1 deny 192.168.11.0 0.0.0.255 access-list 1 permit 192.168.10.0 0.0.0.255 access-list 1 permit 192.168.12.0 0.0.0.255 access-list 1 permit 192.168.13.0 0.0.0.255 access-list 1 permit 192.168.14.0 0.0.0.255 access-list 2 deny 192.168.21.0 0.0.0.255 access-list 2 permit 192.168.20.0 0.0.0.255 access-list 2 permit 192.168.22.0 0.0.0.255 access-list 2 permit 192.168.23.0 0.0.0.255 access-list 2 permit 192.168.24.0 0.0.0.255 access-list 3 deny 192.168.31.0 0.0.0.255 access-list 3 permit 192.168.30.0 0.0.0.255 access-list 3 permit 192.168.32.0 0.0.0.255 access-list 3 permit 192.168.33.0 0.0.0.255 access-list 3 permit 192.168.34.0 0.0.0.255 access-list 4 deny 192.168.41.0 0.0.0.255 access-list 4 permit 192.168.40.0 0.0.0.255 access-list 4 permit 192.168.42.0 0.0.0.255 access-list 4 permit 192.168.43.0 0.0.0.255 access-list 4 permit 192.168.44.0 0.0.0.255 ! ! line con 0 line vty 0 4 login ! ! ! end

R4
hostname R4 ! FastEthernet0/0 no ip address duplex auto speed auto ! interface FastEthernet0/0.12 encapsulation dot1Q 10 ip address 192.168.12.254 255.255.255.0 ip access-group 1 out ! interface FastEthernet0/0.13 no ip address ip access-group 1 out ! interface FastEthernet0/0.22 encapsulation dot1Q 20 ip address 192.168.22.254 255.255.255.0 ip access-group 2 out ! interface FastEthernet0/0.32 encapsulation dot1Q 30 ip address 192.168.32.254 255.255.255.0 ip access-group 3 out ! interface FastEthernet0/0.42 encapsulation dot1Q 40 ip address 192.168.42.254 255.255.255.0 ip access-group 4 out ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/0 ip address 10.10.30.1 255.255.255.0 ! interface Serial0/1 no ip address clock rate 2000000 shutdown ! router rip version 2 network 10.0.0.0 network 192.168.12.0 network 192.168.22.0 network 192.168.32.0 network 192.168.42.0 ! ip classless ! ! access-list 1 deny 192.168.12.0 0.0.0.255 access-list 1 permit 192.168.10.0 0.0.0.255 access-list 1 permit 192.168.11.0 0.0.0.255 access-list 1 permit 192.168.13.0 0.0.0.255 access-list 1 permit 192.168.14.0 0.0.0.255 access-list 2 deny 192.168.22.0 0.0.0.255 access-list 2 permit 192.168.20.0 0.0.0.255 access-list 2 permit 192.168.21.0 0.0.0.255 access-list 2 permit 192.168.23.0 0.0.0.255 access-list 2 permit 192.168.24.0 0.0.0.255 access-list 3 deny 192.168.32.0 0.0.0.255 access-list 3 permit 192.168.30.0 0.0.0.255 access-list 3 permit 192.168.31.0 0.0.0.255 access-list 3 permit 192.168.33.0 0.0.0.255 access-list 3 permit 192.168.34.0 0.0.0.255 access-list 4 deny 192.168.42.0 0.0.0.255 access-list 4 permit 192.168.40.0 0.0.0.255 access-list 4 permit 192.168.41.0 0.0.0.255 access-list 4 permit 192.168.43.0 0.0.0.255 access-list 4 permit 192.168.44.0 0.0.0.255 ! ! ! ! ! line con 0 line vty 0 4 login ! ! ! end

R5
hostname R5 ! interface FastEthernet0/0 no ip address duplex auto speed auto ! interface FastEthernet0/0.13 encapsulation dot1Q 10 ip address 192.168.13.254 255.255.255.0 ip access-group 1 out ! interface FastEthernet0/0.23 encapsulation dot1Q 20 ip address 192.168.23.254 255.255.255.0 ip access-group 2 out ! interface FastEthernet0/0.33 encapsulation dot1Q 30 ip address 192.168.33.254 255.255.255.0 ip access-group 3 out ! interface FastEthernet0/0.43 encapsulation dot1Q 40 ip address 192.168.43.254 255.255.255.0 ip access-group 4 out ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/0 ip address 10.10.40.1 255.255.255.0 ! interface Serial0/1 no ip address clock rate 2000000 shutdown ! router rip version 2 network 10.0.0.0 network 192.168.13.0 network 192.168.23.0 network 192.168.33.0 network 192.168.43.0 ! ip classless ! ! access-list 1 deny 192.168.13.0 0.0.0.255 access-list 1 permit 192.168.10.0 0.0.0.255 access-list 1 permit 192.168.11.0 0.0.0.255 access-list 1 permit 192.168.12.0 0.0.0.255 access-list 1 permit 192.168.14.0 0.0.0.255 access-list 2 deny 192.168.23.0 0.0.0.255 access-list 2 permit 192.168.20.0 0.0.0.255 access-list 2 permit 192.168.21.0 0.0.0.255 access-list 2 permit 192.168.22.0 0.0.0.255 access-list 2 permit 192.168.24.0 0.0.0.255 access-list 3 deny 192.168.33.0 0.0.0.255 access-list 3 permit 192.168.30.0 0.0.0.255 access-list 3 permit 192.168.31.0 0.0.0.255 access-list 3 permit 192.168.32.0 0.0.0.255 access-list 3 permit 192.168.34.0 0.0.0.255 access-list 4 deny 192.168.43.0 0.0.0.255 access-list 4 permit 192.168.40.0 0.0.0.255 access-list 4 permit 192.168.41.0 0.0.0.255 access-list 4 permit 192.168.42.0 0.0.0.255 access-list 4 permit 192.168.44.0 0.0.0.255 ! ! ! ! ! line con 0 line vty 0 4 login ! ! ! end

R8
hostname R8 ! interface FastEthernet0/0 no ip address duplex auto speed auto ! interface FastEthernet0/0.14 encapsulation dot1Q 10 ip address 192.168.14.254 255.255.255.0 ip access-group 1 out ! interface FastEthernet0/0.24 encapsulation dot1Q 20 ip address 192.168.24.254 255.255.255.0 ip access-group 2 out ! interface FastEthernet0/0.34 encapsulation dot1Q 30 ip address 192.168.34.254 255.255.255.0 ip access-group 3 out ! interface FastEthernet0/0.44 encapsulation dot1Q 40 ip address 192.168.44.254 255.255.255.0 ip access-group 4 out ! interface FastEthernet0/1 no ip address duplex auto speed auto shutdown ! interface Serial0/0 ip address 10.10.70.1 255.255.255.0 ! interface Serial0/1 no ip address clock rate 2000000 shutdown ! router rip version 2 network 10.0.0.0 network 192.168.14.0 network 192.168.24.0 network 192.168.34.0 network 192.168.44.0 ! ip classless ! ! access-list 1 deny 192.168.14.0 0.0.0.255 access-list 1 permit 192.168.10.0 0.0.0.255 access-list 1 permit 192.168.11.0 0.0.0.255 access-list 1 permit 192.168.12.0 0.0.0.255 access-list 1 permit 192.168.13.0 0.0.0.255 access-list 2 deny 192.168.24.0 0.0.0.255 access-list 2 permit 192.168.20.0 0.0.0.255 access-list 2 permit 192.168.21.0 0.0.0.255 access-list 2 permit 192.168.22.0 0.0.0.255 access-list 2 permit 192.168.23.0 0.0.0.255 access-list 3 deny 192.168.34.0 0.0.0.255 access-list 3 permit 192.168.30.0 0.0.0.255 access-list 3 permit 192.168.31.0 0.0.0.255 access-list 3 permit 192.168.32.0 0.0.0.255 access-list 3 permit 192.168.33.0 0.0.0.255 access-list 4 deny 192.168.44.0 0.0.0.255 access-list 4 permit 192.168.40.0 0.0.0.255 access-list 4 permit 192.168.41.0 0.0.0.255 access-list 4 permit 192.168.42.0 0.0.0.255 access-list 4 permit 192.168.43.0 0.0.0.255 ! ! ! ! ! line con 0 line vty 0 4 login ! ! ! end

 Configuración de switch S2
hostname S2 ! spanning-tree mode pvst ! interface FastEthernet0/1 switchport access vlan 10 switchport mode access ! interface FastEthernet0/2 switchport access vlan 20 switchport mode access ! interface FastEthernet0/3 switchport access vlan 30 switchport mode access ! interface FastEthernet0/4 switchport access vlan 40 switchport mode access interface FastEthernet0/24 switchport mode trunk S5 hostname S5 ! spanning-tree mode pvst ! interface FastEthernet0/1 switchport access vlan 10 switchport mode access ! interface FastEthernet0/2 switchport access vlan 20 switchport mode access ! interface FastEthernet0/3 switchport access vlan 30 switchport mode access ! interface FastEthernet0/4 switchport access vlan 40 switchport mode access interface FastEthernet0/24 switchport mode trunk

S3
hostname S3 ! spanning-tree mode pvst ! interface FastEthernet0/1 switchport access vlan 10 switchport mode access ! interface FastEthernet0/2 switchport access vlan 20 switchport mode access ! interface FastEthernet0/3 switchport access vlan 30 switchport mode access ! interface FastEthernet0/4 switchport access vlan 40 switchport mode access interface FastEthernet0/24 switchport mode trunk S8 hostname S8 ! spanning-tree mode pvst ! interface FastEthernet0/1 switchport access vlan 10 switchport mode access ! interface FastEthernet0/2 switchport access vlan 20 switchport mode access ! interface FastEthernet0/3 switchport access vlan 30 switchport mode access ! interface FastEthernet0/4 switchport access vlan 40 switchport mode access interface FastEthernet0/23 switchport mode trunk ! interface FastEthernet0/24 switchport trunk native vlan 99 switchport mode trunk

S4
hostname S4 ! spanning-tree mode pvst ! interface FastEthernet0/1 switchport access vlan 10 switchport mode access ! interface FastEthernet0/2 switchport access vlan 20 switchport mode access ! interface FastEthernet0/3 switchport access vlan 30 switchport mode access ! interface FastEthernet0/4 switchport access vlan 40 switchport mode access interface FastEthernet0/24 switchport mode trunk S9 hostname S9 ! ! spanning-tree mode pvst ! interface FastEthernet0/1 switchport access vlan 10 switchport mode access ! interface FastEthernet0/2 switchport access vlan 20 switchport mode access ! interface FastEthernet0/3 switchport access vlan 30 switchport mode access ! interface FastEthernet0/4 switchport access vlan 40 switchport mode access interface FastEthernet0/24 switchport mode trunk

PRINCIPALES PROBLEMAS:  El problema que yo tuve al principio fue al asignar direcciones ip en cada host debido a que no tenias que ser de una red diferente y se volvió un poco confuso, pero después de hacer un pequeño borrador de las direcciones ip fue mas fácil asignar si equivocarme.  Otro problema fue al publicar las redes y que todas se vieran aunque fueran de VLANS distintas es que todas las redes menos la VLAN que estaba conectada al R8 podía enviar o recibir ping a las redes de los otros routers y la solución fue cambiar de routers, la razón por la que no funcionaba con el 1841 no la tengo , pero al cambiarlos funciono.  Con las listas de acceso el problema que tuve es que no iba a trabajar en los routers con interfaces sino con sub-interfaces y era un poco confuso pero después entendí lo que en realidad se tenía que hacer.  Al crear la listas de acceso en el router que tenia las VLANS había muchas maneras de conseguir el objetivo (solo se comunicaran entre VLANS iguales), lo que hice fue negar la red a todos y luego permitirle el acceso a las redes de su misma VLAN.

Sign up to vote on this title
UsefulNot useful