practica switch jonathan fernandez

15
INSTITUTO POLITECNICO NACIONAL ESCUELA SUPERIOR DE CÓMPUTO ALUMNO: JONATHAN FERNANDEZ BENHUMEA REDES 1 PRACTICAS DE SWITCH PACKET TRACER

Upload: jonathan-fernandez

Post on 06-Apr-2015

247 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Practica Switch Jonathan Fernandez

INSTITUTO POLITECNICO NACIONAL

ESCUELA SUPERIOR DE CÓMPUTO

ALUMNO: JONATHAN FERNANDEZ BENHUMEA

REDES 1

PRACTICAS DE SWITCH PACKET TRACER

Page 2: Practica Switch Jonathan Fernandez

PRACTICA 1.

VERIFICACION DE LA CONFIGURACION POR DEFECTO DEL SWITCH

PASO1. ENTRAR EN MODO PRIVILEGIADO

Switch>enable

Switch#

PASO2. EXAMINAR EL ARCHIVO DE CONFIGURACION

Switch#show running-config Building configuration... Current configuration : 1009 bytes ! version 12.1 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname Switch ! ! ! interface FastEthernet0/1 ! interface FastEthernet0/2 ! interface FastEthernet0/3 ! interface FastEthernet0/4 ! interface FastEthernet0/5 ! interface FastEthernet0/6 ! interface FastEthernet0/7 ! interface FastEthernet0/8 !

Page 3: Practica Switch Jonathan Fernandez

interface FastEthernet0/9 ! interface FastEthernet0/10 ! interface FastEthernet0/11 ! interface FastEthernet0/12 ! interface FastEthernet0/13 ! interface FastEthernet0/14 ! interface FastEthernet0/15 ! interface FastEthernet0/16 ! interface FastEthernet0/17 ! interface FastEthernet0/18 ! interface FastEthernet0/19 ! interface FastEthernet0/20 ! interface FastEthernet0/21 ! interface FastEthernet0/22 ! interface FastEthernet0/23 ! interface FastEthernet0/24 ! interface GigabitEthernet1/1 ! interface GigabitEthernet1/2 ! interface Vlan1 no ip address shutdown ! ! line con 0 ! line vty 0 4

Page 4: Practica Switch Jonathan Fernandez

login line vty 5 15 login ! ! End B ¿CUANTAS INTERFACES ETHERNET O FAST ETHERNET TIENE EL SWITCH? 24 FASTETHERNET C ¿CUAL ES EL INTERVALO DE VALORES QUE SE MUESTRANPARA LAS LINEAS VTY? 0-4 Y DE 5-15 D EXAMINE EL CONTENIDO DE NVRAM DE LA SIGUIENTE MANERA Switch#show startup-config startup-config is not present E ¿POR QUE EMITE ESTA RESPUESTA EL SWITCH? LA RESPUESTA LA EMITE POR QUE AUN NO HAY NINGUNA CONFIGURACION DISPONIBLE EN LA MEMORIA INTERNA DEL SWITCH F EJECUTE EL SIGUIENTE COMANDO PARA MOSTRAR LA DIRECCION IP DEL SWITCH Switch#show ip interface VLAN 1 Vlan1 is administratively down, line protocol is down Hardware is CPU Interface, address is 00e0.b02e.8a14 (bia 00e0.b02e.8a14) MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set ARP type: ARPA, ARP Timeout 04:00:00 Last input 21:40:21, output never, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 1682 packets input, 530955 bytes, 0 no buffer Received 0 broadcasts (0 IP multicast) 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 563859 packets output, 0 bytes, 0 underruns 0 output errors, 23 interface resets 0 output buffer failures, 0 output buffers swapped out

Page 5: Practica Switch Jonathan Fernandez

