Upgrading IOS

From DruWiki

Jump to: navigation, search

Cisco Internetworking Operating System (IOS) is a very essential part of any Cisco device. Upgrading procedures are different on different routers, but all the newer modular routers have same upgrading techniques. The basic upgrading techniques are shown below.

Contents

Upgrading IOS on 2500 series routers

Upgrading IOS on 2500 series routers is different. You have to upgrade the IOS from the RxBoot mode. The steps are as follows:

  • Go to the enable mode. Add an IP default gateway and enable only one interface. To ensure connectivity to the TFTP server, shut down all interfaces except the one serial/ethernet port that has the optimal path to the TFTP server. Once done, copy the running-config to startup-config.
Router> enable
Router# config t
Router(config)# interface e0
Router(config-if)# ip add 10.1.1.10 255.0.0.0
Router(config-if)# no shut
Router(config-if)# exit
Router(config)# interface s0
Router(config-if)# shut
Router(config-if)# exit
Router(config)# ip default-gateway 10.1.1.1
Router(config)# exit
Router# copy run start
  • Check the value of the configuration register by giving show version command. It is usually set to 0x2102 or 0x102. You will need this value to bring the router to the normal operations later.
  • After noting down the value of the configuration register, change the value to 0x2101. Verify that the value will change to 0x2101 upon next reload by issuing show version command. Reload the router. This value is used to boot from RxBoot mode. Once Prompted to save the changes to configuration, press yes.
Router(config)# config-register 0x2101
Router(config)# exit
Router# reload
  • Once router boots into RxBoot mode, enter in enable mode and issue copy tftp flash command. In the Boot mode, make sure to avoid any save commands like copy run start, write mem, and also make sure to answer no to any prompts. Example is shown below for the following steps. Make sure to enter the values indicated in bold.
Router(boot)> enable
Router(boot)# copy tftp flash
System flash directory:
        File Length Name/status
        1 4778448 c2500-p-l.113-0.11
        [4778512 bytes used, 11998704 available, 16777216 total]
        Address or name of remote host [255.255.255.255]?10.1.1.1
        Source file name? c2500-is-l.123-3.bin
        Destination file name [c2500-is-l.123-3.bin]?c2500-is-l.123-3.bin
        Accessing file 'c2500-is-l.123-3.bin' on 10.1.1.1...
        Loading c2500-is-l.123-3.bin from 10.1.1.1 (via Ethernet0): ! 
        [OK]
Erase flash device before writing? [confirm]
        Flash contains files. Are you sure you want to erase? [confirm]
Copy 'c2500-is-l.123-3.bin' from server
        as 'c2500-is-l.123-3.bin' into Flash WITH erase? [yes/no]y
        Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
        eeeeeeeeeeeeeeeeeeeee ...erased
        Loading c2500-is-l.123-3.bin from 10.1.1.1 (via Ethernet0): 
        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
        [OK - 16365240/16777216 bytes]
Verifying checksum... OK (0x3CFB)
        Flash copy took 0:08:09 [hh:mm:ss]
Router(boot)#
  • If the above step is unsuccessful then try erasing flash first by issuing command erase flash in privilege EXEC mode and try above step again.
  • Issue the show flash command to make sure that new IOS is been copied. Once confirmed, change the configuration register value back to its original value and reload the router.
Router(boot)# config t
Router(boot)(config)# config-register 0x2102
Router(boot)(config)# exit
Router(boot)# reload
  • Test the new upgraded the IOS and make sure everything is working as intended.

For more information, follow this link: Upgrading IOS on 2500 series Routers


Upgrading IOS on newer modular routers

Upgrading IOS on a newer modular routers is very easy. Just follow these steps to change/upgrade the IOS. Make sure you have met the memory requirements. This example is shown by using 2600 series routers.

  • First make sure you can ping the TFTP server and the IOS you want to load is in the server.
  • Go to enable mode and issue the command copy tftp flash and answer few questions about the location of the file. The fields indicated in bold are replies given to the router.
