Beruflich Dokumente
Kultur Dokumente
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
Creacion de VLAN
S1(config)#vlan 10 S1(config-vlan)#name faculty/staff
S1(config-if-range)#no shutdown
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
Configuracin de Rapid-PVST+
S1(config)#spanning-tree mode rapid-pvst
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 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