¿TIENE EL SWITCH UNA IP ESTABLECIDA? POR EL MOMENTO NO TIENE UNA IP ¿CUAL ES LA DIRECCION MAC DE ESTA INTERFAZ VIRTUAL SE SWITCH? 00e0.b02e.8a14 ¿ESTA ACTIVADA ESTA INTERFAZ? NO AUN NO PASO 3 MOSTRAR INFORMACION ACERCA DEL IOS Switch# show versión ¿CUAL ES LA VERSION DEL IOS QUE EJECUTA EL SWITCH? IOS (tm) C2950 Software (C2950-I6Q4L2-M), Version 12.1 ¿CUAL ES L NOMBRE DEL ARCHIVO DE LA IMAGEN DEL SISTEMA? Image text-base: 0x80010000 ¿CUAL ES LA DIRECCION MAC DE ESTE SWITCH? 00E0.B02E.8A14 ¿ EJECUTA EL SWITCH LA VERSION MEJORADA LO CUAL SE INDICA ATRAVES DE LAS LETRAS “EA” EN L NOMBRE DEL ARCHIVO IOS? SI Version 12.1(22)EA4 PASO 4. EXAMINAR LAS INTERFACES FAST ETHERNET Switch#show interface fastethernet 0/4 ¿ESTA ACTIVADA O DESACTIVADA LA INTERFAZ? ESTA DESACTIVADA ¿QUE COSA PUEDE HACER QUE UNA INTERFAZ SE ACTIVE? CONECTAR ALGUNA TERMINAL A ESTA INTERFAZ DESACTIVADA ¿CUAL ES LA DIRECCION MAC DE LA INTERFAZ? 0060.3e15.e904 ¿CUAL ES LA CONFIGURACION DE VELOCIDAD Y DUPLEX DE LA INTERFAZ? Half-duplex, 100Mb/s PASO 5 EXAMINAR INFORMACION LA VLAN ¿CUAL ES EL NOMBRE DE LA VLAN? DEFAULT ¿CUALES SON LOS PUERTOS DE ESTA VLAN? TODOS LOS PUERTOS DE SWITCH ¿ESTA ACTIVADA LA VLAN1? SI ¿QUE TIPO DE VLAN ES LA VLAN POR DEFECTO?

Page 6: Practica Switch Jonathan Fernandez

PASO6. EXAMINAR LA MEMORIA FLASH Switch#DIR FLASH Directory of flash:/ 1 -rw- 3058048 <no date> c2950-i6q4l2-mz.121-22.EA4.bin 64016384 bytes total (60958336 bytes free) Switch#SHOW FLASH Directory of flash:/ 1 -rw- 3058048 <no date> c2950-i6q4l2-mz.121-22.EA4.bin 64016384 bytes total (60958336 bytes free) PASO 7. EXAMINAR EL ARCHIVO DE CONFIGURACION INICIAL Switch#show startup-config startup-config is not present ¿POR QUE APARECE ESE MENSAJE? POR QUE EN NINGUN MOMENTO SE A CONFIGURADO EL SWITCH COPIE LA SIGUIENTE INFORMACION EN LA NVRAM Switch#copy running-config starup-config CUAL ES LA INFORMACION QUE APARECE EN PANTALLA AHORA? Switch#show startup-config Using 947 bytes ! version 12.1 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname Switch ! ! ! interface FastEthernet0/1 ! interface FastEthernet0/2 ! interface FastEthernet0/3 ! interface FastEthernet0/4 ! interface FastEthernet0/5 ! interface FastEthernet0/6

Page 7: Practica Switch Jonathan Fernandez

! interface FastEthernet0/7 ! interface FastEthernet0/8 ! interface FastEthernet0/9 ! interface FastEthernet0/10 ! interface FastEthernet0/11 ! interface FastEthernet0/12 ! interface FastEthernet0/13 ! interface FastEthernet0/14 ! interface FastEthernet0/15 ! interface FastEthernet0/16 ! interface FastEthernet0/17 ! interface FastEthernet0/18 ! interface FastEthernet0/19 ! interface FastEthernet0/20 ! interface FastEthernet0/21 ! interface FastEthernet0/22 ! interface FastEthernet0/23 ! interface FastEthernet0/24 ! interface Vlan1 no ip address shutdown ! ! line con 0 ! line vty 0 4 login line vty 5 15 login ! ! End

SALIR DEL SWITCH CON EXIT

