You are on page 1of 10

S w i t c h d e C a p a 2 ------------------------------------------Crear una vlan Forma 1: switch#configure terminalswitch(config)#vlan 2switch(config-vlan)#name ssurswitch(config-vlan)#exitswitch(config)#exitswitch# Forma 2: swirch#vlan database Warning: It is recommended to configure VLAN

from config mode, as VLAN database mode isbeing deprecated. Please consult user documentation for configuring VTP/VLAN in configmode. switch(vlan)#vlan 2 name ssur VLAN 2 added:Name: ssur swirch(vlan)#exitSwirch# ssur es un ejemplo Eliminar Archivo vlan.dat Switch#dalete flash:vlan.dat Switch#show vlan ------------------------------------------Contraseas (enable consola vty y encriptado) switch#configure terminalSwitch(config)#enable secret ssur_1Switch(config)#Switch(config)#line console 0Switch(config-line)#password ssur_2Switch(config-line)#loginSwitch(configline)#exitSwitch(config)#Switch(config)#line vty 0 15Switch(configline)#password ssur_3Switch(config-line)#loginSwitch(configline)#exitSwitch(config)#service password-encryption ssur_1 , ssur_2 y ssur_3 son ejemplo Switch#show running-config ------------------------------------------Interface (trunk o access) y asociarlos a vlan Agregar a vlan 2 y dejarla como acceso Switch#configure terminalSwitch(config)#interface fastEthernet 0/1 piriwenho@hotmail.com1 Resumen CCNA 3 | Comandos http.telecossur.blogspot.com Switch(config-if)#switchport mode accessSwitch(config-if)#switchport access vlan 2Switch(config-if)#exitSwitch(config)#exit Dejarla Trunk Switch#configure terminalSwitch(config)#interface fastEthernet 0/1Switch(configif)#switchport mode trunkSwitch(config-if)#exitSwitch(config)#exit

Asignar interfaces por rango Switch(config)#interface range fastEthernet 0/1 - 5Switch(config-if-range)# Switch#show running-configSwitch#show interface trunkSwitch#show vlan ------------------------------------------Puerta de enlace por defecto switch#configure terminalSwitch(config)#ip default-gateway A.B.C.DSwitch(config)#exitSwitch# Switch#show running-config ------------------------------------------Vlan de administracin switch#configure terminalSwitch(config)#interface vlan 2Switch(config-if)#ip address 10.0.0.1 255.0.0.0Switch(config-if)#no shutdown Vlan 2, 10.0.0.1 y 255.0.0.0 son ejemplo Switch#show running-config ------------------------------------------Vlan nativa switch#configure terminalSwitch(config)#interface fastEthernet 0/5Switch(configif)#switchport mode trunkSwitch(config-if)#switchport trunk native vlan 2 Vlan 2 y F0/5 son ejemplo Switch#show interfaces fastEthernet 0/5 switchport ------------------------------------------VTY (virtual trunking protocol) Dominio (ej. inacap) Switch#configure terminal piriwenho@hotmail.com2 Resumen CCNA 3 | Comandos http.telecossur.blogspot.com Switch(config)#vtp domain inacap Modo client / server / transparent Switch(config)#vtp mode clientSwitch(config)#vtp mode serverSwitch(config)#vtp mode transparent Switch#show vtp status ------------------------------------------Spanning-tree Bridge ID Switch#configure terminalSwitch(config)#spanning-tree vlan 2 priority 4096 Ejemplo: vlan 2<0-61440> bridge priority in increments of 4096 Port ID Switch#configure terminalSwitch(config)#spanning-tree vlan 2 root primary Switch#show spanning-tree

------------------------------------------Direcciones MAC Configuracion MAC Statica Switch#configure terminalSwitch(config)#mac-address-table static 0000.0a00.1232 vlan 2interface fastEthernet 0/10000.0a00.1232, vlan 2, F0/1 son ejemplo Seguridad a los puertos Switch(config)#interface fastEthernet 0/1Switch(config-if)#switchport portsecuritySwitch(config-if)#switchport port-security maximum 1Switch(configif)#switchport port-security mac-address stickySwitch(config-if)#switchport portsecurity violation shutdownSwitch(config-if)# Eliminar configuracion MAC Statica Switch#configure terminalSwitch(config)#no mac-address-table static 0000.0a00.1232 vlan 2interface fastEthernet 0/1 Switch#show port-security interface fastEthernet 0/1Switch#sh mac-addresstableSwitch#sh mac-address-table static ------------------------------------------IP Snooping Switch#configure terminalSwitch(config)#ip dhcp snoopingSwitch(config)#interface fastEthernet 0/2Switch(config-if)#ip dhcp snooping trust piriwenho@hotmail.com3 Resumen CCNA 3 | Comandos http.telecossur.blogspot.com S olo en la puerta f0/2 (ejemplo) se puede lebantar un Server DHCP. ------------------------------------------SSH Switch#configure terminalSwitch(config)#hostname SSUR-1SSUR-1(config)#ip domanin-name ssurSSUR-1(config)#crypto key generate rsa SSUR-1(config)#ip ssh version 2SSUR-1(config)#line vty 0 15SSUR-1(configline)#tansport input ssh Switch#show ip sshSwitch#show ssh ------------------------------------------Recuperar contrasea en un switch (2950) Desconecte el switch de la corrienteConecte y presione el boton mode Espere suerte el boton

