Sie sind auf Seite 1von 4

Configuracin Switches Configuracin Bsica

Switch>enable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname S1 S1(config)#enable secret class S1(config)#no ip domain-lookup S1(config)#line console 0 S1(config-line)#password cisco S1(config-line)#login S1(config-line)#line vty 0 15 S1(config-line)#password cisco S1(config-line)#login

Configuracion de velocidad a una interfaz


S1(config)#interface fastethernet 0/18 S1(config-if)#speed 100 S1(config-if)#duplex full

Creacion de VLAN
S1(config)#vlan 10 S1(config-vlan)#name faculty/staff

Asignacin de puertos a una vlan


S1(config)#interface range fa0/1 - 24 S1(config-if-range)#switchport access vlan 99 S1(config-if-range)#exit

Creacin de una VLAN de administracin


S1(config)#vlan 99 S1(config-vlan)#exit S1(config)#interface vlan99 S1(config-if)#ip address 172.17.99.11 255.255.255.0 S1(config-if)#no shutdown

Configuracin de trunking y VLAN nativa


S1(config)#interface range fa0/1-5 S1(config-if-range)#switchport mode trunk S1(config-if-range)#switchport trunk native vlan 99

S1(config-if-range)#no shutdown

Configuracion a modo access para hosts


S1(config)#interface range fa0/6-24 S1(config-if-range)#switchport mode access

Comando para default Gateway a un switch


S1(config)#ip default-gateway 172.17.99.1

Administracion de Tabla Mac


S1#clear mac-address-table dynamic S1(config)#mac-address-table static 00e0.2917.1884 vlan 99 interface fastethernet 0/18

Configuracin Port-Security
S1(config)#interface fastethernet 0/18 S1(config-if)#switchport mode access S1(config-if)#switchport port-security S1(config-if)#switchport port-security maximum 2 S1(config-if)#switchport port-security mac-address sticky S1(config-if)#switchport port-security violation protect S1(config-if)#end

Configuracin VTP
S1(config)#vtp mode server S1(config)#vtp domain Lab4 S1(config)#vtp password cisco S1(config)#vtp prunning S1(config)#end

Comandos para la prioridad del bridge (STP)


S1(config)#spanning-tree vlan vlan-ID root primary S1(config)#spanning-tree vlan vlan-ID priority 4096

Comando para la prioridad de un puerto (STP)


S1(config-if)#spanning-tree port-priority value

Configuracin de Rapid-PVST+
S1(config)#spanning-tree mode rapid-pvst

S1(config)#interface interface-id S1(config-if)#spanning-tree link-type point-to-point S1(config-if)#end S1#clear spanning-tree detected-protocols

Comando para portfast


S1(config-if)#spanning-tree portfast

Configuracin de inter-vlan
En el router R1(config)#interface f0/0.10 R1(config-subif)#encapsulation dot1q vlan id R1(config-subif)#ip address 172.17.10.1 255.255.255.0 R1(config-subif)# interface f0/0 R1(config-if)# no shutdown En el switch S1(config)#vlan 10 S1(config-vlan)#vlan 30 S1(config-vlan)#exit S1(config)#interface fa0/5 S1(config-if)#switchport mode trunk

Comandos para back up


S1#copy running-config startup-config S1#copy startup-config tftp S1#copy startup-config flash:config.bak1 S1#copy flash tftp

Comandos para restaurar configuraciones


S1#copy flash:config.bak1 startup-config S1#copy tftp startup-config S1#copy startup-config running-config S1#copy tftp flash

Comandos Show
Switch#show running-config Switch#show startup-config Switch#show interface vlan1 Switch#show ip interface vlan1

Switch#show interface fastethernet 0/18 Switch#show versin Switch#show vlan Switch#show flash S1#show mac-address-table S1#show port-security S1#show vlan brief S1#show interface trunk S1#show vtp status S1#show spanning-tree S1#show spanning-tree active S1#show spanning-tree summary

Password Recovery
Make sure that a PC is connected to the console port and a HyperTerminal window is open. Turn the switch off. Turn it back on while holding down the MODE button on the front of the switch at the same time that the switch is powered on. Release the MODE button after the SYST LED stops blinking and stays on. To initialize the file system and finish loading the operating system, enter the following commands: switch:flash_init switch:load_helper switch:dir flash: Type: rename flash:config.text flash:config.old boot Enter n when prompted to continue the configuration dialog, Switch# rename flash:config.old flash:config.text Destination filename [config.text]? [enter] Switch#copy flash:config.text system:running-config Destination filename [running-config][enter] The configuration file is now reloaded. Change the old unknown passwords

Das könnte Ihnen auch gefallen