Page 8: Practica Switch Jonathan Fernandez

PRACTICA 2 CONFIGURACION BASICA DEL SWITCH.

1. ENTRAR EN MODO PRIVILEGIADO Switch>enable

Switch#

2. EXAMINAR LA CONFIGURACION ACTIVA DEL SWITCH Switch#show startup-config

¿CUANTAS INTERFACES ETHERNET O FAST ETHERNET TIENE EL SWITCH? 24 FASTETHERNET ¿CUAL ES EL INTERVALO DE VALORES QUE SE MUESTRANPARA LAS LINEAS VTY? 0-4 Y DE 5-15

3. ASIGANAR UN NOMBRE AL SWITCH Switch#CONFIGURE TERMINAL Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname ALSwitch ALSwitch(config)#exit %SYS-5-CONFIG_I: Configured from console by console ALSwitch#

4. EXAMINAR CONFIGURACION ACTUAL ALSwitch#SHOW RUNNING-CONFIG Building configuration... Current configuration : 949 bytes ! version 12.1 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname ALSwitch

¿MUESTRA ALGUNA CONTRASEÑA CONFIGURADA EN LAS LINEAS? NO ¿QUE MUESTRA LA CONFIGURACION COMO EL NOMBRE DE HOST EN ESTE SWITCH? MUESTRA EL NOMBRE CON EL CUAL LO CONFIGURAMOS ALSwitch

5. CONFIGURAR LAS CONTRASEÑAS DE ACCESO (CONTRASEÑA:CISCO) ALSwitch#CONFIGURE TERMINAL Enter configuration commands, one per line. End with CNTL/Z. ALSwitch(config)#LINE CON 0 ALSwitch(config-line)#PASSWORD CISCO ALSwitch(config-line)#LOGIN ALSwitch(config-line)#LINE VTY 0 15 ALSwitch(config-line)#PASSWORD CISCO ALSwitch(config-line)#LOGIN ALSwitch(config-line)#EXIT ALSwitch(config)#

Page 9: Practica Switch Jonathan Fernandez

6. CONFIGURAR CONTRASEÑAS EN MODOS DE COMANDO ESTABLEZCA ENBALE PASSWORD EN CISCO Y ENABLE SECRET PASSWORD EN CLASS. ALSwitch(config)#enable password level 15 cisco % Converting to a secret. Please use "enable secret" in the future. ALSwitch(config)#enable secret class ALSwitch(config)#

¿Cuál ES LA CONTRASEÑA QUE TIENE MAYOR PRIORIDAD CONTRASEÑA ENABLE O CONTRASEÑA ENABLE SECRET? ENABLE SECRET

7. CONFIGURAR LA CAPA 3 PARA TENER ACCESO AL SWITCH ALSwitch#CONFIGURE TERMINAL Enter configuration commands, one per line. End with CNTL/Z. ALSwitch(config)#INTERFACE VLAN 1 ALSwitch(config-if)#ip address 192.168.1.2 255.255.255.0 ALSwitch(config-if)#exit ALSwitch(config)# Establecer Gateway para switch ALSwitch(config)#ip default-gateway 192.168.1.1 ALSwitch(config)#exit %SYS-5-CONFIG_I: Configured from console by console ALSwitch#

8. VERIFICAR LOS PARAMETROS DE ADMINISTRACION DE LA VLAN ALSwitch#SHOW INTERFACE VLAN 1 Vlan1 is administratively down, line protocol is down Hardware is CPU Interface, address is 00e0.b02e.8a14 (bia 00e0.b02e.8a14) Internet address is 192.168.1.2/24 MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set ARP type: ARPA, ARP Timeout 04:00:00 Last input 21:40:21, output never, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: fifo Output queue: 0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 1682 packets input, 530955 bytes, 0 no buffer Received 0 broadcasts (0 IP multicast) 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored 563859 packets output, 0 bytes, 0 underruns 0 output errors, 23 interface resets 0 output buffer failures, 0 output buffers swapped out

¿CUAL ES EL ANCHO DE BANDA DE ESTA INTERFAZ? BW 100000 Kbit