cuando los led parpadeeDebera aparecer lo siguiente:########### flash_initload_helperboot luego ejecutar lo siguiente switch:flash_initswitch:load_helperswitch:dir flash:/ El archivo de configuracion se llama " config.text " podemos eliminarlo y luego reiniciar . switch:delete flash:config.textswitch:boot#################### ------------------------------------------S w i t c h d e C a p a 3 / r o u t e r ------------------------------------------Switch capa 3 Por defecto estos switch vienen en funcin capa 2, se les debe activar el enrutamiento Switch#configure terminalSwitch(config)#ip routing Tambin se les debe activar el puerto para capa 3 Switch#configure terminalSwitch(config)#interface fastEthernet 0/1 piriwenho@hotmail.com4 Resumen CCNA 3 | Comandos http.telecossur.blogspot.com Switch(config-if)#no switchportSwitch(config-if)#ip address 10.0.0.1 255.0.0.0Switch(config-if)#no shutdownSwitch(config-if)#endF0/1, 10.0.0.1 y 255.0.0.0 son ejemplo ------------------------------------------Rip y Rip version 2 RIP Router#configure terminalRouter(config)#router ripRouter(config-router)#network A.B.C.D RIP version 2 Router#configure terminalRouter(config)#router ripRouter(config-router)#version 2Router(config-router)#network A.B.C.D router#show ip route ------------------------------------------Eigrp

Router#configure terminalRouter(config)#router eigrp <1-65535>Router(configrouter)#network A.B.C.D router#show ip route ------------------------------------------OSPF Router#configure terminalRouter(config)#router ospf <1-65535>Router(configrouter)#network A.B.C.D wildcard area <04294967295>Ejemplo:Router(config)#router ospf 1Router(config-router)#network 10.0.0.0 0.255.255.255 area 0 router#show ip route ------------------------------------------Ruta Estatica Forma 1: Router#configure terminalRouter(config)#ip route red destino mascara red siguiente saltoEjemplo:Router(config)#ip route 10.0.0.0 255.255.255.0 11.0.0.1 Forma 2: Router#configure terminalRouter(config)#ip route red destino mascara red interfaz salidaEjemplo:Router(config)#ip route 10.0.0.0 255.255.255.0 serial 0/1 piriwenho@hotmail.com5 Resumen CCNA 3 | Comandos http.telecossur.blogspot.com S w i t c h d e C a p a 2 ------------------------------------------Crear una vlan Forma 1: switch#configure terminalswitch(config)#vlan 2switch(config-vlan)#name ssurswitch(config-vlan)#exitswitch(config)#exitswitch# Forma 2: swirch#vlan database Warning: It is recommended to configure VLAN from config mode, as VLAN database mode isbeing deprecated. Please consult user documentation for configuring VTP/VLAN in configmode. switch(vlan)#vlan 2 name ssur VLAN 2 added:Name: ssur swirch(vlan)#exitSwirch# ssur es un ejemplo Eliminar Archivo vlan.dat Switch#dalete flash:vlan.dat Switch#show vlan

------------------------------------------Contraseas (enable consola vty y encriptado) switch#configure terminalSwitch(config)#enable secret ssur_1Switch(config)#Switch(config)#line console 0Switch(config-line)#password ssur_2Switch(config-line)#loginSwitch(configline)#exitSwitch(config)#Switch(config)#line vty 0 15Switch(configline)#password ssur_3Switch(config-line)#loginSwitch(configline)#exitSwitch(config)#service password-encryption ssur_1 , ssur_2 y ssur_3 son ejemplo Switch#show running-config ------------------------------------------Interface (trunk o access) y asociarlos a vlan Agregar a vlan 2 y dejarla como acceso Switch#configure terminalSwitch(config)#interface fastEthernet 0/1 piriwenho@hotmail.com1 Resumen CCNA 3 | Comandos http.telecossur.blogspot.com Switch(config-if)#switchport mode accessSwitch(config-if)#switchport access vlan 2Switch(config-if)#exitSwitch(config)#exit Dejarla Trunk Switch#configure terminalSwitch(config)#interface fastEthernet 0/1Switch(configif)#switchport mode trunkSwitch(config-if)#exitSwitch(config)#exit Asignar interfaces por rango Switch(config)#interface range fastEthernet 0/1 - 5Switch(config-if-range)# Switch#show running-configSwitch#show interface trunkSwitch#show vlan ------------------------------------------Puerta de enlace por defecto switch#configure terminalSwitch(config)#ip default-gateway A.B.C.DSwitch(config)#exitSwitch# Switch#show running-config ------------------------------------------Vlan de administracin switch#configure terminalSwitch(config)#interface vlan 2Switch(config-if)#ip address 10.0.0.1 255.0.0.0Switch(config-if)#no shutdown Vlan 2, 10.0.0.1 y 255.0.0.0 son ejemplo Switch#show running-config ------------------------------------------Vlan nativa

