This document provides commands and configuration examples for Cisco switches. It includes show commands to display switch information and status, debug commands, commands to clear settings, basic switch configuration, port security configuration, commands to backup and restore configuration files, trunk port configuration, VTP commands, and Spanning Tree Protocol commands.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
732 views3 pages
Comandos Switch
This document provides commands and configuration examples for Cisco switches. It includes show commands to display switch information and status, debug commands, commands to clear settings, basic switch configuration, port security configuration, commands to backup and restore configuration files, trunk port configuration, VTP commands, and Spanning Tree Protocol commands.
show cdp neighbors detail show mac address-table show flash show version show history show running-config show interfaces show ip interface [VLAN] show vlan show vlan id [id de Vlan] show vlan name [nombre de Vlan] show vlan brief show port-security interface [ID de interface] show interface trunk show interface [ID de interface] switchport show vtp status show vtp password show vtp counters show spanning-tree --------------------------------------------------COMANDOS DEBUG --------------------------------------------------debug spanning-tree events --------------------------------------------------BORRAR CONFIGURACiN -------------------------------------erase startup-config delete flash:vlan.dat reload -------------------------------------CONFIGURACIN BSICA DE UN SWITCH --------------------------------------enable configure terminal no ip domain-lookup hostname [nombre del SWITCH] enable secret [contrasea] line vty 0 15 history size [0-256] por defecto 10 line con 0 speed [velocidad en baudios] password [contrasea] logging synchronous login exit service password-encryption banner motd [mensaje del da] vlan [# de vlan] name [nombre de Vlan]
interface vlan [# de vlan]
ip address 192.168.1.0 255.255.255.0 no shutdown interface range fa0/1 - 24 switchport access vlan [# de VLAN] ip default-gateway [direccin IP] interface fastethernet 0/1 speed [velocidad en Mbps] duplex full interface fastethernet 0/1 switchport mode access switchport access vlan [# de VLAN] clock set 13:32:00 23 July 1997 copy running-config startup-config --------------------------------------COMANDOS ERASE --------------------------------------clear mac-address-table dynamic clear spanning-tree detected-protocols --------------------------------------CONFIGURACIN DE MAC ESTTICA ----------------------------------------------------------------------------------------------------mac address-table static [direccin MAC] vlan [# de vlan] interface fastethernet 0 /[nmero de puerto] ----------------------------------------------------------------------------------------------------CONFIGURACIN DE LA SEGURIDAD DE PUERTO -----------------------------------------------------------interface fa0/18 switchport mode access switchport port-security switchport port-security maximum [1-132] switchport port-security violation shutdown switchport port-security violation protect switchport port-security violation restrict switchport port-security mac-address [direccin MAC] switchport port-security mac-address sticky switchport port-security mac-address sticky [direccin MAC] -----------------------------------------------------------Cambiar de imagen IOS ---------------------------------------------------boot system flash: c2960-lanbase-mz.122-25.SEE1.bin reload ----------------------------------------------------
Respaldar configuracin de inicio
---------------------------------------------------S1#copy startup-config tftp: Address or name of remote host []? 172.17.99.31 Destination filename [S1-confg]? nombre-de-archivo ---------------------------------------------------Configurar enlace troncal ---------------------------------------------------interface fa0/1 switchport mode trunk switchport mode trunk allowed vlan [1 - 4096] switchport trunk native vlan [vlan id] switchport mode dynamic auto switchport mode dynamic desirable switchport nonegotiate ---------------------------------------------------COMANDOS VTP -----------------------------------------------------vtp mode client vtp mode transparent vtp domain [nombre de dominio] vtp password [contrasea] vtp pruning -----------------------------------------------------COMANDOS Spanning Tree Protocol -----------------------------------------------------------------------interface fa0/1 spanning-tree cost [costo de puerto] spanning-tree port-priority [prioridad de puerto] spanning-tree portfast *configurar solo en puertos de acceso spanning-tree spanning-tree spanning-tree spanning-tree