Configuraciones Utilizadas en Switch Cisco

También podría gustarte

Está en la página 1de 5

Configuraciones utilizadas en Switch Cisco Como no hay primera sin segunda, y anteriormente pueden encontrar el pdf llamado Configuraciones

utilizadas en Router Cisco ahora os presento (para darle un toque internacional es el os presento) las configuraciones mas utilizadas en los Switch Cisco, veremos los modelos mas comunes, (1900 y 2950).

Con este comando vemos el archivo flash y con el show muestra informacin del sistema guardada en la flash del switch. Switch# dir flash: Switch# dir nvram: Switch#show flash Muestra las vlan existentes en el switch Switch#show vlan Creando Vlan y asociandola a un puerto en modo de acceso. Switch#vlan database Switch(vlan)#vlan [vlan_number] Switch(vlan)#exit Switch(config)#interface fastethernet 0/X Switch(config-if)#switchport access vlan vlan_number Eliminar una vlan Switch#vlan database Switch(vlan)#no vlan [vlan_number] Dejar un router en blanco, elimininando toda configuracin. Switch#delete flash:vlan.dat Switch#erase startup-config Switch#reload

Habilitando Interface web. Switch(config)# ip http port 80 Ver la tabla MAC: Switch#show mac-address-table (utilize ? para ver mas opciones) Switch#clear mac-address-table Asignar una mac estatica Switch(config)#mac-address-table static interface FastEthernet vlan Switch(config)#no mac-address-table static interface FastEthernet vlan

Material creado para lesand.cl por:

Seguridad de Puerto Switch(config)#interface fastETehernet 0/X Switch(config-if)#switchport port-security ? (salen las opciones) Limitar la cantidad de host por puerto 1900: Switch(config)#interface fastETehernet 0/2 Switch(config-if)#port secure mas-mac-count 1 2950: Switch(config)#interface fastETehernet 0/2 Switch(config-if)#switchport port-security maximum 1 Configuracion del Puerto que se desconecte cuando se produce una violacin de seguridad 2950: Switch(config-if)#switchport port-security violation shutdown 2900xl: Switch(config-if)#port security action shutdown

Poner Ip a la Vlan1 Catalyst 2950 Sw(config)#interface Vlan1 Sw(config-if)#ip address 192.168.1.2 255.255.255.0 Sw(config-if)#no shutdown Sw(config)# ip default-gateway 192.168.1.1 Catalyst 1900 Sw(config)#ip address 192.168.1.2 255.255.255.0 Sw(config)# ip default-gateway 192.168.1.1

Archivos de configuracion Sw# copy running-config startup-config 1900: Sw#copy nvram tftp://tftp server ip add/destination_filename 2950 Switch#copy tftp: flash: Address or name of remote host []? 10.0.0.3 Source filename []? cfg_swlesand Destination filename [cfg_swlesand]? 190.40.0.3 Accessing tftp://10.0.0.3/cfg_swlesand.... Cambiar Nombre Switch#conf t Lesand (config)#host Lesand

Material creado para lesand.cl por:

Configuracion de la velocidad Lesand(config)#interface fastethernet 0/9 Lesand(config-if)#duplex full Lesand(config-if)#speed 100

Crear el trunk del switch Lesand(config)#interface fastethernet 0/1 Lesand(config-if)#swicthport mode trunk Lesand(config-if)#end 2900: Lesand(config)#interface fastethernet 0/1 Lesand(config-if)#swicthport mode trunk Lesand(config-if)#swicthport trunk encapsulation dot1q Lesand(config-if)#end 1900: Lesand(config)#interface fastethernet 0/1 Lesand(config-if)#swicthport mode trunk Lesand(config-if)#swicthport trunk encapsulation dot1q Lesand(config-if)#end Trunk en el router Router(config)#interface fastethernet 0/X Router(config-if)#no shutdown Router(config-if)#interface fastEthernet 0/X.1 Router(config-subif)#encapsulation dot1q [vlan-number] Router(config-subif)#ip address. Quitar un puerto de una VLAN Lesand(config)#interface fasethernet 0/9 Lesand(config-if)#no switchport access vlan 300 Ver el Spanning-Tree actual Lesand#show spanning-tree Configurar Spanning-Tree Lesand(config)#spanning-tree ? (para ver las opciones) Sacar solamente una interface o vlan del Spanning-Tree Lesand#conf t Lesand(config)#interface f0/X Lesand(config-if)#no spanning-tree ? (ver otras opciones) Configuracion VTP Lesand#conf t Lesand(config)#vtp version 2 (elegimos entre version 1 o 2 segun corresponda) Lesand(config)#vtp ? (para ver las opciones disponibles) Lesand(config)#vtp {client|server|transparent}

Material creado para lesand.cl por:

Copiar IOS a un Server TFTP Lesand#copy flash: tftp Source filename []? cfg_swlesand Address or name of remote host []? 190.40.0.5 Destination filename [cfg_swlesand]? cfg_swlesand_backup 2900: Lesand#copy flash:[nombre_del_archivo tftp] Copiar IOS DESDE un Server TFTP Lesand#copy tftp: flash: Address or name of remote host []? 190.40.0.5 Source filename []? cfg_swlesand Destination filename [cfg_swlesand]? swlesand Accessing tftp://190.40.0.5/cfg_swlesand........ Lesand#copy start tftp: Address or name of remote host []? 190.0.40.5 Destination filename [Lesand-confg]? ..... 1900: Lesand#copy nvram tftp://numero-ip/name Lesand#copy tftp startup-config 1900: Lesand#copy tftp://numero-ip/name nvram

Recuperar el acceso al switch 1. Apagar el switch, Vuelva a encenderlo mientras presiona el boton MODE en la parte delantera del switch. Deje de presionar el boton MODE una vez que se apague el led de STAT 2. Introducir los siguientes comandos: flash_init load_helper dir flash: 3. rename flash:config.text flash:config.old 4. reiniciar el sistema original: 4.1 despues de entrar al switch hacer: rename flash:config.old flash:config.text 4.2 sw#copy flash:config.text system:running-config 4.3 Cambiar los password

Material creado para lesand.cl por:

Actualizar el firmware Lesand#show boot (muestra el archive de boteo) Cambiar el nombre del archivo de la IOS Lesand#rename flash:nombre flash:Nuevo_nombre Lesand(config)#no ip http Server Lesand# delete flash:html/*

Enlace troncal ISL Lesand(Config.)#interafce fastethernet 0/1 Lesand(Config-if)#switchport mode trunk Lesand(Config-if)#switchport trunk encapsulation isl Lesand(Config-if)#end enlace troncal 802.1q 2950: por defecto dotiq Lesand(Config.)#interafce fastethernet 0/1 Lesand(Config-if)#switchport mode trunk 2900: Lesand(Config.)#interafce fastethernet 0/1 Lesand(Config-if)#switchport mode trunk Lesand(Config-if)#switchport trunk encapsulation dot1q

Y he aqui el fin, hay muchos mas comando pero en honor al tiempo y a que tengo sueo no alargo mas el documento, gracias por la lectura y si tienen mas comandos bienvenidos sean.

Material creado para lesand.cl por:

También podría gustarte