switch#configure terminalSwitch(config)#interface fastEthernet 0/5Switch(configif)#switchport mode trunkSwitch(config-if)#switchport trunk native vlan 2 Vlan 2 y F0/5 son ejemplo Switch#show interfaces fastEthernet 0/5 switchport ------------------------------------------VTY (virtual trunking protocol) Dominio (ej. inacap) Switch#configure terminal piriwenho@hotmail.com2 Resumen CCNA 3 | Comandos http.telecossur.blogspot.com Switch(config)#vtp domain inacap Modo client / server / transparent Switch(config)#vtp mode clientSwitch(config)#vtp mode serverSwitch(config)#vtp mode transparent Switch#show vtp status ------------------------------------------Spanning-tree Bridge ID Switch#configure terminalSwitch(config)#spanning-tree vlan 2 priority 4096 Ejemplo: vlan 2<0-61440> bridge priority in increments of 4096 Port ID Switch#configure terminalSwitch(config)#spanning-tree vlan 2 root primary Switch#show spanning-tree ------------------------------------------Direcciones MAC Configuracion MAC Statica Switch#configure terminalSwitch(config)#mac-address-table static 0000.0a00.1232 vlan 2interface fastEthernet 0/10000.0a00.1232, vlan 2, F0/1 son ejemplo Seguridad a los puertos Switch(config)#interface fastEthernet 0/1Switch(config-if)#switchport portsecuritySwitch(config-if)#switchport port-security maximum 1Switch(configif)#switchport port-security mac-address stickySwitch(config-if)#switchport portsecurity violation shutdownSwitch(config-if)# Eliminar configuracion MAC Statica Switch#configure terminalSwitch(config)#no mac-address-table static 0000.0a00.1232 vlan 2interface fastEthernet 0/1 Switch#show port-security interface fastEthernet 0/1Switch#sh mac-addresstableSwitch#sh mac-address-table static ------------------------------------------IP Snooping

Switch#configure terminalSwitch(config)#ip dhcp snoopingSwitch(config)#interface fastEthernet 0/2Switch(config-if)#ip dhcp snooping trust piriwenho@hotmail.com3 Resumen CCNA 3 | Comandos http.telecossur.blogspot.com S olo en la puerta f0/2 (ejemplo) se puede lebantar un Server DHCP. ------------------------------------------SSH Switch#configure terminalSwitch(config)#hostname SSUR-1SSUR-1(config)#ip domanin-name ssurSSUR-1(config)#crypto key generate rsa SSUR-1(config)#ip ssh version 2SSUR-1(config)#line vty 0 15SSUR-1(configline)#tansport input ssh Switch#show ip sshSwitch#show ssh ------------------------------------------Recuperar contrasea en un switch (2950) Desconecte el switch de la corrienteConecte y presione el boton mode Espere suerte el boton cuando los led parpadeeDebera aparecer lo siguiente:########### flash_initload_helperboot luego ejecutar lo siguiente switch:flash_initswitch:load_helperswitch:dir flash:/ El archivo de configuracion se llama " config.text " podemos eliminarlo y luego reiniciar . switch:delete flash:config.textswitch:boot#################### ------------------------------------------S w i t c h d e C a p a 3 / r o u t e r -------------------------------------------

Switch capa 3 Por defecto estos switch vienen en funcin capa 2, se les debe activar el enrutamiento Switch#configure terminalSwitch(config)#ip routing Tambin se les debe activar el puerto para capa 3 Switch#configure terminalSwitch(config)#interface fastEthernet 0/1 piriwenho@hotmail.com4 Resumen CCNA 3 | Comandos http.telecossur.blogspot.com Switch(config-if)#no switchportSwitch(config-if)#ip address 10.0.0.1 255.0.0.0Switch(config-if)#no shutdownSwitch(config-if)#endF0/1, 10.0.0.1 y 255.0.0.0 son ejemplo ------------------------------------------Rip y Rip version 2 RIP Router#configure terminalRouter(config)#router ripRouter(config-router)#network A.B.C.D RIP version 2 Router#configure terminalRouter(config)#router ripRouter(config-router)#version 2Router(config-router)#network A.B.C.D router#show ip route ------------------------------------------Eigrp Router#configure terminalRouter(config)#router eigrp <1-65535>Router(configrouter)#network A.B.C.D router#show ip route ------------------------------------------OSPF Router#configure terminalRouter(config)#router ospf <1-65535>Router(configrouter)#network A.B.C.D wildcard area <04294967295>Ejemplo:Router(config)#router ospf 1Router(config-router)#network 10.0.0.0 0.255.255.255 area 0 router#show ip route ------------------------------------------Ruta Estatica Forma 1: Router#configure terminalRouter(config)#ip route red destino mascara red siguiente saltoEjemplo:Router(config)#ip route 10.0.0.0 255.255.255.0 11.0.0.1 Forma 2:

Router#configure terminalRouter(config)#ip route red destino mascara red interfaz salidaEjemplo:Router(config)#ip route 10.0.0.0 255.255.255.0 serial 0/1 piriwenho@hotmail.com5

You might also like