Page 10: Practica Switch Jonathan Fernandez

¿CUALES SON LOS ESTADOS DE LA VLAN? Vlan1 is administratively down, line protocol is down

HABILITE LA INTERFAZ VIRTUAL CON EL COMANDO NO SHUTDOWN ALSwitch#CONFIGURE TERMINAL Enter configuration commands, one per line. End with CNTL/Z. ALSwitch(config)#INTERFA VLAN1 ALSwitch(config-if)#NO SHUTDOWN %LINK-5-CHANGED: Interface Vlan1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up ALSwitch(config-if)#%IP-4-DUPADDR: Duplicate address 192.168.1.2 on Vlan1, sourced by 00E0.8F59.9E64 ALSwitch# %SYS-5-CONFIG_I: Configured from console by console

9. GUARDAR LA CONFIGURACION ALSwitch#COPY RUNNING-CONFIG STARTUP-CONFIG Destination filename [startup-config]? Building configuration... [OK] ALSwitch#

10.EXAMINAR EL ARCHIVO DE CONFIGURACION INICIAL ALSwitch#COPY RUNNING-CONFIG STARTUP-CONFIG

¿QUE APARECE EN LA PANTALLA? Destination filename [startup-config]? Building configuration... [OK] ALSwitch#SHOW STARTUP-CONFIG Using 1099 bytes ! version 12.1 no service timestamps log datetime msec no service timestamps debug datetime msec no service password-encryption ! hostname ALSwitch ! enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1 ! ! ! interface FastEthernet0/1 ! interface FastEthernet0/2 ! interface FastEthernet0/3 ! interface FastEthernet0/4 !

Page 11: Practica Switch Jonathan Fernandez

interface FastEthernet0/5 ! interface FastEthernet0/6 ! interface FastEthernet0/7 ! interface FastEthernet0/8 ! interface FastEthernet0/9 ! interface FastEthernet0/10 ! interface FastEthernet0/11 ! interface FastEthernet0/12 ! interface FastEthernet0/13 ! interface FastEthernet0/14 ! interface FastEthernet0/15 ! interface FastEthernet0/16 ! interface FastEthernet0/17 ! interface FastEthernet0/18 ! interface FastEthernet0/19 ! interface FastEthernet0/20 ! interface FastEthernet0/21 ! interface FastEthernet0/22 ! interface FastEthernet0/23 ! interface FastEthernet0/24 ! interface Vlan1 ip address 192.168.1.2 255.255.255.0 ! ip default-gateway 192.168.1.1 ! ! line con 0 password CISCO login ! line vty 0 4 password CISCO login line vty 5 15 password CISCO login ! ! End

Page 12: Practica Switch Jonathan Fernandez

¿TODOS LOS CAMBIOS ESTAN GUARDADOS EN EL ARCHIVO? SI, SE PUEDE NOTAR EN LAS LINEAS DE IP, GATEWAY, PASSWORD

11. SALIR DEL SWITCH

Page 13: Practica Switch Jonathan Fernandez

PRACTICA3. ADMINISTRACION DE LA TABLA DE DIRECCIONES MAC

OBJETIVO: CREAR UNA CONFIGURACION BASICA EN EL SWITCH Y MANEJAR S

TABLA DE DIRECCIONES MAC

1. CONFIGURACION DEL SWITCH, ESTOS PASOS FUERON REALIZADOS

EN LA PRACTICA ANTERIOR (PRACTICA 2), DONDE CONFIGURAMOS IP

DE SWITCH, IP DE GATEWAY Y CONTRASEÑAS DE ACCESO

2. CONFIGURAR LOS HOST, O LAS TERMINALES ESTAS HAN SIDO

CONFIGURADAS CON ANTERIORIDAD, ASIGNANDO IP A NUESTROS

HOST DE MANERA QUE LA IP ENTRE EN EL RANGO DEL SWITCH

3. VERIFICAR CONECTIVIDAD, ESTO SE HARA HACIENDO UN PING DESDE

CUALQUIERA DE NUESTROS HOST HACIA EL SWITCH

