comandos switch.txt

Download Comandos switch.txt

If you can't read please download the document

Upload: nilber-roberto-benites-moriano

Post on 18-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

COMANDOS SHOW---------------------------------------------------show cdp neighborsshow cdp neighbors detailshow mac address-tableshow flashshow versionshow historyshow running-configshow interfacesshow ip interface [VLAN]show vlanshow vlan id [id de Vlan]show vlan name [nombre de Vlan]show vlan briefshow port-security interface [ID de interface]show interface trunkshow interface [ID de interface] switchportshow vtp statusshow vtp passwordshow vtp countersshow spanning-tree---------------------------------------------------COMANDOS DEBUG---------------------------------------------------debug spanning-tree events---------------------------------------------------BORRAR CONFIGURACiN--------------------------------------erase startup-configdelete flash:vlan.datreload--------------------------------------CONFIGURACIN BSICA DE UN SWITCH---------------------------------------enableconfigure terminalno ip domain-lookuphostname [nombre del SWITCH]enable secret [contrasea]line vty 0 15history size [0-256] por defecto 10line con 0speed [velocidad en baudios]password [contrasea]logging synchronousloginexitservice 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.0no shutdowninterface range fa0/1 - 24switchport access vlan [# de VLAN]ip default-gateway [direccin IP]interface fastethernet 0/1speed [velocidad en Mbps]duplex fullinterface fastethernet 0/1switchport mode accessswitchport access vlan [# de VLAN]clock set 13:32:00 23 July 1997copy running-config startup-config---------------------------------------COMANDOS ERASE---------------------------------------clear mac-address-table dynamicclear 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/18switchport mode accessswitchport port-security switchport port-security maximum [1-132]switchport port-security violation shutdown switchport port-security violation protectswitchport port-security violation restrict switchport port-security mac-address [direccin MAC]switchport port-security mac-address stickyswitchport port-security mac-address sticky [direccin MAC]------------------------------------------------------------Cambiar de imagen IOS----------------------------------------------------boot system flash: c2960-lanbase-mz.122-25.SEE1.binreload----------------------------------------------------Respaldar configuracin de inicio----------------------------------------------------S1#copy startup-config tftp:Address or name of remote host []? 172.17.99.31Destination filename [S1-confg]? nombre-de-archivo ----------------------------------------------------Configurar enlace troncal----------------------------------------------------interface fa0/1switchport mode trunkswitchport mode trunk allowed vlan [1 - 4096]switchport trunk native vlan [vlan id]switchport mode dynamic autoswitchport mode dynamic desirableswitchport nonegotiate----------------------------------------------------COMANDOS VTP------------------------------------------------------vtp mode clientvtp mode transparentvtp domain [nombre de dominio]vtp password [contrasea]vtp pruning------------------------------------------------------COMANDOS Spanning Tree Protocol------------------------------------------------------------------------interface fa0/1spanning-tree cost [costo de puerto]spanning-tree port-priority [prioridad de puerto]spanning-tree portfast *configurar solo en puertos de accesospanning-tree vlan [VLAN ID] priority [valor de prioridad]spanning-tree vlan [VLAN ID] root primary *Bridge ID: 24576spanning-tree vlan [VLAN ID] root primary diameter [dimetro de red]spanning-tree vlan [VLAN ID] root secondary *Bridge ID: 28672spanning-tree mode rapid-pvst-------------------------------------------------------------------------