Upgrading IOS Version: Difference between revisions

From Peter Pap's Technowiki
Jump to navigation Jump to search
Created page with "You will need a tftp server on which to put the latest IOS version and to which to can backup the old one. A Windows based one is easy [http://tftpd32.jounin.net/]. This assume..."
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
You will need a tftp server on which to put the latest IOS version and to which to can backup the old one.  A Windows based one is easy [http://tftpd32.jounin.net/].  This assumes that the switch already has an IP set.
You will need a tftp server on which to put the latest IOS version and to which to can backup the old one.  A Windows based one is easy [http://tftpd32.jounin.net/].  This assumes that the switch already has an IP set, otherwise follow this link [http://www.peterpap.net/index.php/Assigning_an_IP_Address_to_a_Switch].  Below works for Catalyst 29XX and 37XX models.  For Catalyst 49XX models, change '''''flash''''' to '''''bootflash'''''.


1. Determine the boot image on the switch:
1. Determine the boot image on the switch:


switch# show flash
  switch# show flash


#Backup the flash image to the tftp server
2. Backup the flash image to the tftp server


switch# copy flash:flashimagename tftp://ipaddress/flashimagename
  switch# copy flash:flashimagename tftp://192.168.X.X/flashimagename


#If there is room, leave the old image in place. Otherwise do:
where 192.168.X.X is the IP address of the TFTP server.


switch# delete flashimagename


#Upload the new flashimage
3.  If there is room, leave the old image in place.  Otherwise do <font color=red>'''OPTIONAL and DANGEROUS'''</font>:


switch# copy tftp://ipaddress/newflashimage flash:newflashimage
  switch# delete flash:imagename


# Make the new image the boot image and reboot
If the flash image is in a directory:


switch# config t
  switch# delete /force /recursive flash:flashdirectory
switch(config)# no boot system flash:oldflashimage
 
switch(config)# boot system flash:newflashimage
4. Upload the new flashimage
switch(config)# exit
 
switch# wr mem
  switch# copy tftp://192.168.X.X/newflashimage flash:newflashimage
switch# reload
 
5. Make the new image the boot image and reboot
 
  switch# config t
  switch(config)# no boot system flash:oldflashimage
  switch(config)# boot system flash:newflashimage
  switch(config)# exit
  switch# wr mem
 
6. Reboot the switch
 
  switch# reload

Latest revision as of 01:06, 29 November 2011

You will need a tftp server on which to put the latest IOS version and to which to can backup the old one. A Windows based one is easy [1]. This assumes that the switch already has an IP set, otherwise follow this link [2]. Below works for Catalyst 29XX and 37XX models. For Catalyst 49XX models, change flash to bootflash.

1. Determine the boot image on the switch:

  switch# show flash

2. Backup the flash image to the tftp server

  switch# copy flash:flashimagename tftp://192.168.X.X/flashimagename

where 192.168.X.X is the IP address of the TFTP server.


3. If there is room, leave the old image in place. Otherwise do OPTIONAL and DANGEROUS:

  switch# delete flash:imagename

If the flash image is in a directory:

  switch# delete /force /recursive flash:flashdirectory

4. Upload the new flashimage

  switch# copy tftp://192.168.X.X/newflashimage flash:newflashimage

5. Make the new image the boot image and reboot

  switch# config t
  switch(config)# no boot system flash:oldflashimage
  switch(config)# boot system flash:newflashimage
  switch(config)# exit
  switch# wr mem

6. Reboot the switch

  switch# reload