4. ANOTE LAS DIRECCIONES MAC DE DOS DE NUESTROS HOST

PC1: 0030.A3B0.CB32

PC2: 00E0.8F59.9E64

5. DETERMINAR LAS DIRECCIONES MAC QUE EL SWITCH SE HA

APRENDIDO ALSwitch#show mac-address-table

Mac Address Table

-------------------------------------------

Vlan Mac Address Type Ports

---- ----------- -------- -----

1 0005.5ebe.6816 DYNAMIC Fa0/1

1 000a.4158.69cc DYNAMIC Fa0/2

1 000b.beee.9b70 DYNAMIC Fa0/2

1 0030.a371.a75e DYNAMIC Fa0/2

1 0030.a3b0.cb32 DYNAMIC Fa0/1

1 00e0.8f59.9e64 DYNAMIC Fa0/1

¿CUANTAS DIRECCIONES DINAMICAS HAY?

6

¿CUANTAS DIRECCIONES MAC HAY EN TOTAL?

6

¿Cuántas DIRECCIONES MAC HAY DEFINIDAS POR EL USUARIO?

2

¿LAS DIRECCIONES MAC CONCUERDAN CON LAS DEL HOST?

SI

Page 14: Practica Switch Jonathan Fernandez

6. DETERMINAR LA OPCIONES DEL COMANDO SHOW MAC TABLE

ALSwitch#show mac-address-table ?

dynamic dynamic entry type

interfaces interface entry type

static static entry type

<cr>

¿CUANTAS OPCIONES HAY DISPONIBLES PARA EL COMANDO show mac-address-

table ?

4 OPCIONES

¿MUESTRE SOLO LAS DIRECCIONES MAC QUE SE APRENDIERON DE FORMA

DINAMICA?

ALSwitch#show mac-address-table dynamic

Mac Address Table

-------------------------------------------

Vlan Mac Address Type Ports

---- ----------- -------- -----

1 0005.5ebe.6816 DYNAMIC Fa0/1

1 000a.4158.69cc DYNAMIC Fa0/2

1 000b.beee.9b70 DYNAMIC Fa0/2

1 0030.a371.a75e DYNAMIC Fa0/2

1 0030.a3b0.cb32 DYNAMIC Fa0/1

1 00e0.8f59.9e64 DYNAMIC Fa0/1

7. BORRAR LA TABLA DE DIRECCIONES MAC

ALSwitch#clear mac-address-table

ALSwitch#

8. VERIFICAR LOS RESULTADOS

Verificar si se obtuvieron efectos del borrado de las direcciones mac

ALSwitch#show mac-address-table

Mac Address Table

-------------------------------------------

Vlan Mac Address Type Ports

---- ----------- -------- -----

Se observa que no hay ninguna dirección mac y mcho menos dinamicas

Page 15: Practica Switch Jonathan Fernandez

9. DETERMINAR LAS OPCIONES DEL COMANDO CLEAR MAC ADDRESS

TABLE

ALSwitch#clear mac-address-table ?

dynamic dynamic entry type

<cr>

SOLO SE OBSERVAN DOS OPCIONES Y SE ENCUENTRA LA DE DIRECCIONES

DINAMICAS, ASI QE ESTO INDICA QUE LAS UNICAS MAC QUE SE PUEDEN ELIMINAR

DE LA TABLA SON LAS DINAMICAS

10.EXAMINAR NUEVAMENTE LA TABLA

ALSwitch#show mac-address-table

Mac Address Table

-------------------------------------------

Vlan Mac Address Type Ports

---- ----------- -------- -----

DESPUES DE HACER EL PING DESDE DOS DE NUESTROS HOST LA TABLA SE

COMPORTA DE LA SIGUIENTE MANERA.

ALSwitch#show mac-address-table

Mac Address Table

-------------------------------------------

Vlan Mac Address Type Ports

---- ----------- -------- -----

1 000a.4158.69cc DYNAMIC Fa0/2

1 00e0.8f59.9e64 DYNAMIC Fa0/1

ALSwitch#

11. SALIR DEL SWITCH

EXIT