vlan dhcp seridores dns web tftp

15
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 donde 10 es el numero de la vlan y vlan10 es el nombre 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 BY YOES105 3

Post on 13-Sep-2014

4.689 views

Category:

Education


4 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Vlan dhcp seridores dns web tftp

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 donde 10 es el numero de la vlan y vlan10 es el nombreVLAN 10 added: Name: vlan10

Switch(vlan)#VLan 20 name vlan20VLAN 20 added: Name: vlan20

Switch(vlan)#VLan 30 name vlan30VLAN 30 added: Name: vlan30

Switch(vlan)#VLan 40 name SERVERSVLAN 40 added: Name: SERVERS

BY YOES1053

Page 2: Vlan dhcp seridores dns web tftp

Asignación de puertos

Switch#conf tEnter configuration commands, one per line. End with CNTL/Z.

Switch(config)#int fa0/3Switch(config-if)#switchport mode accessSwitch(config-if)#switchport access vlan 10

Switch(config-if)#int fa0/4Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10

Switch(config-if)#int fa0/5Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 10

Switch(config-if)#int fa0/6Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 20

Switch(config-if)#int fa0/7Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 20

Switch(config-if)#int fa0/8Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 20

Switch(config-if)#int fa0/9Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 30

Switch(config-if)#int fa0/10Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 30

Switch(config-if)#int fa0/11Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 30

Switch(config-if)#int fa0/12Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 40

Switch(config-if)#int fa0/13Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 40

Asignación del enlace trunk BY YOES1053

Page 3: Vlan dhcp seridores dns web tftp

En el switch:

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

Asignación 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.1Router(config-subif)#encapsulation dot1Q 10Router(config-subif)#ip add 192.168.10.1 255.255.255.0

Router(config-subif)#int fa0/1.2Router(config-subif)#encapsulation dot1Q 20Router(config-subif)#ip add 192.168.20.1 255.255.255.0

Router(config-subif)#int fa0/1.3Router(config-subif)#encapsulation dot1Q 30Router(config-subif)#ip add 192.168.30.1 255.255.255.0

Router(config-subif)#int fa0/1.4Router(config-subif)#encapsulation dot1Q 40Router(config-subif)#ip add 192.168.40.1 255.255.255.0Router(config-subif)#end

Verificación de las sub interfaces utilizando el comando show runBY

YOES1053

Page 4: Vlan dhcp seridores dns web tftp

Router#sh runBuilding configuration...

Current configuration : 812 bytes!version 12.4no service timestamps log datetime msecno service timestamps debug datetime msecno 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

configuración de DHCP en el router para cada vlan BY YOES1053

Page 5: Vlan dhcp seridores dns web tftp

Router#enableRouter#configure terminal

Para vlan 10

Router(config)#ip dhcp pool vlan10Router(dhcp-config)#network 192.168.10.0 255.255.255.0Router(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 vlan20Router(dhcp-config)#network 192.168.20.0 255.255.255.0Router(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 vlan30Router(dhcp-config)#default-router 192.168.30.1Router(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 vlanSERVERSRouter(dhcp-config)#network 192.168.40.0 255.255.255.0Router(dhcp-config)#default-router 192.168.40.1Router(dhcp-config)#dns-server 192.168.40.100 Router(dhcp-config)#end

El siguiente paso es ir a cada PC Escritorio=>IP configuración y seleccionar DHCPCada pc debe recibir una respectiva IP, Gateway, mascara de subred y dirección del DNS server. Según la vlan a la que corresponda.

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

Configuración de una página web BY

YOES1053

Page 6: Vlan dhcp seridores dns web tftp

Ingresamos al servidor DNS en la pestaña configuración y luego en DNS El nombre será

index.htmlLa 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:

Dirección 192.168.40.2Después de ingresar esta información le damos en agregar y serramos la ventana.

Ahora procederemos a verificar nuestra página web desde un pc Debe aparecer una información sobre cisco packtracert que es la que viene por default.

PC5 => Escritorio =>Navegador Web

En la barra de direccione ponemos index .html

BY YOES1053

Page 7: Vlan dhcp seridores dns web tftp

Configuración 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>enableSwitch#confonfigure terminalSwitch(config)#int fastEthernet 0/14Switch(config-if)#switchport mode access Switch(config-if)#switchport access vlan 40Switch(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/210 vlan10 active Fa0/3, Fa0/4, Fa0/520 vlan20 active Fa0/6, Fa0/7, Fa0/830 vlan30 active Fa0/9, Fa0/10, Fa0/1140 SERVERS active Fa0/12, Fa0/13, Fa0/141002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup

VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------1 enet 100001 1500 - - - - - 0 010 enet 100010 1500 - - - - - 0 020 enet 100020 1500 - - - - - 0 030 enet 100030 1500 - - - - - 0 0

BY YOES1053

Page 8: Vlan dhcp seridores dns web tftp

Ingresamos al router, agregamos el servicio y el archivo por copiar en este caso su nombre será archivo

Procederemos de la siguiente forma:

Router>enableRouter#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 configuración del router y podemos gravarla en otro router en caso de que el que está siendo usado se dañe o falle.

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

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:

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

Luego procedemos a pasar la información para completar el router que será la copia de seguridad:

Router#copy tftp starAddress or name of remote host []? 192.168.40.3 dirección del servidor TFTPSource filename []? archive nombre de la copiaDestination 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)BY

YOES1053

Page 9: Vlan dhcp seridores dns web tftp

Para verificar que el router cargo la configuración correctamente lo reiniciamos y luego verificamos de la siguiente forma:

Router>enableRouter#reloadProceed 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 issubject to restrictions as set forth in subparagraph(c) of the Commercial Computer Software - RestrictedRights clause at FAR sec. 52.227-19 and subparagraph(c) (1) (ii) of the Rights in Technical Data and ComputerSoftware 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/techsupportCopyright (c) 1986-2007 by Cisco Systems, Inc.Compiled Wed 18-Jul-07 04:52 by pt_teamImage text-base: 0x60080608, data-base: 0x6270CD50

Cisco 1841 (revision 5.0) with 114688K/16384K bytes of memory.Processor board ID FTX0947Z18EM860 processor: part number 0, mask 492 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/techsupportCopyright (c) 1986-2007 by Cisco Systems, Inc.Compiled Wed 18-Jul-07 04:52 by pt_team

Press RETURN to get started!

BY YOES1053

Page 10: Vlan dhcp seridores dns web tftp

%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 configuración con el comando show running-config

BY YOES1053

Page 11: Vlan dhcp seridores dns web tftp

Router>enableRouter#show running-configBuilding configuration...

Current configuration : 1265 bytes!

version 12.4no service timestamps log datetime msecno service timestamps debug datetime msecno 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.100ip dhcp pool vlan20 network 192.168.20.0 255.255.255.0 default-router 192.168.20.1 dns-server 192.168.40.100ip dhcp pool vlan30 network 192.168.30.0 255.255.255.0 default-router 192.168.30.1 dns-server 192.168.40.100ip 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

BY YOES1053

Page 12: Vlan dhcp seridores dns web tftp

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 0line vty 0 4 login!end

BY YOES1053

Page 13: Vlan dhcp seridores dns web tftp

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 topología con DHCP, DNS, WEB y TFTP con conectividad de cada vlan a los servidores pero no entre vlan:

Fin..

BY YOES1053