Router> enable
Router# copy tftp flash
  Address or name of remote host []? 10.10.10.2
  !--- 10.10.10.2 is the IP address of the TFTP server
  Source filename []? c2600-adventerprisek9-mz.124-12.bin
  Destination filename [c2600-adventerprisek9-mz.124-12.bin]?y 
  Accessing tftp://10.10.10.2/c2600-adventerprisek9-mz.124-12.bin...
  Erase flash: before copying? [confirm]y 
  !--- If there is not enough memory available, erase the Flash.
  !--- If you have sufficient memory you can type n and press enter
  Erasing the flash filesystem will remove all files! Continue? [confirm]y
  Erasing device... eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
  eeeeeeeeee ...erased
  Erase of flash: complete
  Loading c2600-adventerprisek9-mz.124-12.bin from 10.10.10.2 (via Ethernet0/0): !!!!!!!!
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  [OK - 29654656/49807356 bytes]
 Verifying checksum...  OK (0xAC8A)
 29654656 bytes copied in 56.88 secs (80383 bytes/sec)
  • Once the IOS is copied, issue show flash command to make sure that the file is copied. Once confirmed, reload the router and the new IOS will be loaded in the memory.

There are also different places you can copy the IOS from in newer modular routers. Some of the common one are:

  • To copy the image to the slot 1 of the router
Router# copy tftp: slot1:
  • To copy the image from another router to flash, make the source router as TFTP server and then issue copy tftp: flash: command on the destination router.
Router-tftp (config)# tftp-server flash:c7200-a3js-mz.122-15.T16.bin

Router# copy tftp: flash:

For more information, follow this link: Upgrading IOS on modular routers


Upgrading IOS on Cisco Aironet 1200 series APs

This method is used to upgrade lightweight access points to autonomous access points.

  1. The static IP address of the PC on which your TFTP server software runs should be between 10.0.0.2 and 10.0.0.30.
  2. Make sure that the PC contains the access point image file (such as c1200-k9w7-tar.122-15.JA.tar for a 1200 series access point) in the TFTP server folder and that the TFTP server is activated.
  3. Set the timeout value on the TFTP server to 30 seconds.
  4. On the PC where the TFTP server is located, perform these steps:
    1. Disable any software firewall products, such as Windows firewall, ZoneAlarm firewall, McAffee firewall, or others.
    2. Ensure all Windows files are visible. From Windows Explorer, click Tools > Folder Options > View; then uncheck the Hide extensions for known file types check box.
  5. Rename the access point image file in the TFTP server folder to c1200-k9w7-tar.default for a 1200 series access point, c1130-k9w7-tar.default for an 1130 series access point, c1240-k9w7-tar.default for a 1240 series access point, and c1250-k9w7-tar.default for a 1250 series access point.
  6. Connect the PC to the access point using a Category 5 (CAT5) Crossover Ethernet cable.
  7. Disconnect power from the access point.
  8. Press and hold MODE while you reconnect power to the access point.
  9. Hold the MODE button until the status LED turns red (approximately 20 to 30 seconds) and then release.
  10. Wait until the access point reboots, as indicated by all LEDs turning green followed by the Status LED blinking green.
  11. After the access point reboots, reconfigure it using the GUI or the CLI.

For more information, follow this link: Upgrading IOS on 1200 series APs


Upgrading IOS from Rommon mode

When the Router is stuck in Rommon mode, it is very little you can do to upgrade the IOS. Enter these commands so that you can install the IOS from Rommon mode.

Rommon 1 > IP_ADDRESS=10.1.1.10
Rommon 2 > IP_SUBNET_MASK=255.255.255.0
Rommon 3 > DEFAULT_GATEWAY=10.1.1.1
Rommon 4 > TFTP_SERVER=10.1.1.2
Rommon 5 > TFTP_FILE=c2600-adventerprisek9-mz.124-5a.bin
Rommon 6 > tftpdnld
Personal tools