You are on page 1of 13

Primero crearemos las vlan en el switch

witch#VLAN Database % Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode. Switch(vlan)#VLan 10 name vlan10 VLAN 10 added: Name: vlan10 Switch(vlan)#VLan 20 name vlan20 VLAN 20 added: Name: vlan20 Switch(vlan)#VLan 30 name vlan30 VLAN 30 added: Name: vlan30 Switch(vlan)#VLan 40 name SERVERS VLAN 40 added: Name: SERVERS

donde 10 es el numero de la vlan y vlan10 es el nombre

Asignacin de puertos

Switch#conf t Enter configuration commands, one per line. Switch(config)#int fa0/3 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10 Switch(config-if)#int fa0/4 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10 Switch(config-if)#int fa0/5 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10 Switch(config-if)#int fa0/6 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 20 Switch(config-if)#int fa0/7 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 20 Switch(config-if)#int fa0/8 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 20 Switch(config-if)#int fa0/9 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 30 Switch(config-if)#int fa0/10 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 30 Switch(config-if)#int fa0/11 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 30 Switch(config-if)#int fa0/12 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 40 Switch(config-if)#int fa0/13 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 40

End with CNTL/Z.

Asignacin del enlace trunk En el switch:


switch> Switch>enable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#int fa 0/1 Switch(config-if)#switchport mode trunk Switch(config-if)#switchport trunk allowed vlan all

Asignacin de respectivas sub interfaces a cada vlan en el router


Router>enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config-if)#int fa0/1.1 Router(config-subif)#encapsulation dot1Q 10 Router(config-subif)#ip add 192.168.10.1 255.255.255.0 Router(config-subif)#int fa0/1.2Router(config-subif)#encapsulation dot1Q 20 Router(config-subif)#ip add 192.168.20.1 255.255.255.0 Router(config-subif)#int fa0/1.3 Router(config-subif)#encapsulation dot1Q 30 Router(config-subif)#ip add 192.168.30.1 255.255.255.0 Router(config-subif)#int fa0/1.4 Router(config-subif)#encapsulation dot1Q 40 Router(config-subif)#ip add 192.168.40.1 255.255.255.0 Router(config-subif)#end

Verificacin de las sub interfaces utilizando el comando show run

Router#sh run Building configuration... Current configuration : 812 bytes ! version 12.4 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname Router ! ! ! interface FastEthernet0/0 no ip address duplex auto speed auto shutdown ! interface FastEthernet0/1 no ip address duplex auto speed auto ! interface FastEthernet0/1.1 encapsulation dot1Q 10 ip address 192.168.10.1 255.255.255.0 ! interface FastEthernet0/1.2 encapsulation dot1Q 20 ip address 192.168.20.1 255.255.255.0 ! interface FastEthernet0/1.3 encapsulation dot1Q 30 ip address 192.168.30.1 255.255.255.0 ! interface FastEthernet0/1.4 encapsulation dot1Q 40 ip address 192.168.40.1 255.255.255.0 ! interface Vlan1 no ip address shutdown

configuracin de DHCP en el router para cada vlan

Router#enable Router#configure terminal

Para vlan 10
Router(config)#ip dhcp pool vlan10 Router(dhcp-config)#network 192.168.10.0 255.255.255.0 Router(dhcp-config)#dns-server 192.168.40.100 Router(dhcp-config)#default-router 192.168.10.1

Para vlan 20
Router(dhcp-config)#ip dhcp pool vlan20 Router(dhcp-config)#network 192.168.20.0 255.255.255.0 Router(dhcp-config)#dns-server 192.168.40.100 Router(dhcp-config)#default-router 192.168.20.1

Para vlan 30
Router(dhcp-config)#ip dhcp pool vlan30 Router(dhcp-config)#default-router 192.168.30.1 Router(dhcp-config)#dns-server 192.168.40.100 Router(dhcp-config)#network 192.168.30.1 255.255.255.0

