Friday, 18 June 2021

Cisco IOS Upgrade

 Step 1

- Start your choosen ftp/scp server


Step 2

- List existing files and  make sure that you have suficient space on the Cisco router

VG#dir                                                                   
Directory of flash0:/

    1  -rw-          35  May 22 2017 22:18:02 +01:00  pnp-tech-time
    2  -rw-        3066  Feb 16 2017 06:18:00 +00:00  cpconfig-29xx.cfg
    3  -rw-       17595  May 22 2017 22:18:10 +01:00  pnp-tech-discovery-summary
    4  drw-           0  Feb 16 2017 06:18:20 +00:00  ccpexp
  374  -rw-       22737  Feb 16 2017 06:21:12 +00:00  home.html
  375  -rw-   110621884  May 22 2017 22:13:24 +01:00  c2900-universalk9-mz.SPA.156-3.M2.bin
 
250908672 bytes total (17870848 bytes free)


 Step2

- Make a backup of existing upgrade files and running config

 VG#copy flash:c2900-universalk9-mz.SPA.156-3.M2.bin scp://172.X.X.X/c2900-universalk9-   mz.SPA.156-3.M2.bin

VG#copy running-config scp://172.X.X.X/VGrunningconfig.txt

Step 3

- Download the image from Cisco.com and save your new IOS file in the root of your ftp server 

C:\SFTP_Root

Step 4

 - Copy the file to your Cisco device

VG#copy scp://172.X.X.X/c2900-universalk9-mz.SPA.156-3.M9.bin flash:

At this point you may want to verify the integrety of the file so you can run the following command

VG#verify /md5 flash:c2900-universalk9-mz.SPA.156-3.M9.bin

The output will give you the checksum like this:

(flash0:c2900-universalk9-mz.SPA.156-3.M9.bin) = bc6b0373fd88ee1794bf23a89e62c6ac 

I have HashCheck extension tool installed on my Windows 10 so I can right click on the image file and in the Checksums tab paste the output from your router and you should get a match.


 

Step 5

- Before you apply the new image you can check the currently used image with show version command

VG#show ver

VG uptime is 4 years, 3 weeks, 6 days, 14 hours, 45 minutes
System returned to ROM by power-on
System restarted at 19:16:25 BST Mon May 22 2017
System image file is "flash0:c2900-universalk9-mz.SPA.156-3.M2.bin"
Last reload type: Normal Reload
Last reload reason: power-on

Step 6 

- Apply the new image from global config mode. As noted by Vlad my UC support engineer it's always good idea to add the original image as a secondary option so should the image in line 1 fails the router can always boot into the original image by using the second line. Obviously do the reload out of hours.

thanks Vlad

VG(config)#boot system flash:c2900-universalk9-mz.SPA.156-3.M9.bin

VG(config)#boot system flash:c2900-universalk9-mz.SPA.156-3.M2.bin

VG#wr mem

VG#reload

 Job done!!

 

No comments:

Post a Comment