Notes CCNA

Set boot file and recover from crash on Cisco switches. Use boot system commands, mode button, and boot loader steps to restore functionality after power loss or software issues.

Alice Edwards
Contributor
4.4
60
2 months ago
Preview (6 of 20)
Sign in to access the full document!
q#### Settup the boot file ####
Sl(config)# boot system flash:/c2960-lanbasek9-mz.l 50-2.SE/c2960-
lanbasek9-mz.I50-2.SE.bin
#### Recovery from a crash ###
Step 1. Connect a PC by console cable to the switch console port. Configure terminal emulation
software to connect to the switch.
Step 2. Unplug the switch power cord.
Step 3. Reconnect the power cord to the switch and, within 15 seconds, press and hold down
the Mode button while the System LED is still flashing green.
Step 4. Continue pressing the Mode button until the System LED turns briefly amber and then
solid green; then release the Mode button.
Step 5. The boot loader switch: prompt appears in the terminal emulation software on the PC.
switch: set
BOOT=flash:/c2960-lanbasek9-mz.122-55.SE7/c2960-lanbasek9-mz.122-
55.SE7.bin
(output omitted)
switch: flash_init
Initializing Flash...
flashfs[0]: 2 files, 1 directories
flashfsfO]: 0 orphaned files, 0 orphaned directories
flashfsfO]: Total bytes: 32514048
flashfs[0]: Bytes used: 11838464
flashfsfO]: Bytes available: 20675584
flashfsfO]: flashfs fsck took 10 seconds.
...done Initializing Flash.
switch: dir flash:
Directoiy of flash:/
2 -rwx 11834846 c2960-lanbasek9-mz,150-
2.SE8.bin
3 -rwx 2072 multiple-fs
switch: BOOT=flash:c2960-lanbasek9-mz.150-2.SE8.bin
switch: set
BOOTMlash:c2960-lanbasek9-mz.150-2.SE8.bin
(output omitted)
switch: boot
###Configure Basic Router Settings##
Switch(config)#host SI
Sl(config)#no ip domain-lookup
S1(config)#lin con 0
S l(config-line)#logging synchronous
S1(config-line)#exec-timeout 0 0
Router# configure terminal
Router(config)# hostname R1
R1 (config)# enable secret class - (password for enable command)
R1(config)# line console 0
R1(config-line)# password cisco
R1(config-line)# login
R1(config-line)# exit
R1(config)# line vty 0 4
R1(config-line)# password cisco
R1(config-line)# login
R1(config-line)# exit
R1(config)# service password-encryption
R1(config)#
[Configure interfaces]
R1(config)# interface gigabitethernet 0/0/0
Rl(config-if)# ip address 192.168.10.1 255.255.255.0
R1(config-if)# ipv6 address 2001:db8:acad:l::1/64
R1(config-if)# description Link to LAN 1
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)# interface gigabitethernet 0/0/1
R1(config-if)# ip address 192.168.11.1 255.255.255.0
R1(config-if)# ipv6 address 2001:db8:acad:2::1/64
R1(config-if)# description Link to LAN 2
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)# interface serial 0/0/0
R1(config-if)# ip address 209.165.200.225 255.255.255.252
R1(config-if)# ipv6 address 2001:db8:acad:3::225/64
R1(config-if)# description Link to R2
R1(config-if)# no shutdown
R1(config-if)# exit
R1(config)#
[Loopback interface]
R1(config)# interface loopback 0
R1(config-if)# ip address 10.0.0.1 255.255.255.0
####Configure switch ports ####
[Enable duplex modes]
SI# configure terminal
SI (config)# interface FastEthernet 0/1
SI (config-if)# duplex full
Sl(config-if)# speed 100
Sl(config-if)# end
[auto-MDX (Media Dependent crossover)]
S1(config-if)#mdix auto
Sl(config-if)#duplex auto [should be used with mdix auto]
Sl#show controllers ethemet-controller faO/1 phy | include Auto-MDIX
[Switch Verification Commands]
SI# show interfaces [interface-id]
SI# show startup-config
SI# show running-config
SI# show flash
SI# show version
SI# show history
S1 # show ip interface
SI# show mac-address-table
SI# show ipv6 route
SI# show ip route
#### SSH Remote configure ###
[Change Vian]
[Setup vlan for management]
S3(config)#vlan 99 [SVI L3]
S3(config-vlan)#name S3
S3(config-vlan)#exit
S3(config-if)#interface vlan99 [set up for L2]
S1(config-if)#ip address 172.17.99.11 255.255.255.0
S1(config-if)#ipv6 address 2001:db8:acad:99::11/64
Sl(config-if)#no shutdown
S1(config-if)#exit
Sl(config)#ip default-gateway 172.17.99.1
S3(config)#vtp mode client
S3(config)#Interface range faO/O - faO/24
S3(config-if-range)#switchport access vlan 99
[SSH setup R and S]
SI (config)# hostname R1
Sl(config)#ip domain name span.com
Sl(config)# security passwords min-length 12
Sl(config)#crypto key generate rsa general-keys modulus 1024
[crypto key zeroize rsa = » Disable]
Sl(config)#usemame Huu secret cisco
Sl(config)#ip ssh version 2
SI (config)# line vty 0 4

Loading page 6...

3 more pages available. Scroll down to load them.

Preview Mode

Sign in to access the full document!

100%

Study Now!

XY-Copilot AI
Unlimited Access
Secure Payment
Instant Access
24/7 Support
Document Chat

Document Details

Related Documents

View all