Para vlan 40
Router(dhcp-config)#ip dhcp pool vlanSERVERS Router(dhcp-config)#network 192.168.40.0 255.255.255.0 Router(dhcp-config)#default-router 192.168.40.1 Router(dhcp-config)#dns-server 192.168.40.100 Router(dhcp-config)#end

El siguiente paso es ir a cada PC Escritorio=>IP configuracin y seleccionar DHCP Cada pc debe recibir una respectiva IP, Gateway, mascara de subred y direccin del DNS server. Segn la vlan a la que corresponda.

La direccin del servidor DNS se la otorgaremos estticamente que como configuramos anteriormente ser la 192.168.40.100 255.255.255.0 Gateway 192.168.40.1

Configuracin de una pgina web Ingresamos al servidor DNS en la pestaa configuracin y luego en DNS El nombre ser index.html La direccin que le agregaremos es la que el servidor DCHP le otorg el servidor web as que iremos y la verificaremos en m caso es la ip es: Direccin 192.168.40.2 Despus de ingresar esta informacin le damos en agregar y serramos la ventana.

Ahora procederemos a verificar nuestra pgina web desde un pc Debe aparecer una informacin sobre cisco packtracert que es la que viene por default. PC5 => Escritorio =>Navegador Web En la barra de direccione ponemos index .html

Configuracin del TFTP Ahora sacamos un nuevo servidor y lo conectamos a el switch en la interface fastethernet 0/14 Y lo asemos miembro de la vlan 40 (vlanSERVERS)

Switch>enable Switch#confonfigure terminal Switch(config)#int fastEthernet 0/14 Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 40 Switch(config-if)#end

A hora verifiquemos que cada vlan tenga los puertos correspondientes


Switch#show vlan VLAN Name Status Ports ---- -------------------------------- --------- ------------------------------1 default active Fa0/2, Fa0/15, Fa0/16, Fa0/17 Fa0/18, Fa0/19, Fa0/20, Fa0/21 Fa0/22, Fa0/23, Fa0/24, Gig1/1 Gig1/2 10 vlan10 active Fa0/3, Fa0/4, Fa0/5 20 vlan20 active Fa0/6, Fa0/7, Fa0/8 30 vlan30 active Fa0/9, Fa0/10, Fa0/11 40 SERVERS active Fa0/12, Fa0/13, Fa0/14 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup VLAN ---1 10 20 30 Type ----enet enet enet enet SAID ---------100001 100010 100020 100030 MTU ----1500 1500 1500 1500 Parent -----RingNo -----BridgeNo -------Stp ---BrdgMode -------Trans1 -----0 0 0 0 Trans2 -----0 0 0 0

Ingresamos al router, agregamos el servicio y el archivo por copiar en este caso su nombre ser archivo Procederemos de la siguiente forma:
Router>enable Router#copy run tftp: Address or name of remote host []? 192.168.40.3 Destination filename [Router-confg]? archivo Writing running-config...!! [OK - 1265 bytes] 1265 bytes copied in 0.046 secs (27000 bytes/sec) Router#

Ya tendremos salvada la configuracin del router y podemos gravarla en otro router en caso de que el que est siendo usado se dae o falle. Ahora pasaremos la informacin a otro router para que este quede exactamente igual al router funcional, desconectamos el servidor TFTP y sacamos un nuevo router 1841 y los conectamos directamente con un cable cruzado en la interface fastethernet 0/1 Asignamos la direccin ip al router que coincida con la que ya tiene el servidor TFTP que tiene la ip 192.168.40.3 255.255.255.0 que le asigno el DHCP en este caso ser la siguiente:

Router#enable Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#interface FastEthernet0/1 Router(config-if)#ip address 192.168.40.1 255.255.255.0 Router(config-if)#

Luego procedemos a pasar la informacin para completar el router que ser la copia de seguridad:
Router#copy tftp star Address or name of remote host []? 192.168.40.3 Source filename []? archive Destination filename [startup-config]? Accessing tftp://192.168.40.3/archivo... Loading archivo from 192.168.40.3: ! [OK - 1265 bytes] 1265 bytes copied in 0.009 secs (140555 bytes/sec)

