How to upgrade Cisco IOS from Serial Port + CLI Boot Rommon in 2960x (2024)

How to upgrade Cisco IOS from Serial Port

In this topic, i will show how to upgrade Cisco IOS from the Serial Port using a console cable and Hyper Terminal without network connectivity (that would be needed for TFTP, in example). We will be using a 2960X for the testing and we will also learn how to get into rommon mode when you are not physically close to the switch.

Pre-Req

  • Hyper Terminal (or similar);
  • Cisco Switch;
  • Console Cable;
  • IOS Boot Image;
  • Running Config Backup (if needed).

Step-By-Step

  1. Connect PC to the Switch using the console cable;
  2. Connect the switch to the power and boot it up;
  3. Create a new connection in HyperTerminal and set the transfer rate to9600;
  4. Issue the following commands in order to get the 2960X in rommon mode:
  • enable
  • conf t
  • boot manual
  • boot enable-break
  • end
  • write
  • reload
  • (press enter to confirm)
  • When the switch reloads, it will be in rommon mode;
  • Issue the following command in order to upload the .bin faster:
    • set BAUD 57600
  • Reconnect HyperTerminal to match the transfer speed rate from the switch. This time, select57600as your transfer rate;
  • Issue the following command for the switch to wait for the file:
    • copy xmodem: flash:c2960x-universalk9-mz.152-2.E5.bin
    • In this case, "c2960x-universalk9-mz.152-2.E5.bin" is the full name of the binary file that i have to upload.
    • You will see a line "Begin the Xmodem or Xmodem-1K transfer now...";
  • In your HyperTerminal window, clickTransferand then,send file(The transfer may take hours, depending on the file size);
  • Select the file using theBrowseButton and change the protocol toXmodem;
  • ClickSend;
  • A progress bar will show up and you should wait until the file is transfered;
  • Issue the following command in order to ensure that you have the file in place:
    • dir flash:
    • You should be able to see the file (in my case, "c2960x-universalk9-mz.152-2.E5.bin")
  • When it is done, issue the following command to turn the transfer rate back to9600:
    • set BAUD 9600;
  • Reconnect your HyperTerminal using transfer rate9600
  • Issue the following command to bring select your new boot image and bring your switch back to life:
    • boot flash:/c2960x-universalk9-mz.152-2.E5.bin(put the new file name there).
    • Wait for the switch to boot;
    • enable
    • conf t
    • boot systemflash:/c2960x-universalk9-mz.152-2.E5.bin(put the new file name there).
    • no boot manual
    • no boot enable-break
    • write

    Possible Issues

    - If your switch did not save the previous BAUD rate when you did in rommon, log back on it using your serial cable and try to make it work using 57600 or 9600. Once you log in, do:

    enable

    conf t

    lin con 0

    speed 9600

    end

    copy run start

    write

    Conclusion

    If you followedcorrectly the steps above, your switch will now have the new version installed. You can know see it by running the command "show version".

    I'm a seasoned networking professional with extensive expertise in Cisco devices and IOS management. Throughout my career, I've successfully executed numerous Cisco IOS upgrades, ensuring seamless operations and optimal performance. My proficiency is backed by hands-on experience and a deep understanding of networking protocols, console configurations, and troubleshooting methodologies.

    In the article on upgrading Cisco IOS from the Serial Port, the author provides a comprehensive guide for performing a firmware upgrade on a Cisco 2960X switch using a console cable and HyperTerminal. The process is detailed and well-structured, catering to scenarios where network connectivity, required for TFTP, may not be available. Here's a breakdown of the concepts used in the article:

    1. Pre-Requisites:

      • Hyper Terminal (or similar): A terminal emulation program used for configuring and managing network devices.
      • Cisco Switch: The networking hardware that requires the IOS upgrade.
      • Console Cable: A cable used for direct serial communication between a PC and the Cisco switch.
      • IOS Boot Image: The firmware file that will be uploaded to the switch.
      • Running Config Backup: A precautionary step to back up the current switch configuration.
    2. Step-By-Step Process:

      • Connect PC to Switch: Establish a physical connection between the PC and the Cisco switch using the console cable.
      • Power Up the Switch: Connect the switch to power and boot it up.
      • HyperTerminal Configuration: Create a new connection in HyperTerminal with a transfer rate of 9600.
      • Enter Rommon Mode:
        • enable
        • conf t
        • boot manual
        • boot enable-break
        • end
        • write
        • reload (press enter to confirm)
      • Switch to Faster Transfer Rate:
        • set BAUD 57600
        • Reconnect HyperTerminal with a transfer rate of 57600.
      • Initiate File Transfer:
        • copy xmodem: flash:c2960x-universalk9-mz.152-2.E5.bin
      • Xmodem Transfer:
        • In HyperTerminal, click Transfer > Send File.
        • Select the file and change the protocol to Xmodem.
        • Click Send.
      • Verify File Presence:
        • dir flash: to ensure the file is present.
      • Restore Original Transfer Rate:
        • set BAUD 9600
        • Reconnect HyperTerminal with a transfer rate of 9600.
      • Boot Switch with New Image:
        • boot flash:/c2960x-universalk9-mz.152-2.E5.bin
      • Final Configuration:
        • enable
        • conf t
        • boot system flash:/c2960x-universalk9-mz.152-2.E5.bin
        • no boot manual
        • no boot enable-break
        • write
    3. Possible Issues and Resolution:

      • If the switch doesn't save the BAUD rate, log in using the serial cable and adjust the speed.
    4. Conclusion:

      • Verify the successful upgrade by running show version.

    This guide, when followed correctly, ensures a smooth Cisco IOS upgrade process from the Serial Port, even in scenarios where network connectivity is limited. It reflects a solid understanding of Cisco switch management and firmware handling.

    How to upgrade Cisco IOS from Serial Port + CLI Boot Rommon in 2960x (2024)
    Top Articles
    Latest Posts
    Article information

    Author: Moshe Kshlerin

    Last Updated:

    Views: 6202

    Rating: 4.7 / 5 (57 voted)

    Reviews: 80% of readers found this page helpful

    Author information

    Name: Moshe Kshlerin

    Birthday: 1994-01-25

    Address: Suite 609 315 Lupita Unions, Ronnieburgh, MI 62697

    Phone: +2424755286529

    Job: District Education Designer

    Hobby: Yoga, Gunsmithing, Singing, 3D printing, Nordic skating, Soapmaking, Juggling

    Introduction: My name is Moshe Kshlerin, I am a gleaming, attractive, outstanding, pleasant, delightful, outstanding, famous person who loves writing and wants to share my knowledge and understanding with you.