7.5 Perform device maintenance

7.5 Perform device maintenance

  • 7.5.a Cisco IOS upgrades and recovery (SCP, FTP, TFTP, and MD5 verify)

To use MD5 to verify an image:

R1#verify /md5 flash0:<imagename> <md5sum>

To send an image via SCP (secure copy over SSH):

Run this command from your Linux/BSD machine:

desktop$ scp <imagename> <username>@<host>:flash0:<imagename>

To copy via FTP/TFTP:

R1#: copy ftp://username:pass@<host>/path flash

R1#: copy ftpt://<host>/path flash
  • 7.5.b Password recovery and configuration register

 

1.) Remove power

2.) Remove flash memory

3.) Turn on router

4.) Configure ROMMON

rommon 1> 0x2142

5.) Turn off router

6.) Restore flash and power

7.) Router will boot with no config:

Router> enable

Router#copy startup-config running-config

R1#configure terminal

R1(config)#enable secret password

R1(config)#config-reg 0x2102

R(config)#^Z

8.) copy new password to startup-config

R1# copy running-config startup-config

 

  • 7.5.c File system management

 

To copy files to a USB drive:

R1# copy running-config usbflash1:copy-of-run-config
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s