15 Cisco Device Management Answer Key1
15 Cisco Device Management Answer Key1
- Answer Key
In this lab you will perform a factory reset, password recovery, configuration
backup, and system image backup and recovery on a Cisco router. You will also
perform an IOS upgrade on a Cisco switch.
Factory Reset
1) View the running configuration on R1. Note that the hostname and
interface have been configured
R1#sh run
Building configuration...
R1#write erase
Erasing the nvram filesystem will remove all configuration
files! Continue? [confirm]
[OK]
Erase of nvram: complete
%SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram
R1#reload
Proceed with reload? [confirm]
4) The router should boot into the Setup Wizard. Exit out of the wizard and
then confirm the startup and running configurations are empty.
Router>enable
Router#show run
Building configuration...
hostname Router
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
shutdown
Router#show start
startup-config is not present
5) Paste the configuration for R1 from the ‘15 Cisco Device Management
Configs.zip’ file back into the configuration and save
Router#configure terminal
Router(config)#hostname R1
R1(config)#!
R1(config)#interface GigabitEthernet0/0
R1(config-if)# ip address 10.10.10.1 255.255.255.0
R1(config-if)# duplex auto
R1(config-if)# speed auto
R1(config-if)# no shutdown
R1(config-if)#!
R1(config-if)#line con 0
R1(config-line)# exec-timeout 30 0
R1(config-line)#end
R1#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
Password Recovery
7) Configure the router to boot into the rommon prompt on next reload, and
reboot the router. (In a real world scenario you would enter the Break
sequence on the keyboard when first powering up the router to access the
rommon prompt)
R1(config)#config-register 0x2120
R1(config)#end
R1#copy run start
R1#reload
Proceed with reload? [confirm]
8) Configure the router to ignore the startup-config when booting up, and
reload the router
9) The router should boot into the Setup Wizard. Exit out of the wizard
10) What do you expect to see if you view the running and startup
configurations? Confirm this.
The running configuration should be empty because the router bypassed loading
the startup config on boot up. The startup config should remain unchanged and
all previous configuration should still be there.
Router#sh run
Building configuration...
hostname Router
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
Router#sh start
!
hostname R1
!
enable secret 5 $1$mERr$J2XZHMOgpVVXdLjC9lYtE1
!
interface GigabitEthernet0/0
ip address 10.10.10.1 255.255.255.0
duplex auto
speed auto
11) Copy the startup config to the running config. Do not miss this step or you
will factory reset the router!
13) Ensure the router will reboot normally on the next reload and you will be
able to access the router
Router(config)#config-register 0x2102
Router(config)#end
Router#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
Router#reload
Proceed with reload? [confirm]
R1>en
R1#sh run
Building configuration...
hostname R1
!
interface GigabitEthernet0/0
ip address 10.10.10.1 255.255.255.0
duplex auto
speed auto
Configuration Backup
Important: Filenames are case sensitive – you must enter them exactly as show.
(c2900 is different to C2900)
15) Backup the running configuration to Flash on R1. Use a suitable name for
the backup file. Verify the configuration has been backed up.
R1#show flash
16) Backup the R1 startup configuration to the TFTP server. Use a suitable
name for the backup file. Verify the configuration has been backed up.
17) Backup the IOS system image on R1 to the TFTP server. Verify the
configuration has been backed up.
R1#show flash
Writing c2900-universalk9-mz.SPA.151-
4.M4.bin...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 33591768 bytes]
18) Delete the system image from Flash and reload.
R1#delete flash:c2900-universalk9-mz.SPA.151-4.M4.bin
Delete filename [c2900-universalk9-mz.SPA.151-4.M4.bin]?
Delete flash:/c2900-universalk9-mz.SPA.151-4.M4.bin?
[confirm]
R1#reload
Proceed with reload? [confirm]
Boot process failed...
The system is unable to boot automatically. The BOOT
environment variable needs to be set to a bootable
image.
rommon 1 >
19) Use Internet search to find system recovery instructions for your model of
router. Recover the system image using the TFTP server.
http://www.cisco.com/c/en/us/td/docs/routers/access/1900/software/configuration
/guide/Software_Configuration/appendixCrommon.html is the first hit when
searching for ‘Cisco 2900 rommon recovery’.
IP_ADDRESS: 10.10.10.1
IP_SUBNET_MASK: 255.255.255.0
DEFAULT_GATEWAY: 10.10.10.1
TFTP_SERVER: 10.10.10.10
TFTP_FILE: c2900-universalk9-mz.SPA.151-4.M4.bin
Invoke this command for disaster recovery only.
WARNING: all existing data in all partitions on flash will
be lost!
This is as far as we can go with this part of the lab. You’ve seen how to recover
the system image, the only thing left to do in a real world scenario after the
download has completed is:
SW1#sh version
Cisco IOS Software, C2960 Software (C2960-LANBASE-M),
Version 12.2(25)FX
Accessing tftp://10.10.10.10/c2960-lanbasek9-mz.150-
2.SE4.bin....
Loading c2960-lanbasek9-mz.150-2.SE4.bin from 10.10.10.10:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 4670455 bytes]
SW1#config t
SW1(config)#boot system c2960-lanbasek9-mz.150-2.SE4.bin
3) Reboot and verify the switch is running the new software version
SW1#reload
Proceed with reload? [confirm]
SW1#show version
Cisco IOS Software, C2960 Software (C2960-LANBASEK9-M),
Version 15.0(2)SE4, RELEASE SOFTWARE (fc1)