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
- Connect PC to the Switch using the console cable;
- Connect the switch to the power and boot it up;
- Create a new connection in HyperTerminal and set the transfer rate to9600;
- 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)
- set BAUD 57600
- 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...";
- dir flash:
- You should be able to see the file (in my case, "c2960x-universalk9-mz.152-2.E5.bin")
- set BAUD 9600;
- 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:
-
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.
-
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
.
- In HyperTerminal, click
- 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
-
Possible Issues and Resolution:
- If the switch doesn't save the BAUD rate, log in using the serial cable and adjust the speed.
-
Conclusion:
- Verify the successful upgrade by running
show version
.
- Verify the successful upgrade by running
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.