Vlan dhcp seridores dns web tftp
Upcoming SlideShare
Loading in...5
×
 

Vlan dhcp seridores dns web tftp

on

  • 4,723 views

 

Statistics

Views

Total Views
4,723
Views on SlideShare
4,723
Embed Views
0

Actions

Likes
9
Downloads
554
Comments
2

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft Word

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Vlan dhcp seridores dns web tftp Vlan dhcp seridores dns web tftp Document Transcript

  • Primero crearemos las vlan en el switch<br />witch#VLAN Database <br />% Warning: It is recommended to configure VLAN from config mode,<br /> as VLAN database mode is being deprecated. Please consult user<br /> documentation for configuring VTP/VLAN in config mode.<br />Switch(vlan)#VLan 10 name vlan10 donde 10 es el numero de la vlan y vlan10 es el nombre<br />VLAN 10 added:<br /> Name: vlan10<br />Switch(vlan)#VLan 20 name vlan20<br />VLAN 20 added:<br /> Name: vlan20<br />Switch(vlan)#VLan 30 name vlan30<br />VLAN 30 added:<br /> Name: vlan30<br />Switch(vlan)#VLan 40 name SERVERS<br />VLAN 40 added:<br />465391586995BY YOES105300BY YOES1053 Name: SERVERS<br />Asignación de puertos<br />Switch#conf t<br />Enter configuration commands, one per line. End with CNTL/Z.<br />Switch(config)#int fa0/3<br />Switch(config-if)#switchport mode access<br />Switch(config-if)#switchport access vlan 10<br />Switch(config-if)#int fa0/4<br />Switch(config-if)#switchport mode access <br />Switch(config-if)#switchport access vlan 10<br />Switch(config-if)#int fa0/5<br />Switch(config-if)#switchport mode access <br />Switch(config-if)#switchport access vlan 10<br />Switch(config-if)#int fa0/6<br />Switch(config-if)#switchport mode access <br />Switch(config-if)#switchport access vlan 20<br />Switch(config-if)#int fa0/7<br />Switch(config-if)#switchport mode access <br />Switch(config-if)#switchport access vlan 20<br />Switch(config-if)#int fa0/8<br />Switch(config-if)#switchport mode access <br />Switch(config-if)#switchport access vlan 20<br />Switch(config-if)#int fa0/9<br />Switch(config-if)#switchport mode access <br />Switch(config-if)#switchport access vlan 30<br />Switch(config-if)#int fa0/10<br />Switch(config-if)#switchport mode access <br />Switch(config-if)#switchport access vlan 30<br />Switch(config-if)#int fa0/11<br />Switch(config-if)#switchport mode access <br />Switch(config-if)#switchport access vlan 30<br />Switch(config-if)#int fa0/12<br />Switch(config-if)#switchport mode access <br />Switch(config-if)#switchport access vlan 40<br />Switch(config-if)#int fa0/13<br />4644390124460BY YOES105300BY YOES1053Switch(config-if)#switchport mode access <br />Switch(config-if)#switchport access vlan 40<br />Asignación del enlace trunk<br />En el switch:<br />switch><br />Switch>enable<br />Switch#configure terminal<br />Enter configuration commands, one per line. End with CNTL/Z.<br />Switch(config)#int fa 0/1<br />Switch(config-if)#switchport mode trunk<br />Switch(config-if)#switchport trunk allowed vlan all<br /> <br />Asignación de respectivas sub interfaces a cada vlan en el router<br />Router>enable <br />Router#configure terminal <br />Enter configuration commands, one per line. End with CNTL/Z.<br />Router(config-if)#int fa0/1.1<br />Router(config-subif)#encapsulation dot1Q 10<br />Router(config-subif)#ip add 192.168.10.1 255.255.255.0<br />Router(config-subif)#int fa0/1.2Router(config-subif)#encapsulation dot1Q 20<br />Router(config-subif)#ip add 192.168.20.1 255.255.255.0<br />Router(config-subif)#int fa0/1.3<br />Router(config-subif)#encapsulation dot1Q 30<br />Router(config-subif)#ip add 192.168.30.1 255.255.255.0<br />Router(config-subif)#int fa0/1.4<br />Router(config-subif)#encapsulation dot1Q 40<br />Router(config-subif)#ip add 192.168.40.1 255.255.255.0<br />Router(config-subif)#end<br />468249038735BY YOES105300BY YOES1053<br />Verificación de las sub interfaces utilizando el comando show run<br />Router#sh run<br />Building configuration...<br />Current configuration : 812 bytes<br />!<br />version 12.4<br />no service timestamps log datetime msec<br />no service timestamps debug datetime msec<br />no service password-encryption<br />!<br />hostname Router<br />!<br />!<br />!<br />interface FastEthernet0/0<br /> no ip address<br /> duplex auto<br /> speed auto<br /> shutdown<br />!<br />interface FastEthernet0/1<br /> no ip address<br /> duplex auto<br /> speed auto<br />!<br />interface FastEthernet0/1.1<br /> encapsulation dot1Q 10<br /> ip address 192.168.10.1 255.255.255.0<br />!<br />interface FastEthernet0/1.2<br /> encapsulation dot1Q 20<br /> ip address 192.168.20.1 255.255.255.0<br />!<br />interface FastEthernet0/1.3<br /> encapsulation dot1Q 30<br /> ip address 192.168.30.1 255.255.255.0<br />!<br />interface FastEthernet0/1.4<br /> encapsulation dot1Q 40<br /> ip address 192.168.40.1 255.255.255.0<br />!<br />interface Vlan1<br /> no ip address<br /> shutdown<br />462534042545BY YOES105300BY YOES1053<br />configuración de DHCP en el router para cada vlan<br />Router#enable<br />Router#configure terminal<br />Para vlan 10<br />Router(config)#ip dhcp pool vlan10<br />Router(dhcp-config)#network 192.168.10.0 255.255.255.0<br />Router(dhcp-config)#dns-server 192.168.40.100 <br />Router(dhcp-config)#default-router 192.168.10.1<br />Para vlan 20<br />Router(dhcp-config)#ip dhcp pool vlan20<br />Router(dhcp-config)#network 192.168.20.0 255.255.255.0<br />Router(dhcp-config)#dns-server 192.168.40.100 <br />Router(dhcp-config)#default-router 192.168.20.1<br />Para vlan 30<br />Router(dhcp-config)#ip dhcp pool vlan30<br />Router(dhcp-config)#default-router 192.168.30.1<br />Router(dhcp-config)#dns-server 192.168.40.100 <br />Router(dhcp-config)#network 192.168.30.1 255.255.255.0<br />Para vlan 40<br />Router(dhcp-config)#ip dhcp pool vlanSERVERS<br />Router(dhcp-config)#network 192.168.40.0 255.255.255.0<br />Router(dhcp-config)#default-router 192.168.40.1<br />Router(dhcp-config)#dns-server 192.168.40.100 <br />Router(dhcp-config)#end<br />El siguiente paso es ir a cada PC <br />Escritorio=>IP configuración y seleccionar DHCP<br />Cada pc debe recibir una respectiva IP, Gateway, mascara de subred y dirección del DNS server. Según la vlan a la que corresponda.<br />La dirección del servidor DNS se la otorgaremos estáticamente que como configuramos anteriormente será la 192.168.40.100 255.255.255.0 Gateway 192.168.40.1<br />463486564135BY YOES105300BY YOES1053<br />Configuración de una página web <br />Ingresamos al servidor DNS en la pestaña configuración y luego en DNS <br />El nombre será <br /> index.html<br />La dirección 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:<br />Dirección 192.168.40.2<br />Después de ingresar esta información le damos en agregar y serramos la ventana.<br />Ahora procederemos a verificar nuestra página web desde un pc <br />Debe aparecer una información sobre cisco packtracert que es la que viene por default.<br />PC5 => Escritorio =>Navegador Web <br />En la barra de direccione ponemos index .html<br />4701540166370BY YOES105300BY YOES1053<br />Configuración del TFTP <br />Ahora sacamos un nuevo servidor y lo conectamos a el switch en la interface fastethernet 0/14 <br />Y lo asemos miembro de la vlan 40 (vlanSERVERS)<br />Switch>enable<br />Switch#confonfigure terminal<br />Switch(config)#int fastEthernet 0/14<br />Switch(config-if)#switchport mode access <br />Switch(config-if)#switchport access vlan 40<br />Switch(config-if)#end<br />A hora verifiquemos que cada vlan tenga los puertos correspondientes<br />Switch#show vlan<br />VLAN Name Status Ports<br />---- -------------------------------- --------- -------------------------------<br />1 default active Fa0/2, Fa0/15, Fa0/16, Fa0/17<br /> Fa0/18, Fa0/19, Fa0/20, Fa0/21<br /> Fa0/22, Fa0/23, Fa0/24, Gig1/1<br /> Gig1/2<br />10 vlan10 active Fa0/3, Fa0/4, Fa0/5<br />20 vlan20 active Fa0/6, Fa0/7, Fa0/8<br />30 vlan30 active Fa0/9, Fa0/10, Fa0/11<br />40 SERVERS active Fa0/12, Fa0/13, Fa0/14<br />1002 fddi-default act/unsup <br />1003 token-ring-default act/unsup <br />1004 fddinet-default act/unsup <br />1005 trnet-default act/unsup <br />VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2<br />---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------<br />1 enet 100001 1500 - - - - - 0 0<br />10 enet 100010 1500 - - - - - 0 0<br />20 enet 100020 1500 - - - - - 0 0<br />30 enet 100030 1500 - - - - - 0 0<br />4615815134620BY YOES105300BY YOES1053<br />Ingresamos al router, agregamos el servicio y el archivo por copiar en este caso su nombre será archivo<br />Procederemos de la siguiente forma:<br />Router>enable<br />Router#copy run tftp: <br />Address or name of remote host []? 192.168.40.3 <br />Destination filename [Router-confg]? archivo<br />Writing running-config...!!<br />[OK - 1265 bytes]<br />1265 bytes copied in 0.046 secs (27000 bytes/sec)<br />Router#<br />Ya tendremos salvada la configuración del router y podemos gravarla en otro router en caso de que el que está siendo usado se dañe o falle.<br />Ahora pasaremos la información 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<br />Asignamos la dirección 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:<br />Router#enable <br />Router#configure terminal<br />Enter configuration commands, one per line. End with CNTL/Z.<br />Router(config)#interface FastEthernet0/1<br />Router(config-if)#ip address 192.168.40.1 255.255.255.0 <br />Router(config-if)#<br />Luego procedemos a pasar la información para completar el router que será la copia de seguridad:<br />Router#copy tftp star<br />Address or name of remote host []? 192.168.40.3 dirección del servidor TFTP<br />Source filename []? archive nombre de la copia<br />Destination filename [startup-config]? <br />471106569850BY YOES105300BY YOES1053<br />Accessing tftp://192.168.40.3/archivo...<br />Loading archivo from 192.168.40.3: !<br />[OK - 1265 bytes]<br />1265 bytes copied in 0.009 secs (140555 bytes/sec)<br />Para verificar que el router cargo la configuración correctamente lo reiniciamos y luego verificamos de la siguiente forma:<br />Router>enable<br />Router#reload<br />Proceed with reload? [confirm]<br />%SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload Command.<br />System Bootstrap, Version 12.3(8r)T8, RELEASE SOFTWARE (fc1)<br />Cisco 1841 (revision 5.0) with 114688K/16384K bytes of memory.<br />Self decompressing the image :<br />########################################################################## [OK]<br /> Restricted Rights Legend<br />Use, duplication, or disclosure by the Government is<br />subject to restrictions as set forth in subparagraph<br />(c) of the Commercial Computer Software - Restricted<br />Rights clause at FAR sec. 52.227-19 and subparagraph<br />(c) (1) (ii) of the Rights in Technical Data and Computer<br />Software clause at DFARS sec. 252.227-7013.<br /> cisco Systems, Inc.<br /> 170 West Tasman Drive<br /> San Jose, California 95134-1706<br />Cisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)<br />Technical Support: http://www.cisco.com/techsupport<br />Copyright (c) 1986-2007 by Cisco Systems, Inc.<br />Compiled Wed 18-Jul-07 04:52 by pt_team<br />Image text-base: 0x60080608, data-base: 0x6270CD50<br />Cisco 1841 (revision 5.0) with 114688K/16384K bytes of memory.<br />Processor board ID FTX0947Z18E<br />M860 processor: part number 0, mask 49<br />2 FastEthernet/IEEE 802.3 interface(s)<br />191K bytes of NVRAM.<br />472059076835BY YOES105300BY YOES105363488K bytes of ATA CompactFlash (Read/Write)<br />Cisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)<br />Technical Support: http://www.cisco.com/techsupport<br />Copyright (c) 1986-2007 by Cisco Systems, Inc.<br />Compiled Wed 18-Jul-07 04:52 by pt_team<br />Press RETURN to get started! <br />%LINK-5-CHANGED: Interface Vlan1, changed state to up<br />%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up<br />%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up<br />%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up<br />%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to administratively down<br />%LINK-5-CHANGED: Interface FastEthernet0/1.1, changed state to up<br />%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.1, changed state to up<br />%LINK-5-CHANGED: Interface FastEthernet0/1.2, changed state to up<br />%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.2, changed state to up<br />%LINK-5-CHANGED: Interface FastEthernet0/1.3, changed state to up<br />%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.3, changed state to up<br />%LINK-5-CHANGED: Interface FastEthernet0/1.4, changed state to up<br />%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1.4, changed state to up<br />%LINK-5-CHANGED: Interface Vlan1, changed state to administratively down<br />%SYS-5-CONFIG_I: Configured from console by console<br />4634865142240BY YOES105300BY YOES1053<br />Veamos la configuración con el comando show running-config<br />Router>enable<br />Router#show running-config<br />Building configuration...<br />Current configuration : 1265 bytes<br />!<br />version 12.4<br />no service timestamps log datetime msec<br />no service timestamps debug datetime msec<br />no service password-encryption<br />!<br />hostname Router<br />!<br />ip dhcp pool vlan10<br /> network 192.168.10.0 255.255.255.0<br /> default-router 192.168.10.1<br /> dns-server 192.168.40.100<br />ip dhcp pool vlan20<br /> network 192.168.20.0 255.255.255.0<br /> default-router 192.168.20.1<br /> dns-server 192.168.40.100<br />ip dhcp pool vlan30<br /> network 192.168.30.0 255.255.255.0<br /> default-router 192.168.30.1<br /> dns-server 192.168.40.100<br />ip dhcp pool vlanSERVERS<br /> network 192.168.40.0 255.255.255.0<br /> default-router 192.168.40.1<br /> dns-server 192.168.40.100<br />!<br />interface FastEthernet0/0<br /> no ip address<br /> duplex auto<br /> speed auto<br /> shutdown<br />4606290163830BY YOES105300BY YOES1053!<br />interface FastEthernet0/1<br /> no ip address<br /> duplex auto<br /> speed auto<br />!<br />interface FastEthernet0/1.1<br /> encapsulation dot1Q 10<br /> ip address 192.168.10.1 255.255.255.0<br />!<br />interface FastEthernet0/1.2<br /> encapsulation dot1Q 20<br /> ip address 192.168.20.1 255.255.255.0<br />!<br />interface FastEthernet0/1.3<br /> encapsulation dot1Q 30<br /> ip address 192.168.30.1 255.255.255.0<br />!<br />interface FastEthernet0/1.4<br /> encapsulation dot1Q 40<br /> ip address 192.168.40.1 255.255.255.0<br />!<br />interface Vlan1<br /> no ip address<br /> shutdown<br />!<br />ip classless<br />!<br />!<br />line con 0<br />line vty 0 4<br /> login<br />!<br />end<br />463486598425BY YOES105300BY YOES1053<br />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.<br />Al final tendremos la siguiente topología con DHCP, DNS, WEB y TFTP con conectividad de cada vlan a los servidores pero no entre vlan:<br />46729651111885BY YOES105300BY YOES1053Fin..<br />