direccin del servidor TFTP nombre de la copia

Para verificar que el router cargo la configuracin correctamente lo reiniciamos y luego verificamos de la siguiente forma:
Router>enable Router#reload Proceed with reload? [confirm] %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command. System Bootstrap, Version 12.3(8r)T8, RELEASE SOFTWARE (fc1) Cisco 1841 (revision 5.0) with 114688K/16384K bytes of memory. Self decompressing the image : ########################################################################## [OK] Restricted Rights Legend Use, duplication, or disclosure by the Government is subject to restrictions as set forth in subparagraph (c) of the Commercial Computer Software - Restricted Rights clause at FAR sec. 52.227-19 and subparagraph (c) (1) (ii) of the Rights in Technical Data and Computer Software clause at DFARS sec. 252.227-7013. cisco Systems, Inc. 170 West Tasman Drive San Jose, California 95134-1706

Cisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2007 by Cisco Systems, Inc. Compiled Wed 18-Jul-07 04:52 by pt_team Image text-base: 0x60080608, data-base: 0x6270CD50

Cisco 1841 (revision 5.0) with 114688K/16384K bytes of memory. Processor board ID FTX0947Z18E M860 processor: part number 0, mask 49 2 FastEthernet/IEEE 802.3 interface(s) 191K bytes of NVRAM. 63488K bytes of ATA CompactFlash (Read/Write) Cisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2) Technical Support: http://www.cisco.com/techsupport Copyright (c) 1986-2007 by Cisco Systems, Inc. Compiled Wed 18-Jul-07 04:52 by pt_team

Press RETURN to get started!

%LINK-5-CHANGED: Interface Vlan1, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down %LINK-5-CHANGED: Interface FastEthernet0/1.1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.1, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/1.2, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.2, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/1.3, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.3, changed state to up %LINK-5-CHANGED: Interface FastEthernet0/1.4, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.4, changed state to up %LINK-5-CHANGED: Interface Vlan1, changed state to administratively down %SYS-5-CONFIG_I: Configured from console by console

Veamos la configuracin con el comando show running-config

Router>enable Router#show running-config Building configuration...

Current configuration : 1265 bytes ! version 12.4 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname Router ! ip dhcp pool vlan10 network 192.168.10.0 255.255.255.0 default-router 192.168.10.1 dns-server 192.168.40.100 ip dhcp pool vlan20 network 192.168.20.0 255.255.255.0 default-router 192.168.20.1 dns-server 192.168.40.100 ip dhcp pool vlan30 network 192.168.30.0 255.255.255.0 default-router 192.168.30.1 dns-server 192.168.40.100 ip dhcp pool vlanSERVERS network 192.168.40.0 255.255.255.0 default-router 192.168.40.1 dns-server 192.168.40.100 ! interface FastEthernet0/0 no ip address duplex auto speed auto shutdown ! interface FastEthernet0/1 no ip address duplex auto speed auto !

interface FastEthernet0/1.1 encapsulation dot1Q 10 ip address 192.168.10.1 255.255.255.0 ! interface FastEthernet0/1.2 encapsulation dot1Q 20 ip address 192.168.20.1 255.255.255.0 ! interface FastEthernet0/1.3 encapsulation dot1Q 30 ip address 192.168.30.1 255.255.255.0 ! interface FastEthernet0/1.4 encapsulation dot1Q 40 ip address 192.168.40.1 255.255.255.0 ! interface Vlan1 no ip address shutdown ! ip classless ! ! line con 0 line vty 0 4 login ! end

Ahora remplazaremos el router principal por el router copia para verificar pruebas de conectividad entre otras, el resultado debe ser totalmente igual que con el primer router. Al final tendremos la siguiente topologa con DHCP, DNS, WEB y TFTP con conectividad de cada vlan a los servidores pero no entre vlan:

Fin..